How it was done
diff --git a/apps/nooscape-relay/client/src/pages/BnbRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/BnbRegistryReport.tsx
index 2f32491..ae75d36 100644
--- a/apps/nooscape-relay/client/src/pages/BnbRegistryReport.tsx
+++ b/apps/nooscape-relay/client/src/pages/BnbRegistryReport.tsx
@@ -1,6 +1,7 @@
import { Link } from "wouter";
import { BNB_REGISTRY_REPORT as report } from "@/lib/bnbRegistryReport";
import { InfoPage, headingClass, linkClass, listClass, textClass } from "@/components/InfoPage";
+import { CensusToday } from "@/components/CensusToday";
/**
* A dated census of the BNB Chain ERC-8004 registry as a whole. It is a report, not a directory: it lists no agent, ranks
@@ -22,6 +23,8 @@ export default function BnbRegistryReport() {
Finalized block
{n(r.finalizedBlock)}
+ {/* Only the count the report and the directory make the same way: the report replayed the chain for its registrations. */}
+
How it was done
diff --git a/apps/nooscape-relay/client/src/pages/ChainExplorer.tsx b/apps/nooscape-relay/client/src/pages/ChainExplorer.tsx
index c94a06d..aba9696 100644
--- a/apps/nooscape-relay/client/src/pages/ChainExplorer.tsx
+++ b/apps/nooscape-relay/client/src/pages/ChainExplorer.tsx
@@ -62,7 +62,7 @@ const READ = {
} as const;
const EMPTY_GROUPS = [] as const;
const NO_ENTRIES: readonly AcknowledgedWorldRecord[] = [];
-// Arc, Base, Ethereum and Monad have a page only while their switches are in the build (shared/features.ts); the server answers 404 for them otherwise (server/clientRoutes.ts).
+// Arc, Base, Ethereum, Monad and Gnosis have a page only while their switches are in the build (shared/features.ts); the server answers 404 for them otherwise (server/clientRoutes.ts).
const FEATURES: string | undefined = import.meta.env.VITE_FEATURES;
function Figure({
value,
@@ -84,7 +84,7 @@ function Figure({
}
export default function ChainExplorer({ chain }: { chain: WorldKey }) {
const world = CHAIN_WORLDS[chain];
- // BNB Chain, Base, Ethereum and Monad have no global feed: an event is shown for the entry that is selected, from that entry's own activity.
+ // BNB Chain, Base, Ethereum, Monad and Gnosis have no global feed: an event is shown for the entry that is selected, from that entry's own activity.
const entryEvents = ENTRY_EVENT_WORLDS.includes(chain);
const entryProtocol = CHAIN_IDENTITY_PROTOCOLS[chain][0]!;
const [query, setQuery] = useState("");
@@ -108,8 +108,8 @@ export default function ChainExplorer({ chain }: { chain: WorldKey }) {
);
// Arc's feed: the newest events of the entries the directory lists on Arc, and the block its ledger is measured through.
const arcFeedQuery = trpc.liveData.chainActivityFeed.useQuery({ chain: "arc" }, { ...READ, enabled: chain === "arc" });
- // Arc, Base, Ethereum and Monad read their groups from their own registries (registryFleets); the other three from the map's reads.
- const registryWorld: "arc" | "base" | "ethereum" | "monad" | null = chain === "arc" || chain === "base" || chain === "ethereum" || chain === "monad" ? chain : null;
+ // Arc, Base, Ethereum, Monad and Gnosis read their groups from their own registries (registryFleets); the other three from the map's reads.
+ const registryWorld: "arc" | "base" | "ethereum" | "monad" | "gnosis" | null = chain === "arc" || chain === "base" || chain === "ethereum" || chain === "monad" || chain === "gnosis" ? chain : null;
const fleetsQuery = trpc.liveData.mapFleets.useQuery(undefined, {
...READ,
staleTime: 10 * 60_000,
@@ -387,9 +387,9 @@ export default function ChainExplorer({ chain }: { chain: WorldKey }) {
? "READING THE INDEX"
: "NO DATA INVENTED"}
- {chain === "bnb" || chain === "base" || chain === "ethereum" || chain === "monad" ? "Formations are illustrations." : chain === "arc" ? "Characters and formations are illustrations." : "Characters are illustrations."}
+ {chain === "bnb" || chain === "base" || chain === "ethereum" || chain === "monad" || chain === "gnosis" ? "Formations are illustrations." : chain === "arc" ? "Characters and formations are illustrations." : "Characters are illustrations."}
- {chain === "bnb" || chain === "arc" || chain === "base" || chain === "ethereum" || chain === "monad" ? "Counts are Nooscape’s grouping of the registry." : "Activity comes from the ledgers."}
+ {chain === "bnb" || chain === "arc" || chain === "base" || chain === "ethereum" || chain === "monad" || chain === "gnosis" ? "Counts are Nooscape’s grouping of the registry." : "Activity comes from the ledgers."}
diff --git a/apps/nooscape-relay/client/src/pages/Checker.tsx b/apps/nooscape-relay/client/src/pages/Checker.tsx
index 8f63f5a..dd20741 100644
--- a/apps/nooscape-relay/client/src/pages/Checker.tsx
+++ b/apps/nooscape-relay/client/src/pages/Checker.tsx
@@ -61,7 +61,7 @@ export default function Checker() {
Agent cards are public files, and a card can name any web address as its endpoint. If the card of an agent in Nooscape’s reviewed records names an endpoint on your site, Nooscape may check that the address answers. That does not mean you run an agent or that you did anything: the address was written by whoever published the card.
- The 8004 and SAID registries on Solana and the ERC-8004 registries on Robinhood Chain, Ethereum, Base, Arc and Monad are public too, and so is the ERC-8004 registry on BNB Chain. Anyone can write any web address, or an ipfs address, into a registration. If a registration points at a file on your site, Nooscape may read that file to find the agent’s name, or, for BNB Chain, to compare it with other registrations. An ipfs address is asked of an IPFS gateway and not of your site. That does not mean you run an agent or that you did anything: the address was written by whoever made the registration.
+ The 8004 and SAID registries on Solana and the ERC-8004 registries on Robinhood Chain, Ethereum, Base, Arc, Monad and Gnosis are public too, and so is the ERC-8004 registry on BNB Chain. Anyone can write any web address, or an ipfs address, into a registration. If a registration points at a file on your site, Nooscape may read that file to find the agent’s name, or, for BNB Chain, to compare it with other registrations. An ipfs address is asked of an IPFS gateway and not of your site. That does not mean you run an agent or that you did anything: the address was written by whoever made the registration.
@@ -83,7 +83,7 @@ export default function Checker() {
It asks each endpoint address at most once a day, and reads robots.txt each time it visits a site.
It reads a registration link until it finds a name (for a BNB Chain registration, until it has read the file) and then stops, and it stops after a few tries: five at most if the link does not answer, two if the file has no name in it or is not a registration.
At most one request a second to a host name, and five requests at a time in all.
- Each of the three registration reads, the Robinhood names, the Base, Arc, Ethereum and Monad names and the BNB Chain files, reads at most sixteen registration files in one run, at most six of them from one host name, and runs at most every thirty minutes. The Base, Arc, Ethereum and Monad names take the four chains in turn, one chain in each run.
+ Each of the three registration reads, the Robinhood names, the Base, Arc, Ethereum, Monad and Gnosis names and the BNB Chain files, reads at most sixteen registration files in one run, at most six of them from one host name, and runs at most every thirty minutes. The Base, Arc, Ethereum, Monad and Gnosis names take the five chains in turn, one chain in each run.
The SAID names read at most twenty cards in one run and run at most every thirty minutes. Nearly all of the cards are on one host, so up to twenty of a run can come from one host name, at one request a second.
It gives up on a request after 5 seconds, counting the name lookup, the connection, redirects and the body.
It reads the first 4 KiB of an endpoint’s answer, up to 256 KiB of a registration file and 64 KiB for robots.txt, and then closes the connection.
@@ -99,7 +99,7 @@ export default function Checker() {
A check records a fact with its date: whether the address answered after any redirects, with which status code, and how long that took. When there was no answer, or a rule such as robots.txt stopped the ask, it records the reason. It also keeps a fingerprint of the first 4 KiB of the answer. The reason and the fingerprint are not shown. Nooscape shows the latest check on the agent’s page, with its date.
- For a registration link it records whether it found a name, the name itself and the reason when a read failed. The name is the registrant’s own claim: Nooscape uses it as the entry’s name only when the registry gives none, and reading it does not change the entry’s tier. For an agent on Robinhood Chain that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page, on the map and in the directory, says on the agent’s page when it read it, and the signed evidence of a reviewed record is not changed. For an agent on Base, Arc, Ethereum or Monad that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page and in the directory, and the note on the agent’s page says when it read it.
+ For a registration link it records whether it found a name, the name itself and the reason when a read failed. The name is the registrant’s own claim: Nooscape uses it as the entry’s name only when the registry gives none, and reading it does not change the entry’s tier. For an agent on Robinhood Chain that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page, on the map and in the directory, says on the agent’s page when it read it, and the signed evidence of a reviewed record is not changed. For an agent on Base, Arc, Ethereum, Monad or Gnosis that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page and in the directory, and the note on the agent’s page says when it read it.
For a BNB Chain registration file it records whether it could be read as a registration and, when it could, a short key made from the registration’s name, description and first agent-address host, with the host itself and the date. The file is not kept and none of it is shown. Registrations with one key are counted together as a group of look-alike registrations, and the map can draw one of the ten largest groups as a single circle with its count, never as an agent. Reading a file does not change an entry’s tier, whether it is listed, its order or its place on the map.
diff --git a/apps/nooscape-relay/client/src/pages/DirectoryAgent.tsx b/apps/nooscape-relay/client/src/pages/DirectoryAgent.tsx
index cc87fdc..fd1be68 100644
--- a/apps/nooscape-relay/client/src/pages/DirectoryAgent.tsx
+++ b/apps/nooscape-relay/client/src/pages/DirectoryAgent.tsx
@@ -50,6 +50,7 @@ const protocolTones: Record = {
erc8004_base: "#3B82F6",
erc8004_arc: "#ACC6E9",
erc8004_monad: "#FB7185",
+ erc8004_gnosis: "#2DD4BF",
};
function protocolLabel(protocol: string) {
diff --git a/apps/nooscape-relay/client/src/pages/EthereumRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/EthereumRegistryReport.tsx
index 01d4619..6fb9e35 100644
--- a/apps/nooscape-relay/client/src/pages/EthereumRegistryReport.tsx
+++ b/apps/nooscape-relay/client/src/pages/EthereumRegistryReport.tsx
@@ -1,5 +1,6 @@
import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, PUBLIC, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/ethereumRegistryReport";
import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage";
+import { CensusToday } from "@/components/CensusToday";
/**
* A dated census of the ERC-8004 identity registry on Ethereum as the directory holds it. It is a report, not a directory: it lists no
@@ -48,6 +49,7 @@ export default function EthereumRegistryReport() {
Counted from
the registry pass that finished at {PASS_TIME}
+
How it was done
diff --git a/apps/nooscape-relay/client/src/pages/GnosisRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/GnosisRegistryReport.tsx
new file mode 100644
index 0000000..ae6fd17
--- /dev/null
+++ b/apps/nooscape-relay/client/src/pages/GnosisRegistryReport.tsx
@@ -0,0 +1,340 @@
+import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, PUBLIC, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/gnosisRegistryReport";
+import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage";
+import { CensusToday } from "@/components/CensusToday";
+
+/**
+ * A dated census of the ERC-8004 identity registry on Gnosis as the directory holds it. It is a report, not a directory: it lists no
+ * agent, ranks nothing, names no host or wallet and gives no score. Every number on it comes from lib/gnosisRegistryReport.ts, and
+ * pages/gnosisRegistryReport.test.ts fails if one does not.
+ *
+ * Gnosis's registry is small and lopsided: one host name holds most of it, one wallet made every registration stored for that host,
+ * there are two days with a registration and months with none. Where a sentence is written for that (one wallet, one host past the
+ * cap, one transfer, two days), the test pins the fact the words rest on.
+ */
+const n = (value: number) => value.toLocaleString("en-US");
+/** A list of words as part of a sentence: "a", "a and b", "a, b and c". */
+const and = (items: readonly string[]) => (items.length < 2 ? items.join("") : `${items.slice(0, -1).join(", ")} and ${items[items.length - 1]}`);
+
+const cellClass = "border-b border-white/[.08] py-2.5 pr-4 align-top";
+const numberClass = "border-b border-white/[.08] py-2.5 pr-4 text-right align-top font-mono tabular-nums text-ns-ink";
+const headClass = "border-b border-white/[.16] py-2 pr-4 text-right font-medium";
+const firstHeadClass = "border-b border-white/[.16] py-2 pr-4 font-medium";
+const tableClass = "w-full border-collapse text-left text-base leading-7 text-ns-ink-dim";
+
+/** What the first table counts, in the order it shows them. */
+const SURFACE: ReadonlyArray = [
+ ["Registrations the directory counts on the chain", REGISTRY.onChain],
+ ["Registrations the directory has stored", REGISTRY.registrations],
+ ["Registrations counted past a host's cap and not stored", REGISTRY.overflow],
+ ["Registrations the directory lists", REGISTRY.listed],
+ ["Registering wallets", REGISTRY.wallets],
+ ["Registrations with an https link", REGISTRY.withHttpsHost],
+ ["Host names of those links", REGISTRY.hosts],
+ ["Different profile links", REGISTRY.profileLinks],
+];
+
+/** What the listing rules did, in the order the table shows it. A registration whose name is only a number is not listed, and is not held out as shared. */
+const LISTING: ReadonlyArray = [
+ ["Listed in the directory", d.listing.listed],
+ ["No usable profile link", d.listing.noLink],
+ [`Held out first: ${RULES.link}`, d.listing.byLink],
+ [`Held out first: ${RULES.host}`, d.listing.byHost],
+ [`Held out first: ${RULES.wallet}`, d.listing.byWallet],
+ ["A name that is only a number", d.listing.numberOnly],
+];
+
+/** The words for the place of a host name among the ten largest. */
+const PLACE = ["Largest", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth", "Tenth"] as const;
+
+export default function GnosisRegistryReport() {
+ return (
+
+
+ Date
+ {MEASURED.date}
+ Counted from
+ the registry pass that finished at {PASS_TIME}
+
+
+
+
+ How it was done
+
+ This census counts every registration the directory has stored for the ERC-8004 identity registry on Gnosis (chain id {CHAIN.id}), whether the directory lists it or holds it out. The directory is filled by a pass that reads the registry event log. A registration the directory holds out is not called fake: the listing rules hold it out because it shares a profile link, a host name or a wallet with many others, or because it has no usable profile link or a name that is only a number.
+
+
+ The counts come from read-only queries that return only counts and size buckets. They were run once, after the pass named above. Gnosis is read by a scheduled pass once a day. Query 0 shows the last pass that succeeded, and when the queries were run that was a pass started by hand, because the first scheduled pass had not finished. No name, wallet address, host name or profile link was selected, and nothing was asked of any site or address for this census. A share is given to one decimal place.
+
+
+ The directory counts {n(REGISTRY.onChain)} registrations on the chain and has stored {n(REGISTRY.registrations)} of them. A host name that holds more than {n(CHAIN.hostRowCap)} registrations keeps its first {n(CHAIN.hostRowCap)}, in the order they were made on the chain, and the rest are counted and not stored: {n(REGISTRY.overflow)} registrations, for {n(d.hosts.pastTheCap)} host name. Every figure below counts the stored registrations, so those {n(REGISTRY.overflow)} are in none of them.
+
+
+
+
+ The registry
+
+
+ Size and surface of the registry
+
+
+ What was counted
+ Count
+
+
+
+ {SURFACE.map(([label, count]) => (
+
+ {label}
+ {n(count)}
+
+ ))}
+
+
+
+
+ A wallet here is the registering wallet: the address named in the registration event. The directory does not change it when a registration is transferred, so it says who registered and not who holds it now. A profile link is the link recorded on the chain, and a host name is the host of an https link. {n(d.hosts.withoutHost)} registrations ({pc(d.hosts.withoutHostPercent)}) have no https host name recorded, and {n(REGISTRY.noUriSet)} set no profile link at all.
+
+
+ No registration is hidden, so the public count of listed entries, {n(PUBLIC.listed)}, is the same as the {n(REGISTRY.listed)} in the table. The public count of registrations on the chain, {n(PUBLIC.onChain)}, is the {n(REGISTRY.registrations)} stored plus the {n(REGISTRY.overflow)} counted and not stored.
+
+
+
+
+ What the listing rules did
+
+ Of the {n(REGISTRY.registrations)} stored registrations, {n(d.listing.listed)} ({pc(d.listing.listedPercent)}) are listed in the directory, which is {pc(d.listing.listedOfChainPercent)} of the {n(REGISTRY.onChain)} the directory counts on the chain. {n(d.listing.noLink)} ({pc(d.listing.noLinkPercent)}) have no usable profile link. {n(d.listing.heldOut)} ({pc(d.listing.heldOutPercent)}) are held out as shared, not judged. {n(d.listing.numberOnly)} carries a name that is only a number, and is not listed.
+
+
+
+ Registrations by what the listing rules did with them
+
+
+ What happened
+ Registrations
+
+
+
+ {LISTING.map(([label, count]) => (
+
+ {label}
+ {n(count)}
+
+ ))}
+
+
+
+
+ Each held-out registration is counted once, under the first rule that reached it, in the order the rules run: a profile link shared by two or more registrations, then a host name shared by {THRESHOLDS.largeHost} or more, then a wallet that registered {THRESHOLDS.tenWallet} or more. A rule that reaches a registration first is not the only one that would have. The profile link rule reached {n(d.listing.byLink)} registrations first, {pc(d.listing.byLinkPercent)} of all of them, and the host name rule reached {n(d.listing.byHost)}, {pc(d.listing.byHostPercent)}. These are the rules written for the BNB Chain registry, and they have not been changed for Gnosis. This census says what they did here. It does not say whether they are right for Gnosis.
+
+
+
+
+ Where the registrations sit
+
+ {n(d.wallets.tenOrMore)} wallets each registered {THRESHOLDS.tenWallet} or more. Together they made {n(d.wallets.tenOrMoreRegistrations)} of the {n(REGISTRY.registrations)} registrations ({pc(d.wallets.tenOrMorePercent)}). Only one of them registered {THRESHOLDS.largeWallet} or more, and it made {n(d.wallets.largeRegistrations)} of the {n(REGISTRY.registrations)} ({pc(d.wallets.largePercent)}).
+
+
+ At the other end, {n(d.wallets.withOne)} of the {n(REGISTRY.wallets)} wallets ({pc(d.wallets.withOnePercent)}) registered one each. Together they made {n(d.wallets.withOneRegistrations)} registrations ({pc(d.wallets.withOneRegistrationsPercent)}).
+
+
+
+ Registrations made by one wallet, in size buckets
+
+
+ Registrations made by one wallet
+ Wallets
+ Registrations
+
+
+
+ {MEASURED.q2.map(row => (
+
+ {row[0]}
+ {n(row[1])}
+ {n(row[2])}
+
+ ))}
+
+
+
+
+ The largest bucket, {d.wallets.topBucket}, holds that one wallet, and no other wallet made more than {n(d.wallets.nextLargest)}. All {n(d.largeWallets.registrations)} of its stored registrations are on one host name, and it gave each of them a profile link of its own.
+
+
+
+
+ Host names
+
+ {n(d.hosts.withHttps)} of the {n(REGISTRY.registrations)} registrations ({pc(d.hosts.withHttpsPercent)}) have an https link, spread over {n(REGISTRY.hosts)} host names, all of them in the table below. One host name holds {n(d.hosts.largest)} of them ({pc(d.hosts.largestPercent)}), which is {pc(d.hosts.largestOfAllPercent)} of all the registrations. The next holds {n(d.hosts.second)} ({pc(d.hosts.secondPercent)}) and the one after holds {n(d.hosts.third)}. The two largest together hold {n(d.hosts.twoLargest)} ({pc(d.hosts.twoLargestPercent)}).
+
+
+ The largest host name is at the {n(CHAIN.hostRowCap)} registrations a host may keep, and the one wallet in the largest bucket of the wallet table made all of them. The directory counted {n(d.hosts.overflowLargest)} more for it, with no wallet recorded, so it holds {n(d.hosts.largestHeld)} in all, {pc(d.hosts.largestHeldPercent)} of the {n(REGISTRY.onChain)} the directory counts on the chain. The {n(REGISTRY.overflow)} registrations counted and not stored are {pc(d.hosts.overflowPercent)} of the {n(REGISTRY.onChain)}, and none of them is listed.
+
+
+ Only one host name holds {THRESHOLDS.largeHost} or more registrations. It holds {n(d.hosts.atLeastThresholdRegistrations)}, {pc(d.hosts.atLeastThresholdPercent)} of those with an https link and {pc(d.hosts.atLeastThresholdOfAllPercent)} of all of them.
+
+
+
+ Registrations stored for each host name, by size; no host is named
+
+
+ Host name, by size
+ Registrations
+
+
+
+ {MEASURED.q4.map(row => (
+
+ {PLACE[row[0] - 1]}
+ {n(row[1])}
+
+ ))}
+
+
+
+
+
+
+ Profile links
+
+ {n(d.links.usedOnce)} of the {n(d.links.total)} different profile links ({pc(d.links.usedOncePercent)}) are used by one registration each. {n(d.links.shared)} are used by more than one, by {n(d.links.sharedRegistrations)} registrations in all ({pc(d.links.sharedRegistrationsPercent)}). No profile link is used by {THRESHOLDS.bigLink} or more registrations. The most any one link has is {n(d.links.largest)} ({pc(d.links.largestPercent)} of all the registrations).
+
+
+
+ Profile links by how many registrations use one
+
+
+ Registrations using one link
+ Links
+ Registrations
+
+
+
+ {MEASURED.q5.map(row => (
+
+ {row[0]}
+ {n(row[1])}
+ {n(row[2])}
+
+ ))}
+
+
+
+
+
+
+ Names
+
+ {n(d.names.placeholder)} of the {n(REGISTRY.registrations)} registrations ({pc(d.names.placeholderPercent)}) have no name of their own. They carry the placeholder the directory gives a registration that has none: the word Agent and its number. The other {n(d.names.named)} carry {n(d.names.distinct)} distinct names, and {n(d.names.sharing)} registrations ({pc(d.names.sharingPercent)}) share a name with at least one other. No name is shared by {THRESHOLDS.sharedName} or more, and the largest group is {n(d.names.largestGroup)}.
+
+
+ A registry row takes a name only from registration data written into the chain event itself. The directory also reads a name for some listed entries from the file their registration link names. That name is written to the entry and not to the registry row, so it is not counted here.
+
+
+ A name is written by whoever registered the agent and has not been verified. Two registrations with the same name are not necessarily the same agent or the same person.
+
+
+
+
+ What the chain records for each registration
+
+ The directory reads the registry event log for each registration: the mint, every transfer of it after the mint, and every edit of its profile link. It keeps a total for each, and all {n(d.activity.measured)} registrations have been measured.
+
+
+ {n(d.activity.transfers)} transfers after the mint are recorded, on {n(d.activity.changedHands)} registrations ({pc(d.activity.changedHandsPercent)}). {n(d.activity.noTransfer)} registrations ({pc(d.activity.noTransferPercent)}) have had none.
+
+
+ {n(d.activity.handouts)} hand-outs are recorded, on {n(d.activity.handedOut)} registrations ({pc(d.activity.handedOutPercent)}). A hand-out is a transfer sent from the wallet the registration was minted to, within about an hour of the mint ({n(CHAIN.handoutBlocks)} blocks on Gnosis). The other transfer came later than the first hour or from another wallet. A hand-out is a timing fact. It does not say why the registration was sent on or who received it.
+
+
+ {n(d.activity.edits)} edits of a profile link are recorded, on {n(d.activity.edited)} registrations ({pc(d.activity.editedPercent)}).
+
+
+
+
+ When the registrations were made
+
+ The date of a registration is worked out from its mint block and the time of a block that is known. A day and a month are dated through the same {n(CHAIN.stretches)} stretches of {n(CHAIN.stretchBlocks)} blocks, the last one shorter, from the registry's first block, {n(CHAIN.firstBlock)}, at {CHAIN.firstBlockTime} UTC, to the finalized block, {n(CHAIN.recentBlock)}, at {CHAIN.recentBlockTime} UTC. Each stretch has the time of its first block and the seconds a block took in it, read from the chain. A block on Gnosis takes about {CHAIN.blockSecondsLow} to {CHAIN.blockSecondsHigh} seconds, with a slot missed now and then. A date is within about {CHAIN.dateErrorMinutes} minutes of the real time at the worst and {CHAIN.dateMedianErrorMinutes} minutes at the median, checked against the block times in the logs of all {n(CHAIN.dateChecked)} registrations.
+
+
+ {n(d.time.firstMonthRegistrations)} of the registrations ({pc(d.time.firstMonthPercent)}) were made in {d.time.firstMonth}, the registry's first month. Of the {n(d.time.wholeLaterMonths)} whole months after it, {n(d.time.laterMonths)} have a registration, between {n(d.time.laterLow)} and {n(d.time.laterHigh)} each and {n(d.time.laterMonthsRegistrations)} in all ({pc(d.time.laterMonthsPercent)}), and {n(d.time.monthsWithNoneCount)} have none: {and(d.time.monthsWithNone)}. {d.time.passMonth}, the month of the pass, has none so far.
+
+
+ A host name past the cap keeps its first registrations in chain order, so the {n(REGISTRY.overflow)} registrations counted and not stored have no month and no day here. They were made after the {n(CHAIN.hostRowCap)} their host kept. The months and days below therefore show fewer registrations than the chain had: the months after the first look thinner here than they were on the chain, and the registry's own history is longer than this table shows.
+
+
+
+ Registrations in each UTC month that has one
+
+
+ UTC month
+ Registrations
+
+
+
+ {MEASURED.q10b.map(row => (
+
+ {row[0]}
+ {n(row[1])}
+
+ ))}
+
+
+
+
+ The table of days below shows the UTC days that have a registration among the {n(CHAIN.dayWindow)} days that end on {d.time.lastDay}, the day of the newest stored registration. {n(d.time.days)} days have one, {d.time.firstDay} and {d.time.lastDay}, with one registration each ({n(d.time.daysRegistrations)} in all, {pc(d.time.daysPercent)} of the registrations), and the other {n(d.time.daysWithNone)} days had none. The day of the pass named in the header is {d.time.passDay}, {n(d.time.daysBeforeThePass)} days after the day of the newest stored registration, and no stored registration is dated later.
+
+
+
+ Registrations in each UTC day that has one, among the {n(CHAIN.dayWindow)} days that end on {d.time.lastDay}
+
+
+ UTC day
+ Registrations
+
+
+
+ {MEASURED.q10a.map(row => (
+
+ {row[0]}
+ {n(row[1])}
+
+ ))}
+
+
+
+
+
+
+ Ratings
+
+ Ratings are not measured here. The directory also reads the reputation registry for a count of ratings, which the Gnosis tab and the API show once it has read the registry's whole history. This census does not use it.
+
+
+
+
+ What this does not show
+
+ It is not a count of people. A platform can register many agents under one wallet, and one person can use many wallets.
+ The registering wallet says who registered a registration and not who holds it. {n(d.activity.handedOut)} registrations were handed out within about an hour of the mint, so for those the wallet is not the holder.
+ It does not say whether an agent runs. Nothing was asked of any address.
+ A hand-out is a timing fact. It does not say why a registration was sent on or who received it.
+ A shared link, host name, wallet or name is a recorded fact. It does not say that one person is behind the registrations, or that anything is wrong. A registration the directory holds out is held out as shared, and is not called fake.
+ It counts the registrations the directory has stored, {n(REGISTRY.registrations)} of the {n(REGISTRY.onChain)} it counts on the chain. The other {n(REGISTRY.overflow)} were counted past a host's cap and are in no figure here but their count. It does not compare either count with a total from the registry itself.
+ The stored registrations are not a sample of the chain. A host name past the cap keeps its first registrations in chain order, so the figures for hosts, wallets, links, months and days describe the stored rows and not all {n(REGISTRY.onChain)}. Most of the stored rows are the first {n(CHAIN.hostRowCap)} of one host name.
+ The months and days are the most affected. The registrations counted and not stored were made after the {n(CHAIN.hostRowCap)} their host kept, so the registry's own history is longer than the table shows, and the months after the first look thinner here than they were on the chain.
+ Names and links are written by the registrants. We have not verified them.
+ A date is worked out from a block time, within the margins given above, and is not a clock the chain keeps for the registration.
+ It is one moment. Gnosis is read by a scheduled pass once a day and the chain is still adding registrations, so the figures are as of the pass named in the header.
+
+
+
+
+ What happens next
+
+ This census is a snapshot. It will be redone and dated again. Whether the listing rules should change for Gnosis is a decision for later, and nothing here changes them.
+
+
+
+ );
+}
diff --git a/apps/nooscape-relay/client/src/pages/Home.tsx b/apps/nooscape-relay/client/src/pages/Home.tsx
index 53ae404..54f20ee 100644
--- a/apps/nooscape-relay/client/src/pages/Home.tsx
+++ b/apps/nooscape-relay/client/src/pages/Home.tsx
@@ -36,10 +36,11 @@ export default function Home({ view = "home" }: { view?: "home" | "field" }) {
const mapFleetsQuery = trpc.liveData.mapFleets.useQuery(undefined, { enabled: view === "home", retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
// The groups of Arc registrations, drawn as domes beside the others while Arc's switch is on in this build. Not waited for and not retried: a failed or empty read leaves the map as it was, and the domes are placed after everything else, so they move nothing when they arrive.
const arcFleetsQuery = trpc.liveData.registryFleets.useQuery({ chain: "arc" }, { enabled: view === "home" && featureOn("chain_arc", import.meta.env.VITE_FEATURES), retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
- // The same for Base (crosses), Ethereum (pentagons) and Monad (stars), each behind its own switch and placed after the Arc domes.
+ // The same for Base (crosses), Ethereum (pentagons), Monad (stars) and Gnosis (octagons), each behind its own switch and placed after the Arc domes.
const baseFleetsQuery = trpc.liveData.registryFleets.useQuery({ chain: "base" }, { enabled: view === "home" && featureOn("chain_base", import.meta.env.VITE_FEATURES), retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
const ethereumFleetsQuery = trpc.liveData.registryFleets.useQuery({ chain: "ethereum" }, { enabled: view === "home" && featureOn("chain_ethereum", import.meta.env.VITE_FEATURES), retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
const monadFleetsQuery = trpc.liveData.registryFleets.useQuery({ chain: "monad" }, { enabled: view === "home" && featureOn("chain_monad", import.meta.env.VITE_FEATURES), retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
+ const gnosisFleetsQuery = trpc.liveData.registryFleets.useQuery({ chain: "gnosis" }, { enabled: view === "home" && featureOn("chain_gnosis", import.meta.env.VITE_FEATURES), retry: false, staleTime: 10 * 60_000, refetchOnWindowFocus: false });
const [query, setQuery] = useState("");
const [selectedId, setSelectedId] = useState("");
const [linkedAgentId, setLinkedAgentId] = useState(null);
@@ -423,7 +424,7 @@ export default function Home({ view = "home" }: { view?: "home" | "field" }) {
}>
-
+
{/* Below the map, not above it: the map is the best thing on the page and should be the first section a visitor reaches. The hero's own line says what is new and links here. */}
@@ -481,6 +482,8 @@ export default function Home({ view = "home" }: { view?: "home" | "field" }) {
Nooscape. A public agent observatory. Nooscape has issued no token on any chain and is not connected to any token that uses its name. Nothing here is an offer to sell a token or a place to buy one.
Nooscape doesn’t hold funds, sell placement, or rank agents. {liveRecords.length ? `${liveRecords.length} retained observation${liveRecords.length === 1 ? "" : "s"}.` : "No retained observations are visible right now."}
+ {/* RunTimeAdmin is the same stand-in as in the Terms: swap in a registered entity name here too (see the TODO in Terms.tsx). */}
+ Nooscape™ is run by RunTimeAdmin.
Disputes
diff --git a/apps/nooscape-relay/client/src/pages/MonadRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/MonadRegistryReport.tsx
index 150bf13..7f89cb5 100644
--- a/apps/nooscape-relay/client/src/pages/MonadRegistryReport.tsx
+++ b/apps/nooscape-relay/client/src/pages/MonadRegistryReport.tsx
@@ -1,5 +1,6 @@
import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, PUBLIC, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/monadRegistryReport";
import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage";
+import { CensusToday } from "@/components/CensusToday";
/**
* A dated census of the ERC-8004 identity registry on Monad as the directory holds it. It is a report, not a directory: it lists no
@@ -47,6 +48,7 @@ export default function MonadRegistryReport() {
Counted from
the registry pass that finished at {PASS_TIME}
+
How it was done
diff --git a/apps/nooscape-relay/client/src/pages/Privacy.tsx b/apps/nooscape-relay/client/src/pages/Privacy.tsx
index a0fd002..39965cc 100644
--- a/apps/nooscape-relay/client/src/pages/Privacy.tsx
+++ b/apps/nooscape-relay/client/src/pages/Privacy.tsx
@@ -1,13 +1,14 @@
import { Link } from "wouter";
-import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, monadClaimsOn } from "@shared/features";
+import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, gnosisClaimsOn, monadClaimsOn } from "@shared/features";
import { InfoPage, headingClass, linkClass, listClass, textClass } from "@/components/InfoPage";
import { REPLY_WITHIN, SECURITY_EMAIL, TRUST_EMAIL } from "@/lib/contacts";
-/** Arc's claims are on in this build: the page says so in one more sentence, and its date is the day that sentence was written. Base's, Ethereum's and Monad's are each one more, the same way. */
+/** Arc's claims are on in this build: the page says so in one more sentence, and its date is the day that sentence was written. Base's, Ethereum's, Monad's and Gnosis's are each one more, the same way. */
const ARC_CLAIMS = arcClaimsOn(import.meta.env.VITE_FEATURES);
const BASE_CLAIMS = baseClaimsOn(import.meta.env.VITE_FEATURES);
const ETHEREUM_CLAIMS = ethereumClaimsOn(import.meta.env.VITE_FEATURES);
const MONAD_CLAIMS = monadClaimsOn(import.meta.env.VITE_FEATURES);
+const GNOSIS_CLAIMS = gnosisClaimsOn(import.meta.env.VITE_FEATURES);
/**
* What Nooscape stores about the people who visit it, and what it publishes about wallets. Every claim on it was read off the
@@ -18,7 +19,7 @@ const MONAD_CLAIMS = monadClaimsOn(import.meta.env.VITE_FEATURES);
*/
export default function Privacy() {
return (
-
+
This page says what Nooscape keeps about the people who visit it, and what it publishes about wallets and registries. It describes the site as it is on the date above, and it changes when the site does.
@@ -58,7 +59,7 @@ export default function Privacy() {
When you claim an agent
- Claiming is optional. The owner of an agent on the Robinhood Chain or BNB Smart Chain registry can claim it by signing one message with their wallet. The signature proves that you control the wallet. It sends no transaction, costs no gas and gives Nooscape no access to your funds.{ARC_CLAIMS && " The owner of an agent on the Arc registry can claim it in the same way."}{BASE_CLAIMS && " The owner of an agent on the Base registry can claim it in the same way."}{ETHEREUM_CLAIMS && " The owner of an agent on the Ethereum registry can claim it in the same way."}{MONAD_CLAIMS && " The owner of an agent on the Monad registry can claim it in the same way."}
+ Claiming is optional. The owner of an agent on the Robinhood Chain or BNB Smart Chain registry can claim it by signing one message with their wallet. The signature proves that you control the wallet. It sends no transaction, costs no gas and gives Nooscape no access to your funds.{ARC_CLAIMS && " The owner of an agent on the Arc registry can claim it in the same way."}{BASE_CLAIMS && " The owner of an agent on the Base registry can claim it in the same way."}{ETHEREUM_CLAIMS && " The owner of an agent on the Ethereum registry can claim it in the same way."}{MONAD_CLAIMS && " The owner of an agent on the Monad registry can claim it in the same way."}{GNOSIS_CLAIMS && " The owner of an agent on the Gnosis registry can claim it in the same way."}
For a claim, Nooscape keeps the agent, your wallet address, the time of the claim, whether the claim is active, on hold or ended, a digest of your signature (not the signature), what you write (a name, a website, a description and up to five links), and a history of each change with the wallet that signed it and the time. The history is only added to.
The one-time request that your wallet signs is kept too: your wallet address, the agent, a hash of the one-time code, the times, and the text of the edit it is for. It is kept for at least two days after it expires, then deleted by a daily step.
Nooscape does not ask for your name or email address, and keeps no network address as part of a claim. The rate-limit log described above applies to claiming as it does to the rest of the site.
diff --git a/apps/nooscape-relay/client/src/pages/RobinhoodRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/RobinhoodRegistryReport.tsx
index f0d6bf1..a453cf1 100644
--- a/apps/nooscape-relay/client/src/pages/RobinhoodRegistryReport.tsx
+++ b/apps/nooscape-relay/client/src/pages/RobinhoodRegistryReport.tsx
@@ -1,6 +1,7 @@
import { Link } from "wouter";
import { DERIVED as d, MEASURED, PASS_TIME, REGISTRY, THRESHOLDS, formatPercent as pc } from "@/lib/robinhoodRegistryReport";
import { InfoPage, headingClass, linkClass, listClass, textClass } from "@/components/InfoPage";
+import { CensusToday } from "@/components/CensusToday";
/**
* A dated census of the ERC-8004 identity registry on Robinhood Chain as the directory holds it. It is a report, not a directory:
@@ -24,6 +25,14 @@ const SURFACE: ReadonlyArray = [
["Host names of those links", REGISTRY.hosts],
];
+/** The counts above, as the Today block matches them to the directory's: the first and third are this registry's own words. */
+const TODAY: ReadonlyArray = [
+ ["Entries the directory shows", REGISTRY.entries, "listed"],
+ ["Registering wallets", REGISTRY.wallets],
+ ["Entries with an https link", REGISTRY.withHttpsHost, "withHttpsHost"],
+ ["Host names of those links", REGISTRY.hosts],
+];
+
/** The size buckets of the per-entry table, in the order they grow. A bucket the query did not return holds no entries. */
const PER_ENTRY = ["0", "1", "2-4", "5+"] as const;
const perEntry = (what: "transfers" | "edits", bucket: string) => MEASURED.q6b.find(row => row[0] === what && row[1] === bucket)?.[2] ?? 0;
@@ -38,6 +47,7 @@ export default function RobinhoodRegistryReport() {
Counted from
the registry pass that finished at {PASS_TIME}
+
How it was done
diff --git a/apps/nooscape-relay/client/src/pages/SourceOperations.tsx b/apps/nooscape-relay/client/src/pages/SourceOperations.tsx
index e06c8be..6a41891 100644
--- a/apps/nooscape-relay/client/src/pages/SourceOperations.tsx
+++ b/apps/nooscape-relay/client/src/pages/SourceOperations.tsx
@@ -19,6 +19,7 @@ const CHAIN_ON = {
base: featureOn("chain_base", import.meta.env.VITE_FEATURES),
arc: featureOn("chain_arc", import.meta.env.VITE_FEATURES),
monad: featureOn("chain_monad", import.meta.env.VITE_FEATURES),
+ gnosis: featureOn("chain_gnosis", import.meta.env.VITE_FEATURES),
};
function formatDate(value: Date | null) {
@@ -38,6 +39,7 @@ function protocolLabel(protocol: string) {
if (protocol === "erc8004_base") return "Base ERC-8004 registry";
if (protocol === "erc8004_arc") return "Arc ERC-8004 registry";
if (protocol === "erc8004_monad") return "Monad ERC-8004 registry";
+ if (protocol === "erc8004_gnosis") return "Gnosis ERC-8004 registry";
if (protocol === "erc8004_reputation") return "ERC-8004 reputation";
if (protocol === "usdg_settlement") return "USDG settlements";
return protocol.toUpperCase();
@@ -444,6 +446,12 @@ export default function SourceOperations() {
registerApprovedMutation.mutate({ source: "agenstry" })} disabled={registerApprovedMutation.isPending}>
Stage Agenstry catalog
+ registerApprovedMutation.mutate({ source: "a2aregistry" })} disabled={registerApprovedMutation.isPending}>
+ Stage a2aregistry.org community registry · manual only
+
+ registerApprovedMutation.mutate({ source: "a2aRegistryApi" })} disabled={registerApprovedMutation.isPending}>
+ Stage A2A Registry (a2a-registry.org) · manual only
+
registerApprovedMutation.mutate({ source: "agentEconomy" })} disabled={registerApprovedMutation.isPending}>
Stage Agent Economy census
@@ -482,6 +490,11 @@ export default function SourceOperations() {
Stage Monad ERC-8004 registry · manual only
) : null}
+ {CHAIN_ON.gnosis ? (
+ registerApprovedMutation.mutate({ source: "gnosis" })} disabled={registerApprovedMutation.isPending}>
+ Stage Gnosis ERC-8004 registry · manual only
+
+ ) : null}
registerApprovedMutation.mutate({ source: "robinhood" })} disabled={registerApprovedMutation.isPending}>
Stage Robinhood ERC-8004 registry · manual only
@@ -602,7 +615,7 @@ export default function SourceOperations() {
const projectionState = projection?.state ?? "review";
const projectionClass = projectionState === "public" ? "active" : projectionState === "revoked" ? "rejected" : "review";
const approvedRunLabel = projection?.approvedRunId ? `approved run ${projection.approvedRunId.slice(0, 8)}${approvedRun?.finishedAt ? ` · ${formatDate(approvedRun.finishedAt)}` : ""}` : "no approved run";
- return {source.label} {protocolLabel(source.protocol)} · {source.executionPolicy === "manual_only" ? "manual only" : `every ${source.scheduleMinutes}m`} {source.allowedHostname}{source.failureCount} failed run{source.failureCount === 1 ? "" : "s"} {source.lastError ? last error: {source.lastError.slice(0, 200)} : null}{source.state} {formatDate(source.lastSuccessfulAt)} {source.executionPolicy === "manual_only" ? "not schedulable" : `next: ${formatDate(source.nextRunAt)}`} {projectionState} {approvedRunLabel} {latestRun && latestRun.id !== projection?.approvedRunId ? {latestRun.linkedRecordCount} record{latestRun.linkedRecordCount === 1 ? "" : "s"} in the latest run await review : null}{source.state === "review" ?
decideMutation.mutate({ sourceId: source.id, decision: "active", rationale: "Approved Nooscape operator pilot source." })} disabled={decideMutation.isPending}> Approve : null}{source.state === "active" && source.protocol !== "usdg_settlement" && source.protocol !== "erc8004_reputation" && source.protocol !== "solana_8004" && source.protocol !== "solana_said" && source.protocol !== "solana_agenc" && source.protocol !== "erc8004_bsc" ?
runMutation.mutate({ sourceId: source.id })} disabled={runMutation.isPending}> Run once : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "backfill") ?
runMutation.mutate({ sourceId: source.id, mode: "backfill" })} disabled={runMutation.isPending}> Backfill window : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "registrants") ?
runMutation.mutate({ sourceId: source.id, mode: "registrants" })} disabled={runMutation.isPending}> Fill registrants : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "activity") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill activity : null}{source.state === "active" && source.protocol === "usdg_settlement" ?
runMutation.mutate({ sourceId: source.id })} disabled={runMutation.isPending}> Fill settlements : null}{source.state === "active" && source.protocol === "erc8004_reputation" && reputationWalkMode(source.cursor) !== "activity" ?
runMutation.mutate({ sourceId: source.id, mode: "backfill" })} disabled={runMutation.isPending}> Backfill window : null}{source.state === "active" && source.protocol === "erc8004_reputation" && reputationWalkMode(source.cursor) !== "backfill" ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill ratings : null}{source.state === "active" && (source.protocol === "solana_registry" || source.protocol === "solana_said" || source.protocol === "solana_agenc") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill chain state : null}{source.state === "active" && source.protocol === "solana_8004" ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Run chain pass : null}{source.state === "active" && (source.protocol === "erc8004_bsc" || source.protocol === "erc8004_eth" || source.protocol === "erc8004_base" || source.protocol === "erc8004_arc" || source.protocol === "erc8004_monad") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Run chain pass : null}{latestRun ?
setVerifySourceId(source.id)}> Verify evidence : null}{source.state === "active" && latestRun && latestRun.id !== projection?.approvedRunId ?
projectMutation.mutate({ sourceId: source.id, decision: "public", rationale: `Approved reviewed run ${latestRun.id.slice(0, 8)} for ${source.label}.`, runId: latestRun.id })} disabled={projectMutation.isPending}> Publish reviewed run : null}{projectionState === "public" ?
projectMutation.mutate({ sourceId: source.id, decision: "revoked", rationale: `Revoked public projection for ${source.label}.` })} disabled={projectMutation.isPending}> Revoke public : null}{source.state === "paused" ?
decideMutation.mutate({ sourceId: source.id, decision: "active", rationale: "Resumed by an operator." })} disabled={decideMutation.isPending}> Resume : null}{source.state === "active" ?
decideMutation.mutate({ sourceId: source.id, decision: "paused", rationale: "Paused by an operator." })} disabled={decideMutation.isPending}> Pause : null}{source.state === "review" ?
decideMutation.mutate({ sourceId: source.id, decision: "rejected", rationale: "Rejected by an operator." })} disabled={decideMutation.isPending}> Reject : null}
;
+ return {source.label} {protocolLabel(source.protocol)} · {source.executionPolicy === "manual_only" ? "manual only" : `every ${source.scheduleMinutes}m`} {source.allowedHostname}{source.failureCount} failed run{source.failureCount === 1 ? "" : "s"} {source.lastError ? last error: {source.lastError.slice(0, 200)} : null}{source.state} {formatDate(source.lastSuccessfulAt)} {source.executionPolicy === "manual_only" ? "not schedulable" : `next: ${formatDate(source.nextRunAt)}`} {projectionState} {approvedRunLabel} {latestRun && latestRun.id !== projection?.approvedRunId ? {latestRun.linkedRecordCount} record{latestRun.linkedRecordCount === 1 ? "" : "s"} in the latest run await review : null}{source.state === "review" ?
decideMutation.mutate({ sourceId: source.id, decision: "active", rationale: "Approved Nooscape operator pilot source." })} disabled={decideMutation.isPending}> Approve : null}{source.state === "active" && source.protocol !== "usdg_settlement" && source.protocol !== "erc8004_reputation" && source.protocol !== "solana_8004" && source.protocol !== "solana_said" && source.protocol !== "solana_agenc" && source.protocol !== "erc8004_bsc" ?
runMutation.mutate({ sourceId: source.id })} disabled={runMutation.isPending}> Run once : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "backfill") ?
runMutation.mutate({ sourceId: source.id, mode: "backfill" })} disabled={runMutation.isPending}> Backfill window : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "registrants") ?
runMutation.mutate({ sourceId: source.id, mode: "registrants" })} disabled={runMutation.isPending}> Fill registrants : null}{source.state === "active" && source.protocol === "erc8004" && identityWalkOffered(source.cursor, "activity") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill activity : null}{source.state === "active" && source.protocol === "usdg_settlement" ?
runMutation.mutate({ sourceId: source.id })} disabled={runMutation.isPending}> Fill settlements : null}{source.state === "active" && source.protocol === "erc8004_reputation" && reputationWalkMode(source.cursor) !== "activity" ?
runMutation.mutate({ sourceId: source.id, mode: "backfill" })} disabled={runMutation.isPending}> Backfill window : null}{source.state === "active" && source.protocol === "erc8004_reputation" && reputationWalkMode(source.cursor) !== "backfill" ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill ratings : null}{source.state === "active" && (source.protocol === "solana_registry" || source.protocol === "solana_said" || source.protocol === "solana_agenc") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Fill chain state : null}{source.state === "active" && source.protocol === "solana_8004" ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Run chain pass : null}{source.state === "active" && (source.protocol === "erc8004_bsc" || source.protocol === "erc8004_eth" || source.protocol === "erc8004_base" || source.protocol === "erc8004_arc" || source.protocol === "erc8004_monad" || source.protocol === "erc8004_gnosis") ?
runMutation.mutate({ sourceId: source.id, mode: "activity" })} disabled={runMutation.isPending}> Run chain pass : null}{latestRun ?
setVerifySourceId(source.id)}> Verify evidence : null}{source.state === "active" && latestRun && latestRun.id !== projection?.approvedRunId ?
projectMutation.mutate({ sourceId: source.id, decision: "public", rationale: `Approved reviewed run ${latestRun.id.slice(0, 8)} for ${source.label}.`, runId: latestRun.id })} disabled={projectMutation.isPending}> Publish reviewed run : null}{projectionState === "public" ?
projectMutation.mutate({ sourceId: source.id, decision: "revoked", rationale: `Revoked public projection for ${source.label}.` })} disabled={projectMutation.isPending}> Revoke public : null}{source.state === "paused" ?
decideMutation.mutate({ sourceId: source.id, decision: "active", rationale: "Resumed by an operator." })} disabled={decideMutation.isPending}> Resume : null}{source.state === "active" ?
decideMutation.mutate({ sourceId: source.id, decision: "paused", rationale: "Paused by an operator." })} disabled={decideMutation.isPending}> Pause : null}{source.state === "review" ?
decideMutation.mutate({ sourceId: source.id, decision: "rejected", rationale: "Rejected by an operator." })} disabled={decideMutation.isPending}> Reject : null}
;
})}
) : No production sources are registered. The public map remains in seed mode.
}
diff --git a/apps/nooscape-relay/client/src/pages/SourceStatus.tsx b/apps/nooscape-relay/client/src/pages/SourceStatus.tsx
index 0b9fd53..839bef9 100644
--- a/apps/nooscape-relay/client/src/pages/SourceStatus.tsx
+++ b/apps/nooscape-relay/client/src/pages/SourceStatus.tsx
@@ -114,7 +114,7 @@ export default function SourceStatus() {
- What this means An active status authorizes bounded reads of public data from that source, scheduled or run by an operator. For an A2A source it also allows a check once a day that the endpoints its approved cards declare answer (Nooscape-Checker). For the 8004 registries on Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc and Monad, and the SAID registry on Solana, it also allows reading the registration link of an entry, a few at a time, to find its name or to group look-alike entries (Nooscape-Checker). It does not verify a publisher key, invoke an agent, execute a tool, authorize payment, or create a trust score.
+ What this means An active status authorizes bounded reads of public data from that source, scheduled or run by an operator. For an A2A source it also allows a check once a day that the endpoints its approved cards declare answer (Nooscape-Checker). For the 8004 registries on Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc, Monad and Gnosis, and the SAID registry on Solana, it also allows reading the registration link of an entry, a few at a time, to find its name or to group look-alike entries (Nooscape-Checker). It does not verify a publisher key, invoke an agent, execute a tool, authorize payment, or create a trust score.
NOOSCAPE / PUBLIC AGENT OBSERVATORY Source state is not a trust tier
diff --git a/apps/nooscape-relay/client/src/pages/censusTodayPages.test.ts b/apps/nooscape-relay/client/src/pages/censusTodayPages.test.ts
new file mode 100644
index 0000000..2dbee5c
--- /dev/null
+++ b/apps/nooscape-relay/client/src/pages/censusTodayPages.test.ts
@@ -0,0 +1,103 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { createElement, type ComponentType } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { Router } from "wouter";
+import { describe, expect, it, vi } from "vitest";
+import type { CensusChain, CensusToday } from "@shared/censusToday";
+
+/**
+ * Every registry census report carries the Today block, right after the lines that say when it was measured, and the block has a line
+ * for each line of the report's first table. The lines are matched by label, so a label that is changed on a page and not here would
+ * drop its line without a word; the row counts below are what keep each page's table and the block together.
+ */
+const mocks = vi.hoisted(() => ({ requested: [] as string[] }));
+vi.mock("@/lib/trpc", () => ({
+ trpc: {
+ liveData: {
+ censusToday: {
+ useQuery: (input: { chain: CensusChain }) => {
+ mocks.requested.push(input.chain);
+ const figures = { onChain: 1_001, stored: 1_002, overflow: 1_003, listed: 1_004, wallets: 1_005, withHttpsHost: 1_006, hosts: 1_007, profileLinks: 1_008 };
+ return { data: { today: { chain: input.chain, asOf: "2026-11-07T01:02:03.000Z", figures, heldOut: null, ratings: null } satisfies CensusToday } };
+ },
+ },
+ },
+ },
+ ownRequest: { trpc: { context: { ownRequest: true } } },
+}));
+
+import ArcRegistryReport from "./ArcRegistryReport";
+import BnbRegistryReport from "./BnbRegistryReport";
+import ArcRegistryReport20261106 from "./ArcRegistryReport20261106";
+import BaseRegistryReport from "./BaseRegistryReport";
+import EthereumRegistryReport from "./EthereumRegistryReport";
+import GnosisRegistryReport from "./GnosisRegistryReport";
+import MonadRegistryReport from "./MonadRegistryReport";
+import RobinhoodRegistryReport from "./RobinhoodRegistryReport";
+
+const PAGES: ReadonlyArray<{ name: string; chain: CensusChain; page: ComponentType; measuredOn: string; lines: number }> = [
+ { name: "Arc, 2026-10-20", chain: "arc", page: ArcRegistryReport, measuredOn: "2026-10-20", lines: 6 },
+ { name: "Arc, 2026-11-06", chain: "arc", page: ArcRegistryReport20261106, measuredOn: "2026-11-06", lines: 8 },
+ { name: "Base", chain: "base", page: BaseRegistryReport, measuredOn: "2026-10-21", lines: 6 },
+ { name: "Ethereum", chain: "ethereum", page: EthereumRegistryReport, measuredOn: "2026-10-28", lines: 8 },
+ { name: "Monad", chain: "monad", page: MonadRegistryReport, measuredOn: "2026-11-01", lines: 8 },
+ { name: "Gnosis", chain: "gnosis", page: GnosisRegistryReport, measuredOn: "2026-11-06", lines: 8 },
+ { name: "Robinhood Chain", chain: "robinhood", page: RobinhoodRegistryReport, measuredOn: "2026-10-20", lines: 4 },
+ { name: "BNB Chain", chain: "bnb", page: BnbRegistryReport, measuredOn: "2026-10-16", lines: 1 },
+];
+
+const text = (markup: string) => markup.replace(/<[^>]+>/g, " ").replace(/'/g, "'").replace(/\s+/g, " ");
+const render = (page: ComponentType) =>
+ renderToStaticMarkup(createElement(QueryClientProvider, { client: new QueryClient() }, createElement(Router, { ssrPath: "/field/x", children: createElement(page) })));
+
+describe("the census reports and their Today block", () => {
+ it.each(PAGES)("$name asks for its own chain and shows a line for each line of its first table, dated as the report is", ({ chain, page, measuredOn, lines }) => {
+ mocks.requested.length = 0;
+
+ const markup = render(page);
+
+ expect(mocks.requested).toEqual([chain]);
+ expect(markup).toContain(`data-census-today="${chain}"`);
+ const block = markup.slice(markup.indexOf('data-census-today'));
+ const body = block.slice(0, block.indexOf(" "));
+ expect(body).toContain(`The report below is a measurement of ${measuredOn}`);
+ // One row of the body for each line of the report's own table, and each carries today's count and a change.
+ const rows = body.match(//g) ?? [];
+ expect(rows.length).toBe(lines);
+ expect(body).toMatch(/1,00\d/);
+ });
+
+ it.each(PAGES)("$name puts the block directly after the lines that say when it was measured", ({ page }) => {
+ const markup = render(page);
+
+ const afterDates = markup.slice(markup.indexOf("") + "".length);
+ // The first section after the lines that say when it was measured is the Today block's own.
+ expect(afterDates.indexOf(" {
+ for (const { page, chain } of PAGES) {
+ const body = text(render(page));
+ expect(body.includes("has capped the rows it stores for one host name"), chain).toBe(chain === "base");
+ }
+ expect(text(render(BaseRegistryReport))).toContain("Those registrations were not lost: they are counted and not stored.");
+ });
+
+ it("reads the lines of Robinhood Chain's table by the words that page uses", () => {
+ const body = render(RobinhoodRegistryReport);
+
+ expect(body).toContain("Entries the directory shows");
+ expect(body).toContain("Entries with an https link");
+ expect(body).toMatch(/Entries the directory shows<\/th>]*>[\d,]+<\/td> ]*>1,004<\/td>/);
+ expect(body).toMatch(/Entries with an https link<\/th> ]*>[\d,]+<\/td> ]*>1,006<\/td>/);
+ });
+
+ it("is absent where there is no query client, which leaves the reports as the report tests render them", () => {
+ for (const { page, chain } of PAGES) {
+ const markup = renderToStaticMarkup(createElement(Router, { ssrPath: "/field/x", children: createElement(page) }));
+ expect(markup, chain).not.toContain("census-today");
+ }
+ });
+});
diff --git a/apps/nooscape-relay/client/src/pages/gnosisRegistryReport.test.ts b/apps/nooscape-relay/client/src/pages/gnosisRegistryReport.test.ts
new file mode 100644
index 0000000..8833f7f
--- /dev/null
+++ b/apps/nooscape-relay/client/src/pages/gnosisRegistryReport.test.ts
@@ -0,0 +1,837 @@
+import { readFileSync } from "node:fs";
+import path from "node:path";
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { Router } from "wouter";
+import { describe, expect, it } from "vitest";
+import { CHAIN_GROUP_REPORT } from "@/lib/chainExplorerModel";
+import { CHAIN, DERIVED as d, GNOSIS_DOC, GNOSIS_SQL, MEASURED, PASS_TIME, PUBLIC, REGISTRY, RULES, THRESHOLDS, formatPercent as pc, percent } from "@/lib/gnosisRegistryReport";
+import GnosisRegistryReport from "./GnosisRegistryReport";
+
+/**
+ * The Gnosis registry census report states numbers that people will quote, so they are held to their source. The page reads
+ * lib/gnosisRegistryReport.ts and nothing else; these render it, check every number on it is one of that file's figures, check each
+ * measured row against the document that holds the query output, check the totals add up, and keep the page to the rules the other
+ * censuses set: no per-agent rows, no ranking, no score, no tier, no glow, no host, wallet or person named.
+ *
+ * Gnosis's figures differ from Monad's in ways the words of the page depend on, so the facts each of those sentences rests on are
+ * pinned here too: one host name past the cap, which holds 92 percent of the chain and 2,000 stored rows that one wallet made; one
+ * wallet and one host name that reach 50; no profile link used by 50 or more; a state-4 row (a name that is only a number); one
+ * transfer that was not a hand-out; two days with a registration, which end 20 days before the pass; months with none; and block
+ * times that are close to constant, so the same stretches date the days and the months.
+ */
+const here = import.meta.dirname;
+const read = (...parts: string[]) => readFileSync(path.resolve(here, ...parts), "utf8").replace(/\r\n/g, "\n");
+const docs = (name: string) => read("..", "..", "..", "docs", name);
+
+const ROUTE = "/field/gnosis-registry-2026-11-06";
+const markup = renderToStaticMarkup(createElement(Router, { ssrPath: ROUTE, children: createElement(GnosisRegistryReport) }));
+const decode = (value: string) => value.replace(/’/g, "’").replace(/"/g, '"').replace(/'/g, "'").replace(/'/g, "'").replace(/&/g, "&");
+const text = decode(markup.replace(/<[^>]+>/g, " ")).replace(/\s+/g, " ").trim();
+const pageSource = read("GnosisRegistryReport.tsx");
+const dataSource = read("..", "lib", "gnosisRegistryReport.ts");
+const doc = docs("gnosis-census-2026-11-06.md");
+const sql = docs("gnosis-census-queries-2026-11-06.sql");
+const stripComments = (source: string) => source.replace(/\/\*[\s\S]*?\*\//g, " ").replace(/(^|[^:])\/\/.*$/gm, "$1");
+const n = (value: number) => value.toLocaleString("en-US");
+/** A number as the chain table writes it in source: with underscores, as in 44_505_010. */
+const underscored = (value: number) => value.toLocaleString("en-US").replace(/,/g, "_");
+
+/** Every number in a value, however deep, as the page would write it. */
+const numbersIn = (value: unknown): number[] => {
+ if (typeof value === "number") return [value];
+ if (Array.isArray(value)) return value.flatMap(numbersIn);
+ if (value && typeof value === "object") return Object.values(value).flatMap(numbersIn);
+ return [];
+};
+/** The digits inside a size-bucket label such as "10-49" or "1000+": they are text the page prints, not figures. */
+const labelDigits = (value: unknown): string[] => {
+ if (typeof value === "string") return value.match(/\d+/g) ?? [];
+ if (Array.isArray(value)) return value.flatMap(labelDigits);
+ if (value && typeof value === "object") return Object.values(value).flatMap(labelDigits);
+ return [];
+};
+/** How a figure is written on the page: with thousands separators, or as a share to one decimal place. */
+const written = (value: number) => [n(value), value.toFixed(1)];
+
+const registrations = REGISTRY.registrations;
+const q = { q0: MEASURED.q0[0], q0b: MEASURED.q0b[0], q1: MEASURED.q1[0], q3b: MEASURED.q3b[0], q4b: MEASURED.q4b[0], q6: MEASURED.q6[0], q8: MEASURED.q8[0] };
+const walletBucket = (name: string) => MEASURED.q2.find(row => row[0] === name)!;
+const linkBucket = (name: string) => MEASURED.q5.find(row => row[0] === name)!;
+const ledgerKind = (kind: string) => MEASURED.q9.find(row => row[0] === kind)!;
+const sum = (values: readonly number[]) => values.reduce((total, value) => total + value, 0);
+/** Whole days from one UTC date to another, both written YYYY-MM-DD. */
+const daysBetween = (from: string, to: string) => Math.round((Date.parse(`${to}T00:00:00Z`) - Date.parse(`${from}T00:00:00Z`)) / 86_400_000);
+/** The months strictly between two months written YYYY-MM, listed by stepping the calendar. */
+const monthsStrictlyBetween = (from: string, to: string) => {
+ const found: string[] = [];
+ // Date.UTC takes a month from 0, so the month number of `from` as it is written is the index of the month after it.
+ const cursor = new Date(Date.UTC(Number(from.slice(0, 4)), Number(from.slice(5, 7)), 1));
+ for (let guard = 0; guard < 240; guard += 1) {
+ const label = cursor.toISOString().slice(0, 7);
+ if (label >= to) break;
+ found.push(label);
+ cursor.setUTCMonth(cursor.getUTCMonth() + 1);
+ }
+ return found;
+};
+
+describe("the numbers on the page are the numbers in the data file", () => {
+ it("has no number that is not a measured value, a derived value, a threshold, a fact about the chain or a label of a size bucket", () => {
+ const allowed = new Set([
+ ...[...numbersIn(MEASURED), ...numbersIn(d), ...numbersIn(REGISTRY), ...numbersIn(PUBLIC), ...numbersIn(THRESHOLDS), ...numbersIn(CHAIN)].flatMap(written),
+ ...labelDigits(MEASURED.q2),
+ ...labelDigits(MEASURED.q5),
+ ...labelDigits(RULES),
+ // A chain id is an identifier and is written as it is, with no thousands separator.
+ String(CHAIN.id),
+ ]);
+ const withoutTokens = text
+ .replace(/\b\d{4}-\d{2}(?:-\d{2})?\b/g, " ") // a UTC month or day, and the date in the header
+ .replace(/\b\d{2}:\d{2}(?::\d{2})?\b/g, " ") // a time of day in the header and the two block times
+ .replace(/\b8004\b/g, " ") // the standard's name
+ .replace(/\b\d+-\d+\b/g, match => match.replace("-", " ")); // a size bucket such as 10-49, whose parts are checked as labels
+ const found = (withoutTokens.match(/\d[\d,]*(?:\.\d+)?/g) ?? []).map(token => token.replace(/,$/, ""));
+ expect(found.length).toBeGreaterThan(80);
+ const stray = found.filter(token => !allowed.has(token));
+ expect(stray, `numbers on the page that are not in lib/gnosisRegistryReport.ts: ${[...new Set(stray)].join(", ")}`).toEqual([]);
+ });
+
+ it("writes no figure into the page's own source, which would let it drift from the file", () => {
+ const literal = (stripComments(pageSource).match(/\b\d[\d,]{2,}\b/g) ?? []).filter(token => !["2026", "8004"].includes(token));
+ expect(literal, "a number written into GnosisRegistryReport.tsx").toEqual([]);
+ });
+
+ it("has every figure a finite number: a least or a most of an empty list does not leave an Infinity or a NaN", () => {
+ for (const [name, source] of Object.entries({ MEASURED, DERIVED: d, REGISTRY, PUBLIC, THRESHOLDS, CHAIN })) {
+ const numbers = numbersIn(source);
+ expect(numbers.length, name).toBeGreaterThan(0);
+ for (const value of numbers) expect(Number.isFinite(value), `${name} holds ${value}`).toBe(true);
+ }
+ expect(text).not.toMatch(/Infinity|NaN|undefined|null/);
+ });
+
+ it("carries the date and the pass it was counted from in its header", () => {
+ expect(text).toContain(`Date ${MEASURED.date}`);
+ expect(PASS_TIME).toBe("21:12 UTC");
+ expect(text).toContain(`Counted from the registry pass that finished at ${PASS_TIME}`);
+ });
+
+ it("says Gnosis is read once a day, and that the pass it was counted from was started by hand because the first scheduled pass had not finished", () => {
+ expect(text).toContain(
+ "Gnosis is read by a scheduled pass once a day. Query 0 shows the last pass that succeeded, and when the queries were run that was a pass started by hand, because the first scheduled pass had not finished."
+ );
+ expect(text).toContain("It is one moment. Gnosis is read by a scheduled pass once a day and the chain is still adding registrations, so the figures are as of the pass named in the header.");
+ });
+
+ it("says what the directory counts on the chain, stores, and leaves out of the stored rows", () => {
+ expect(text).toContain(
+ `The directory counts ${n(REGISTRY.onChain)} registrations on the chain and has stored ${n(registrations)} of them. A host name that holds more than ${n(CHAIN.hostRowCap)} registrations keeps its first ${n(CHAIN.hostRowCap)}, in the order they were made on the chain, and the rest are counted and not stored: ${n(REGISTRY.overflow)} registrations, for ${n(d.hosts.pastTheCap)} host name. Every figure below counts the stored registrations, so those ${n(REGISTRY.overflow)} are in none of them.`
+ );
+ });
+
+ it("states the registry's size and surface in one table, and says none is hidden and what the public counts are", () => {
+ expect(text).toContain(
+ `What was counted Count Registrations the directory counts on the chain ${n(REGISTRY.onChain)} Registrations the directory has stored ${n(registrations)} Registrations counted past a host's cap and not stored ${n(REGISTRY.overflow)} Registrations the directory lists ${n(REGISTRY.listed)} Registering wallets ${n(REGISTRY.wallets)} Registrations with an https link ${n(REGISTRY.withHttpsHost)} Host names of those links ${n(REGISTRY.hosts)} Different profile links ${n(REGISTRY.profileLinks)}`
+ );
+ expect(text).toContain(`${n(d.hosts.withoutHost)} registrations (${pc(d.hosts.withoutHostPercent)}) have no https host name recorded, and ${n(REGISTRY.noUriSet)} set no profile link at all.`);
+ expect(text).toContain(
+ `No registration is hidden, so the public count of listed entries, ${n(PUBLIC.listed)}, is the same as the ${n(REGISTRY.listed)} in the table. The public count of registrations on the chain, ${n(PUBLIC.onChain)}, is the ${n(REGISTRY.registrations)} stored plus the ${n(REGISTRY.overflow)} counted and not stored.`
+ );
+ });
+
+ it("says what the listing rules did, in one table, with the first rule that reached each registration held out and the registration whose name is only a number", () => {
+ expect(text).toContain(
+ `Of the ${n(registrations)} stored registrations, ${n(d.listing.listed)} (${pc(d.listing.listedPercent)}) are listed in the directory, which is ${pc(d.listing.listedOfChainPercent)} of the ${n(REGISTRY.onChain)} the directory counts on the chain. ${n(d.listing.noLink)} (${pc(d.listing.noLinkPercent)}) have no usable profile link. ${n(d.listing.heldOut)} (${pc(d.listing.heldOutPercent)}) are held out as shared, not judged. ${n(d.listing.numberOnly)} carries a name that is only a number, and is not listed.`
+ );
+ expect(text).toContain(
+ `What happened Registrations Listed in the directory ${n(d.listing.listed)} No usable profile link ${n(d.listing.noLink)} Held out first: ${RULES.link} ${n(d.listing.byLink)} Held out first: ${RULES.host} ${n(d.listing.byHost)} Held out first: ${RULES.wallet} ${n(d.listing.byWallet)} A name that is only a number ${n(d.listing.numberOnly)}`
+ );
+ expect(text).not.toContain("None carries a name that is only a number");
+ expect(text).toContain("or because it has no usable profile link or a name that is only a number.");
+ expect(text).toContain("A rule that reaches a registration first is not the only one that would have.");
+ expect(text).toContain(
+ `The profile link rule reached ${n(d.listing.byLink)} registrations first, ${pc(d.listing.byLinkPercent)} of all of them, and the host name rule reached ${n(d.listing.byHost)}, ${pc(d.listing.byHostPercent)}.`
+ );
+ expect(text).toContain("These are the rules written for the BNB Chain registry, and they have not been changed for Gnosis. This census says what they did here. It does not say whether they are right for Gnosis.");
+ });
+
+ it("has the findings as sentences, with the denominator stated", () => {
+ expect(text).toContain(
+ `${n(d.wallets.tenOrMore)} wallets each registered ${THRESHOLDS.tenWallet} or more. Together they made ${n(d.wallets.tenOrMoreRegistrations)} of the ${n(registrations)} registrations (${pc(d.wallets.tenOrMorePercent)}). Only one of them registered ${THRESHOLDS.largeWallet} or more, and it made ${n(d.wallets.largeRegistrations)} of the ${n(registrations)} (${pc(d.wallets.largePercent)}).`
+ );
+ expect(text).toContain(
+ `At the other end, ${n(d.wallets.withOne)} of the ${n(REGISTRY.wallets)} wallets (${pc(d.wallets.withOnePercent)}) registered one each. Together they made ${n(d.wallets.withOneRegistrations)} registrations (${pc(d.wallets.withOneRegistrationsPercent)}).`
+ );
+ expect(text).toContain(
+ `The largest bucket, ${d.wallets.topBucket}, holds that one wallet, and no other wallet made more than ${n(d.wallets.nextLargest)}. All ${n(d.largeWallets.registrations)} of its stored registrations are on one host name, and it gave each of them a profile link of its own.`
+ );
+ expect(text).toContain(
+ `${n(d.hosts.withHttps)} of the ${n(registrations)} registrations (${pc(d.hosts.withHttpsPercent)}) have an https link, spread over ${n(REGISTRY.hosts)} host names, all of them in the table below. One host name holds ${n(d.hosts.largest)} of them (${pc(d.hosts.largestPercent)}), which is ${pc(d.hosts.largestOfAllPercent)} of all the registrations. The next holds ${n(d.hosts.second)} (${pc(d.hosts.secondPercent)}) and the one after holds ${n(d.hosts.third)}. The two largest together hold ${n(d.hosts.twoLargest)} (${pc(d.hosts.twoLargestPercent)}).`
+ );
+ expect(text).toContain(
+ `The largest host name is at the ${n(CHAIN.hostRowCap)} registrations a host may keep, and the one wallet in the largest bucket of the wallet table made all of them. The directory counted ${n(d.hosts.overflowLargest)} more for it, with no wallet recorded, so it holds ${n(d.hosts.largestHeld)} in all, ${pc(d.hosts.largestHeldPercent)} of the ${n(REGISTRY.onChain)} the directory counts on the chain. The ${n(REGISTRY.overflow)} registrations counted and not stored are ${pc(d.hosts.overflowPercent)} of the ${n(REGISTRY.onChain)}, and none of them is listed.`
+ );
+ expect(text).toContain(
+ `Only one host name holds ${THRESHOLDS.largeHost} or more registrations. It holds ${n(d.hosts.atLeastThresholdRegistrations)}, ${pc(d.hosts.atLeastThresholdPercent)} of those with an https link and ${pc(d.hosts.atLeastThresholdOfAllPercent)} of all of them.`
+ );
+ expect(text).toContain(
+ `${n(d.links.usedOnce)} of the ${n(d.links.total)} different profile links (${pc(d.links.usedOncePercent)}) are used by one registration each. ${n(d.links.shared)} are used by more than one, by ${n(d.links.sharedRegistrations)} registrations in all (${pc(d.links.sharedRegistrationsPercent)}). No profile link is used by ${THRESHOLDS.bigLink} or more registrations. The most any one link has is ${n(d.links.largest)} (${pc(d.links.largestPercent)} of all the registrations).`
+ );
+ expect(text).toContain(`${n(d.names.placeholder)} of the ${n(registrations)} registrations (${pc(d.names.placeholderPercent)}) have no name of their own.`);
+ expect(text).toContain(
+ `The other ${n(d.names.named)} carry ${n(d.names.distinct)} distinct names, and ${n(d.names.sharing)} registrations (${pc(d.names.sharingPercent)}) share a name with at least one other. No name is shared by ${THRESHOLDS.sharedName} or more, and the largest group is ${n(d.names.largestGroup)}.`
+ );
+ expect(text).toContain(`all ${n(d.activity.measured)} registrations have been measured.`);
+ expect(text).toContain(
+ `${n(d.activity.transfers)} transfers after the mint are recorded, on ${n(d.activity.changedHands)} registrations (${pc(d.activity.changedHandsPercent)}). ${n(d.activity.noTransfer)} registrations (${pc(d.activity.noTransferPercent)}) have had none.`
+ );
+ expect(text).toContain(
+ `${n(d.activity.handouts)} hand-outs are recorded, on ${n(d.activity.handedOut)} registrations (${pc(d.activity.handedOutPercent)}). A hand-out is a transfer sent from the wallet the registration was minted to, within about an hour of the mint (${n(CHAIN.handoutBlocks)} blocks on Gnosis). The other transfer came later than the first hour or from another wallet.`
+ );
+ expect(text).toContain(`${n(d.activity.edits)} edits of a profile link are recorded, on ${n(d.activity.edited)} registrations (${pc(d.activity.editedPercent)}).`);
+ });
+
+ it("words the dates for Gnosis: one set of stretches for the days and the months, no day rate, and the margins checked against the logs of every registration", () => {
+ expect(text).toContain(
+ `The date of a registration is worked out from its mint block and the time of a block that is known. A day and a month are dated through the same ${n(CHAIN.stretches)} stretches of ${n(CHAIN.stretchBlocks)} blocks, the last one shorter, from the registry's first block, ${n(CHAIN.firstBlock)}, at ${CHAIN.firstBlockTime} UTC, to the finalized block, ${n(CHAIN.recentBlock)}, at ${CHAIN.recentBlockTime} UTC. Each stretch has the time of its first block and the seconds a block took in it, read from the chain. A block on Gnosis takes about ${CHAIN.blockSecondsLow} to ${CHAIN.blockSecondsHigh} seconds, with a slot missed now and then. A date is within about ${CHAIN.dateErrorMinutes} minutes of the real time at the worst and ${CHAIN.dateMedianErrorMinutes} minutes at the median, checked against the block times in the logs of all ${n(CHAIN.dateChecked)} registrations.`
+ );
+ // Monad counted a day back from the finalized block at the rate of its last 200,000 blocks; Gnosis has no such rate.
+ expect(text).not.toMatch(/counted back|at the rate of|until block/);
+ expect(dataSource).not.toMatch(/daySeconds|rateBlocks|DATING/);
+ expect(CHAIN.dateChecked, "the margins were checked against every registration on the chain, stored or not").toBe(REGISTRY.onChain);
+ });
+
+ it("words the months for Gnosis: the first month holds most, the later months that have a registration, the whole months with none, and the month of the pass with none so far", () => {
+ expect(d.time.monthsWithNone).toHaveLength(3);
+ const [first, second, third] = d.time.monthsWithNone;
+ expect(text).toContain(
+ `${n(d.time.firstMonthRegistrations)} of the registrations (${pc(d.time.firstMonthPercent)}) were made in ${d.time.firstMonth}, the registry's first month. Of the ${n(d.time.wholeLaterMonths)} whole months after it, ${n(d.time.laterMonths)} have a registration, between ${n(d.time.laterLow)} and ${n(d.time.laterHigh)} each and ${n(d.time.laterMonthsRegistrations)} in all (${pc(d.time.laterMonthsPercent)}), and ${n(d.time.monthsWithNoneCount)} have none: ${first}, ${second} and ${third}. ${d.time.passMonth}, the month of the pass, has none so far.`
+ );
+ });
+
+ it("says plainly that the registrations counted and not stored have no month or day, were made after the host's first 2,000, and make the history longer than the table", () => {
+ expect(text).toContain(
+ `A host name past the cap keeps its first registrations in chain order, so the ${n(REGISTRY.overflow)} registrations counted and not stored have no month and no day here. They were made after the ${n(CHAIN.hostRowCap)} their host kept. The months and days below therefore show fewer registrations than the chain had: the months after the first look thinner here than they were on the chain, and the registry's own history is longer than this table shows.`
+ );
+ });
+
+ it("words the days for two days, in a window that ends on the newest registration's day, 20 days before the day of the pass", () => {
+ expect(text).toContain(
+ `The table of days below shows the UTC days that have a registration among the ${n(CHAIN.dayWindow)} days that end on ${d.time.lastDay}, the day of the newest stored registration. ${n(d.time.days)} days have one, ${d.time.firstDay} and ${d.time.lastDay}, with one registration each (${n(d.time.daysRegistrations)} in all, ${pc(d.time.daysPercent)} of the registrations), and the other ${n(d.time.daysWithNone)} days had none. The day of the pass named in the header is ${d.time.passDay}, ${n(d.time.daysBeforeThePass)} days after the day of the newest stored registration, and no stored registration is dated later.`
+ );
+ // Monad's sentences about the busiest day and the days after it, and about a window that ends on the day of the pass, are not true of two days.
+ expect(text).not.toMatch(/busiest|which is also the day of the pass/);
+ });
+
+ it("says ratings are not measured here", () => {
+ expect(text).toContain(
+ "Ratings are not measured here. The directory also reads the reputation registry for a count of ratings, which the Gnosis tab and the API show once it has read the registry's whole history. This census does not use it."
+ );
+ });
+
+ it("shows every returned row of the wallet, host, link, month and day tables", () => {
+ for (const row of MEASURED.q2) expect(text).toContain(`${row[0]} ${n(row[1])} ${n(row[2])}`);
+ const places = ["Largest", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth", "Tenth"];
+ for (const row of MEASURED.q4) expect(text).toContain(`${places[row[0] - 1]} ${n(row[1])}`);
+ for (const row of MEASURED.q5) expect(text).toContain(`${row[0]} ${n(row[1])} ${n(row[2])}`);
+ for (const row of MEASURED.q10b) expect(text).toContain(`${row[0]} ${n(row[1])}`);
+ for (const row of MEASURED.q10a) expect(text).toContain(`${row[0]} ${n(row[1])}`);
+ });
+
+ it("says a registry row takes a name only from the chain event, and that a name read from a file is on the entry and not counted here", () => {
+ expect(text).toContain("A registry row takes a name only from registration data written into the chain event itself. The directory also reads a name for some listed entries from the file their registration link names. That name is written to the entry and not to the registry row, so it is not counted here.");
+ expect(text).toContain("Two registrations with the same name are not necessarily the same agent or the same person.");
+ });
+});
+
+describe("shares are given to one decimal place", () => {
+ it("rounds to the nearest tenth and writes it with one decimal", () => {
+ expect(percent(41, 2328)).toBe(1.8);
+ expect(pc(percent(41, 2328))).toBe("1.8%");
+ expect(percent(41, 4179)).toBe(1);
+ expect(pc(percent(41, 4179))).toBe("1.0%");
+ expect(pc(percent(3851, 4179))).toBe("92.2%");
+ expect(pc(percent(1851, 4179))).toBe("44.3%");
+ expect(pc(percent(2, 2328))).toBe("0.1%");
+ expect(pc(percent(1, 3))).toBe("33.3%");
+ });
+});
+
+describe("the totals add up", () => {
+ it("queries 0, 1, 6 and 8 and the mints in query 9 agree on the registrations, and the directory's entries are the listed row of query 7", () => {
+ expect(q.q0[0]).toBe(registrations);
+ expect(q.q6[0]).toBe(registrations);
+ expect(q.q8[0]).toBe(registrations);
+ expect(ledgerKind("mint")[1]).toBe(registrations);
+ expect(ledgerKind("mint")[2]).toBe(registrations);
+ expect(registrations).toBe(2328);
+ expect(q.q0[5]).toBe(d.listing.listed);
+ });
+
+ it("no registration is hidden, so the public counts are the table's, and the public count on the chain is the stored plus the counted", () => {
+ expect(REGISTRY.hidden).toBe(0);
+ expect(PUBLIC.listed).toBe(REGISTRY.listed - REGISTRY.hidden);
+ expect(PUBLIC.onChain).toBe(REGISTRY.onChain);
+ expect(PUBLIC).toEqual({ listed: 41, onChain: 4179 });
+ });
+
+ it("the registrations the directory counts on the chain are the stored ones and the ones counted past a host's cap, and one host is past it", () => {
+ expect(REGISTRY.onChain).toBe(registrations + q.q0b[1]);
+ expect(REGISTRY.onChain).toBe(4179);
+ // The page words the cap in the singular and gives the host's whole overflow as the count, so there is exactly one host.
+ expect(q.q0b[0]).toBe(1);
+ expect(d.hosts.pastTheCap).toBe(1);
+ expect(q.q0b[2]).toBe(q.q0b[1]);
+ expect(d.hosts.overflowLargest).toBe(q.q0b[1]);
+ expect(CHAIN.hostRowCap).toBe(2000);
+ expect(MEASURED.q4[0][1], "a host past the cap keeps exactly the cap").toBe(CHAIN.hostRowCap);
+ expect(MEASURED.q4[1][1], "only one host is at the cap").toBeLessThan(CHAIN.hostRowCap);
+ expect(d.hosts.largestHeld).toBe(CHAIN.hostRowCap + q.q0b[2]);
+ expect(d.hosts.largestHeld).toBe(3851);
+ expect(d.hosts.largestHeld).toBeGreaterThan(d.hosts.overflowLargest);
+ // The page says the largest host name holds about 92 percent of the chain.
+ expect(d.hosts.largestHeldPercent).toBe(92.2);
+ });
+
+ it("every registration has a wallet, and every one was measured by the activity walk", () => {
+ expect(REGISTRY.noWallet).toBe(0);
+ expect(REGISTRY.mintMeasured).toBe(registrations);
+ expect(q.q8[1]).toBe(registrations);
+ expect(q.q8[2]).toBe(registrations);
+ });
+
+ it("wallet buckets add up to the wallets and the registrations, and the one wallet that reaches 50 is alone in the 1000+ bucket, the largest", () => {
+ expect(sum(MEASURED.q2.map(row => row[1]))).toBe(REGISTRY.wallets);
+ expect(sum(MEASURED.q2.map(row => row[2]))).toBe(registrations);
+ for (const row of MEASURED.q2) expect(row[3], `${row[0]}: the largest in a bucket cannot be more than the bucket`).toBeLessThanOrEqual(row[2]);
+ // No wallet made 50 to 999, so those two buckets did not come back; the page names the last bucket the query returned as the largest.
+ expect(MEASURED.q2.map(row => row[0])).toEqual(["1", "2-9", "10-49", "1000+"]);
+ expect(d.wallets.topBucket).toBe("1000+");
+ expect(d.wallets.topBucketWallets, "the page says the largest bucket holds that one wallet").toBe(1);
+ expect(walletBucket("1000+")[2]).toBe(walletBucket("1000+")[3]);
+ // The page says no other wallet made more than the largest of the 10-49 bucket, which is below the bar for a large wallet.
+ expect(d.wallets.nextLargest).toBe(walletBucket("10-49")[3]);
+ expect(d.wallets.nextLargest).toBeLessThan(THRESHOLDS.largeWallet);
+ });
+
+ it("query 3b is the buckets of query 2 that reach the large-wallet bar, and query 3 is all of those wallets, in order", () => {
+ const upper = MEASURED.q2.filter(row => ["50-99", "100-999", "1000+"].includes(row[0]));
+ expect(upper.map(row => row[0])).toEqual(["1000+"]);
+ expect(q.q3b[0]).toBe(sum(upper.map(row => row[1])));
+ expect(q.q3b[1]).toBe(sum(upper.map(row => row[2])));
+ expect(q.q3b[2]).toBe(walletBucket("1000+")[3]);
+ expect(MEASURED.q3[0][1]).toBe(q.q3b[2]);
+ // Fewer than 25 wallets reach the bar, so query 3 holds every one of them and its registrations are all of theirs.
+ expect(q.q3b[0]).toBeLessThan(25);
+ expect(MEASURED.q3.length).toBe(q.q3b[0]);
+ expect(sum(MEASURED.q3.map(row => row[1]))).toBe(q.q3b[1]);
+ expect(Math.min(...MEASURED.q3.map(row => row[1]))).toBeGreaterThanOrEqual(THRESHOLDS.largeWallet);
+ MEASURED.q3.forEach((row, index) => {
+ expect(row[0]).toBe(index + 1);
+ if (index > 0) expect(row[1]).toBeLessThanOrEqual(MEASURED.q3[index - 1]![1]);
+ });
+ expect(d.wallets.large, "the page says only one wallet registered 50 or more").toBe(1);
+ expect(d.wallets.largeRegistrations).toBe(walletBucket("1000+")[2]);
+ expect(d.wallets.tenOrMore).toBe(walletBucket("10-49")[1] + d.wallets.large);
+ });
+
+ it("the one large wallet has every registration on one host name and a link of its own for each, and that host name is the largest one, so the host's stored rows are all its", () => {
+ for (const row of MEASURED.q3) {
+ expect(row[2]).toBeLessThanOrEqual(row[1]);
+ expect(row[3]).toBeLessThanOrEqual(row[2]);
+ expect(row[5]).toBeGreaterThanOrEqual(1);
+ expect(row[5]).toBeLessThanOrEqual(row[1]);
+ // A wallet with no https link has no host name, and one with a link has at least one.
+ expect(row[4] === 0).toBe(row[2] === 0);
+ }
+ expect(sum(MEASURED.q3.map(row => row[2]))).toBeLessThanOrEqual(REGISTRY.withHttpsHost);
+ expect(d.largeWallets.shown).toBe(MEASURED.q3.length);
+ expect(d.largeWallets.shown).toBe(d.wallets.large);
+ expect(d.largeWallets.onOneHost + d.largeWallets.withoutAHost).toBeLessThanOrEqual(d.largeWallets.shown);
+ expect(d.largeWallets.ownLinkEach + d.largeWallets.oneLinkForAll + d.largeWallets.between, "the three groups the page names make the wallets it counts").toBe(d.largeWallets.shown);
+ // The page words these for one wallet: all its stored registrations on one host name, a link of its own for each.
+ expect(d.largeWallets.onOneHost).toBe(1);
+ expect(d.largeWallets.withoutAHost).toBe(0);
+ expect(d.largeWallets.ownLinkEach).toBe(1);
+ expect(d.largeWallets.oneLinkForAll).toBe(0);
+ expect(d.largeWallets.between).toBe(0);
+ expect(d.largeWallets.registrations).toBe(d.wallets.largeRegistrations);
+ // Its registrations are the largest host name's: it has one host name, all of them on it, and no other host name reaches the cap, so no other host name could hold them.
+ const wallet = MEASURED.q3[0];
+ expect(wallet[4]).toBe(1);
+ expect(wallet[3]).toBe(wallet[1]);
+ expect(wallet[1]).toBe(MEASURED.q4[0][1]);
+ expect(wallet[1]).toBe(CHAIN.hostRowCap);
+ expect(MEASURED.q4[1][1]).toBeLessThan(wallet[1]);
+ });
+
+ it("host sizes fall from the largest, are parts of the registrations with a link, and are all the host names there are", () => {
+ MEASURED.q4.forEach((row, index) => {
+ expect(row[0]).toBe(index + 1);
+ if (index > 0) expect(row[1]).toBeLessThanOrEqual(MEASURED.q4[index - 1]![1]);
+ });
+ expect(sum(MEASURED.q4.map(row => row[1]))).toBeLessThanOrEqual(REGISTRY.withHttpsHost);
+ expect(d.hosts.withHttps + d.hosts.withoutHost).toBe(registrations);
+ // Query 4 asks for ten and only 8 host names exist, so it returns all of them and they hold every registration with an https link.
+ expect(MEASURED.q4.length).toBeLessThan(10);
+ expect(REGISTRY.hosts).toBe(MEASURED.q4.length);
+ expect(sum(MEASURED.q4.map(row => row[1]))).toBe(REGISTRY.withHttpsHost);
+ // Query 4b counts every host name at the threshold or more, so it holds at least those of the ten that reach it, and no more than all the https registrations.
+ const reaching = MEASURED.q4.filter(row => row[1] >= THRESHOLDS.largeHost);
+ expect(q.q4b[0]).toBeGreaterThanOrEqual(reaching.length);
+ expect(q.q4b[0]).toBeLessThanOrEqual(REGISTRY.hosts);
+ expect(q.q4b[1]).toBeGreaterThanOrEqual(sum(reaching.map(row => row[1])));
+ expect(q.q4b[1]).toBeLessThanOrEqual(REGISTRY.withHttpsHost);
+ expect(q.q4b[2]).toBe(MEASURED.q4[0][1]);
+ expect(d.hosts.largest).toBeGreaterThanOrEqual(d.hosts.second);
+ // The page words it as one host name that reaches 50, and says it holds all the registrations at or over the bar.
+ expect(d.hosts.atLeastThreshold).toBe(1);
+ expect(d.hosts.atLeastThresholdRegistrations).toBe(d.hosts.largest);
+ expect(THRESHOLDS.largeHost).toBe(THRESHOLDS.largeWallet);
+ });
+
+ it("profile links add up to the different links and the registrations, and none is used by 50 or more", () => {
+ expect(d.links.total).toBe(REGISTRY.profileLinks);
+ expect(sum(MEASURED.q5.map(row => row[2])) + REGISTRY.noUriSet).toBe(registrations);
+ expect(sum(MEASURED.q5.map(row => row[4])), "the registrations with a link that has an https host are the registrations with an https host").toBe(REGISTRY.withHttpsHost);
+ for (const row of MEASURED.q5) {
+ expect(row[3], `${row[0]}: the largest cannot be more than the bucket`).toBeLessThanOrEqual(row[2]);
+ expect(row[4], `${row[0]}: registrations with a host cannot be more than the bucket`).toBeLessThanOrEqual(row[2]);
+ }
+ expect(linkBucket("1")[1]).toBe(linkBucket("1")[2]);
+ // A registration on a shared link is held out by the link rule first, unless an earlier state (no usable link, a name that is only a number) took it.
+ expect(d.listing.byLink).toBeLessThanOrEqual(d.links.sharedRegistrations);
+ expect(d.links.shared).toBe(sum(MEASURED.q5.filter(row => row[0] !== "1").map(row => row[1])));
+ // The page says no link is used by 50 or more registrations, and the most any one link has is the largest in the top bucket that came back.
+ expect(MEASURED.q5.map(row => row[0])).toEqual(["1", "2-9", "10-49"]);
+ expect(d.links.big).toBe(0);
+ expect(d.links.bigRegistrations).toBe(0);
+ expect(d.links.largest).toBe(linkBucket("10-49")[3]);
+ expect(d.links.largest, "no link reaches the bar for a large link").toBeLessThan(THRESHOLDS.bigLink);
+ });
+
+ it("names: the placeholders and the named registrations add up, the shared names are among the named, and none is shared by 10 or more", () => {
+ expect(d.names.placeholder + d.names.named).toBe(registrations);
+ expect(d.names.distinct).toBeLessThanOrEqual(d.names.named);
+ expect(d.names.sharing).toBeLessThanOrEqual(d.names.named);
+ expect(d.names.sharedByTenOrMore).toBeLessThanOrEqual(d.names.sharing);
+ // The page says no name is shared by 10 or more, and that the largest group is smaller than that.
+ expect(d.names.sharedByTenOrMore).toBe(0);
+ expect(d.names.largestGroup).toBeLessThan(THRESHOLDS.sharedName);
+ expect(d.names.largestGroup).toBeGreaterThanOrEqual(2);
+ });
+
+ it("the listing states add up to the registrations, the rules reached held-out registrations in the order they run, and one name is only a number", () => {
+ expect(sum(MEASURED.q7.map(row => row[3]))).toBe(registrations);
+ expect(d.listing.listed + d.listing.noLink + d.listing.heldOut + d.listing.numberOnly).toBe(registrations);
+ expect(d.listing.byLink + d.listing.byHost + d.listing.byWallet).toBe(d.listing.heldOut);
+ for (const row of MEASURED.q7) expect(row[2] === "-", `${row[1]}: only a registration held out as shared has a first rule`).toBe(row[0] !== 2);
+ expect(MEASURED.q7.filter(row => row[0] === 2).map(row => row[2]).sort()).toEqual([RULES.host, RULES.link, RULES.wallet].sort());
+ // Monad had no state 4; Gnosis has one registration in it, and the page's table has a row for it. No state 3 came back.
+ expect(MEASURED.q7.map(row => row[0])).toEqual([0, 1, 2, 2, 2, 4]);
+ expect(MEASURED.q7.find(row => row[0] === 4)![1]).toBe("name is only a number");
+ expect(d.listing.numberOnly, "the page says one carries a name that is only a number").toBe(1);
+ });
+
+ it("transfers, hand-outs and edits agree with the activity ledger, and one transfer was not a hand-out", () => {
+ expect(ledgerKind("secondary")[1]).toBe(q.q8[3]);
+ expect(ledgerKind("secondary")[2]).toBe(q.q8[5]);
+ expect(ledgerKind("uri_update")[1]).toBe(q.q8[7]);
+ expect(ledgerKind("uri_update")[2]).toBe(q.q8[8]);
+ for (const row of MEASURED.q9) expect(row[3]).toBeLessThanOrEqual(row[4]);
+ expect(MEASURED.q9.map(row => row[0])).toEqual(["mint", "secondary", "uri_update"]);
+ expect(d.activity.handouts).toBeLessThanOrEqual(d.activity.transfers);
+ expect(d.activity.handedOut).toBeLessThanOrEqual(d.activity.changedHands);
+ expect(d.activity.laterTransfers, "the page says the other transfer, in the singular, came later or from another wallet").toBe(1);
+ expect(d.activity.noTransfer + d.activity.changedHands).toBe(registrations);
+ });
+
+ it("the months add up to the registrations, the first month holds more than any later one, and the whole months with none are those the query did not return", () => {
+ expect(sum(MEASURED.q10b.map(row => row[1]))).toBe(registrations);
+ expect(d.time.months).toBe(MEASURED.q10b.length);
+ expect(d.time.firstMonth).toBe(MEASURED.q10b[0]![0]);
+ expect(d.time.laterMonths + 1).toBe(d.time.months);
+ expect(d.time.firstMonthRegistrations + d.time.laterMonthsRegistrations).toBe(registrations);
+ expect(d.time.firstMonthRegistrations, "the page says the registry's first month had the most").toBeGreaterThan(d.time.laterHigh);
+ expect(d.time.laterLow).toBeLessThan(d.time.laterHigh);
+ // The first month is the month of the registry's first block, and the months run in order, each once.
+ expect(d.time.firstMonth).toBe(CHAIN.firstBlockTime.slice(0, 7));
+ const monthNames = MEASURED.q10b.map(row => row[0]);
+ expect(monthNames).toEqual([...monthNames].sort());
+ expect(new Set(monthNames).size).toBe(monthNames.length);
+ // The whole months are those between the first month and the month of the pass; the page says 3 of them have none, and names them.
+ const whole = monthsStrictlyBetween(d.time.firstMonth, d.time.passMonth);
+ expect(d.time.wholeLaterMonths).toBe(whole.length);
+ expect(d.time.monthsWithNone).toEqual(whole.filter(month => !monthNames.includes(month)));
+ expect(d.time.monthsWithNone).toEqual(["2026-05", "2026-07", "2026-09"]);
+ expect(d.time.monthsWithNoneCount).toBe(d.time.monthsWithNone.length);
+ expect(d.time.wholeLaterMonths).toBe(d.time.laterMonths + d.time.monthsWithNoneCount);
+ expect(d.time.wholeLaterMonths).toBe(8);
+ expect(d.time.laterMonths).toBe(5);
+ // Every month the query returned lies between the first month and the month of the pass, so the last returned month is a whole month.
+ for (const month of monthNames.slice(1)) expect(whole).toContain(month);
+ });
+
+ it("the month of the pass has no registration stored, so the newest month the query returned is before it", () => {
+ expect(d.time.passMonth).toBe(MEASURED.date.slice(0, 7));
+ expect(d.time.passMonth).toBe(d.time.passDay.slice(0, 7));
+ expect(MEASURED.q10b.some(row => row[0] === d.time.passMonth)).toBe(false);
+ expect(d.time.passMonthRegistrations, "the page says the month of the pass has none so far").toBe(0);
+ expect(MEASURED.q10b[MEASURED.q10b.length - 1]![0] < d.time.passMonth).toBe(true);
+ });
+
+ it("the days are in order, inside the window the query looks back over, fewer than three, and add up to no more than the months they fall in", () => {
+ const sorted = MEASURED.q10a.map(row => row[0]);
+ expect(sorted).toEqual([...sorted].sort());
+ expect(new Set(sorted).size).toBe(sorted.length);
+ // The page words two days with one registration each: it says "one each", and calls no day the busiest.
+ expect(d.time.days).toBeLessThan(3);
+ expect(d.time.days).toBe(2);
+ expect(d.time.dayLeast).toBe(1);
+ expect(d.time.dayMost).toBe(1);
+ expect(d.time.daysRegistrations).toBe(sum(MEASURED.q10a.map(row => row[1])));
+ // The window ends on the newest registration's day, which is the last day the query returned. It is not the day of the pass.
+ expect(d.time.lastDay).toBe(sorted[sorted.length - 1]);
+ expect(d.time.firstDay).toBe(sorted[0]);
+ expect(d.time.passDay).toBe(MEASURED.date);
+ expect(d.time.lastDay < d.time.passDay).toBe(true);
+ expect(d.time.daysBeforeThePass).toBe(daysBetween(d.time.lastDay, d.time.passDay));
+ expect(d.time.daysBeforeThePass).toBe(20);
+ expect(daysBetween(d.time.firstDay, d.time.lastDay)).toBeLessThanOrEqual(CHAIN.dayWindow - 1);
+ expect(d.time.days + d.time.daysWithNone).toBe(CHAIN.dayWindow);
+ expect(d.time.daysWithNone).toBeGreaterThan(0);
+ // Each day falls in a month the query returned, and the days of a month add up to no more than that month's registrations.
+ for (const row of MEASURED.q10a) expect(MEASURED.q10b.some(month => row[0].startsWith(month[0])), `${row[0]} is in no month the query returned`).toBe(true);
+ for (const [month, count] of MEASURED.q10b) expect(sum(MEASURED.q10a.filter(row => row[0].startsWith(month)).map(row => row[1])), month).toBeLessThanOrEqual(count);
+ // The pass the census is counted from finished at 21:12 on its day.
+ expect(d.time.passDay).toBe(q.q0[4].slice(0, 10));
+ expect(q.q0[4].slice(11, 13)).toBe("21");
+ });
+});
+
+describe("each measured row is in the measurement document", () => {
+ const row = (cells: ReadonlyArray) => `| ${cells.join(" | ")} |`;
+
+ it("names itself, and says what was and was not selected and fetched", () => {
+ expect(GNOSIS_DOC).toBe("docs/gnosis-census-2026-11-06.md");
+ expect(GNOSIS_SQL).toBe("docs/gnosis-census-queries-2026-11-06.sql");
+ expect(doc).toContain("no name, no wallet address, no host name and no profile link was selected, and nothing was fetched from any site for it");
+ expect(doc).toContain("Every statement is a read-only SELECT.");
+ });
+
+ it("says when the queries were run, and that the pass they were counted from was started by hand because the first scheduled pass had not finished", () => {
+ expect(doc).toContain("were run against the production database on 2026-11-06 at about 23:30 UTC, after the registry pass that finished at 21:12 UTC.");
+ expect(doc).toContain(
+ "Query 0 shows the last pass that succeeded, and that pass was started by hand: Gnosis's source has been read by a scheduled pass once a day since the deploy at 23:05 UTC that day"
+ );
+ expect(doc).toContain("and the first scheduled pass had not finished when the queries were run.");
+ expect(doc).toContain("## Running it again");
+ });
+
+ const TABLES: Array<[string, ReadonlyArray>]> = [
+ ["query 0", MEASURED.q0],
+ ["query 0b", MEASURED.q0b],
+ ["query 1", MEASURED.q1],
+ ["query 2", MEASURED.q2],
+ ["query 3", MEASURED.q3],
+ ["query 3b", MEASURED.q3b],
+ ["query 4", MEASURED.q4],
+ ["query 4b", MEASURED.q4b],
+ ["query 5", MEASURED.q5],
+ ["query 6", MEASURED.q6],
+ ["query 7", MEASURED.q7],
+ ["query 8", MEASURED.q8],
+ ["query 9", MEASURED.q9],
+ ["query 10a", MEASURED.q10a],
+ ["query 10b", MEASURED.q10b],
+ ];
+ for (const [name, rows] of TABLES) {
+ it(`has every row of ${name}, as the query returned it`, () => {
+ expect(rows.length).toBeGreaterThan(0);
+ for (const cells of rows) expect(doc, `${name}: ${row(cells)}`).toContain(row(cells));
+ });
+ }
+
+ it("has the figures the page works out, worded as the document words them", () => {
+ expect(doc).toContain(
+ `${n(d.listing.listed)} of the ${n(registrations)} registrations (${pc(d.listing.listedPercent)}) are listed, which is ${pc(d.listing.listedOfChainPercent)} of the ${n(REGISTRY.onChain)} the directory counts on the chain. ${n(d.listing.noLink)} (${pc(d.listing.noLinkPercent)}) have no usable profile link. ${n(d.listing.heldOut)} (${pc(d.listing.heldOutPercent)}) are held out as shared: ${n(d.listing.byLink)} reached first by a shared profile link, ${n(d.listing.byHost)} by a shared host name and ${n(d.listing.byWallet)} by a wallet that registered ${THRESHOLDS.tenWallet} or more. ${n(d.listing.numberOnly)} carries a name that is only a number, and is not listed.`
+ );
+ expect(doc).toContain(
+ `${n(d.wallets.tenOrMore)} wallets made ${n(d.wallets.tenOrMoreRegistrations)} of the ${n(registrations)} registrations (${pc(d.wallets.tenOrMorePercent)}), and ${n(d.wallets.large)} wallet made ${n(d.wallets.largeRegistrations)} (${pc(d.wallets.largePercent)}).`
+ );
+ expect(doc).toContain(
+ `${n(d.wallets.withOne)} of the ${n(REGISTRY.wallets)} wallets (${pc(d.wallets.withOnePercent)}) registered one each, and together they made ${n(d.wallets.withOneRegistrations)} registrations (${pc(d.wallets.withOneRegistrationsPercent)}). The largest bucket, ${d.wallets.topBucket}, holds one wallet. No other wallet made more than ${n(d.wallets.nextLargest)}.`
+ );
+ expect(doc).toContain(
+ `The one wallet that registered ${THRESHOLDS.largeWallet} or more made ${n(d.largeWallets.registrations)} registrations. All ${n(d.largeWallets.registrations)} are on one host name, and it gave each of them a profile link of its own. That host name is the largest, and every registration stored for it was made by this wallet.`
+ );
+ expect(doc).toContain(
+ `${n(d.hosts.withHttps)} of the ${n(registrations)} registrations (${pc(d.hosts.withHttpsPercent)}) have an https link, on ${n(REGISTRY.hosts)} host names. The largest host name holds ${n(d.hosts.largest)} of them (${pc(d.hosts.largestPercent)}), which is ${pc(d.hosts.largestOfAllPercent)} of all the registrations. The next holds ${n(d.hosts.second)} (${pc(d.hosts.secondPercent)}) and the third holds ${n(d.hosts.third)}. The two largest together hold ${n(d.hosts.twoLargest)} (${pc(d.hosts.twoLargestPercent)}). One host name holds ${THRESHOLDS.largeHost} or more registrations, ${n(d.hosts.atLeastThresholdRegistrations)} of them (${pc(d.hosts.atLeastThresholdPercent)} of those with an https link and ${pc(d.hosts.atLeastThresholdOfAllPercent)} of all).`
+ );
+ expect(doc).toContain(
+ `The largest host name is at the ${n(CHAIN.hostRowCap)} rows a host may keep. Query 0b counts ${n(d.hosts.overflowLargest)} more registrations for it, so it holds ${n(d.hosts.largestHeld)} in all, ${pc(d.hosts.largestHeldPercent)} of the ${n(REGISTRY.onChain)}. The ${n(REGISTRY.overflow)} are ${pc(d.hosts.overflowPercent)} of the ${n(REGISTRY.onChain)}.`
+ );
+ expect(doc).toContain(
+ `${n(d.links.usedOnce)} of the ${n(d.links.total)} different profile links (${pc(d.links.usedOncePercent)}) are used by one registration each. ${n(d.links.shared)} are used by more than one, by ${n(d.links.sharedRegistrations)} registrations (${pc(d.links.sharedRegistrationsPercent)}). No profile link is used by ${THRESHOLDS.bigLink} or more registrations, and the most any one link has is ${n(d.links.largest)} (${pc(d.links.largestPercent)} of all the registrations). ${n(REGISTRY.noUriSet)} registrations set no profile link.`
+ );
+ expect(doc).toContain(
+ `${n(d.names.placeholder)} of the ${n(registrations)} registrations (${pc(d.names.placeholderPercent)}) carry the placeholder name. The other ${n(d.names.named)} carry ${n(d.names.distinct)} distinct names, and ${n(d.names.sharing)} registrations (${pc(d.names.sharingPercent)}) share a name with at least one other. No name is shared by ${THRESHOLDS.sharedName} or more, and the largest group is ${n(d.names.largestGroup)}.`
+ );
+ expect(doc).toContain(
+ `${n(d.activity.transfers)} transfers after the mint are recorded, on ${n(d.activity.changedHands)} registrations (${pc(d.activity.changedHandsPercent)}). ${n(d.activity.noTransfer)} registrations (${pc(d.activity.noTransferPercent)}) have had none. ${n(d.activity.handouts)} hand-outs are recorded, on ${n(d.activity.handedOut)} registrations (${pc(d.activity.handedOutPercent)}), and the other transfer came later than the first hour or from another wallet.`
+ );
+ expect(doc).toContain(`${n(d.activity.edits)} profile-link edits are recorded, on ${n(d.activity.edited)} registrations (${pc(d.activity.editedPercent)}).`);
+ const [first, second, third] = d.time.monthsWithNone;
+ expect(doc).toContain(
+ `${n(d.time.firstMonthRegistrations)} of the registrations (${pc(d.time.firstMonthPercent)}) were made in ${d.time.firstMonth}, the registry's first month. Of the ${n(d.time.wholeLaterMonths)} whole months after it, ${n(d.time.laterMonths)} have a registration, between ${n(d.time.laterLow)} and ${n(d.time.laterHigh)} each and ${n(d.time.laterMonthsRegistrations)} in all (${pc(d.time.laterMonthsPercent)}), and ${n(d.time.monthsWithNoneCount)} have none: ${first}, ${second} and ${third}. ${d.time.passMonth}, the month of the pass, has none so far. The ${n(d.time.days)} days from ${d.time.firstDay} to ${d.time.lastDay} that have a registration hold ${n(d.time.daysRegistrations)} registrations (${pc(d.time.daysPercent)}), one each, and the other ${n(d.time.daysWithNone)} of the ${n(CHAIN.dayWindow)} days that end on ${d.time.lastDay} had none. The newest stored registration is dated ${d.time.lastDay}, ${n(d.time.daysBeforeThePass)} days before the day of the pass, ${d.time.passDay}.`
+ );
+ });
+
+ it("states the figures that are not from the queries, with their source", () => {
+ expect(doc).toContain("## Figures that are not from the queries");
+ expect(doc).toContain(
+ `${n(PUBLIC.listed)}, the public count of listed entries, and ${n(PUBLIC.onChain)}, the public count of registrations on the chain, read from \`GET /api/v1/stats\` on 2026-11-06 at 23:17 UTC.`
+ );
+ expect(doc).toContain(`The two block times (${n(CHAIN.firstBlock)} at ${CHAIN.firstBlockTime} UTC and ${n(CHAIN.recentBlock)} at ${CHAIN.recentBlockTime} UTC)`);
+ expect(doc).toContain(
+ `${CHAIN.dateErrorMinutes} minutes and ${CHAIN.dateMedianErrorMinutes} minutes, the worst and the median distance of a date from the real block time, over the ${n(CHAIN.dateChecked)} registrations whose logs carry one`
+ );
+ });
+
+ it("defines a hand-out, the cap and the dates as the code does, and says what the measurement cannot say", () => {
+ const chains = read("..", "..", "..", "server", "ingestion", "erc8004Chains.ts");
+ // Gnosis's entry is the last one before the list of all of them, so the slice is its entry and nothing of another chain.
+ const gnosis = chains.slice(chains.indexOf("export const GNOSIS_CHAIN"), chains.indexOf("export const ERC8004_CHAINS"));
+ expect(gnosis.length).toBeGreaterThan(500);
+ expect(gnosis).not.toMatch(/MONAD|BASE_CHAIN|ARC_CHAIN/);
+ expect(gnosis).toContain(`handoutBlockWindow: ${CHAIN.handoutBlocks},`);
+ expect(gnosis).toContain(`chainId: ${CHAIN.id},`);
+ expect(gnosis).toContain(`deployBlock: ${underscored(CHAIN.firstBlock)},`);
+ expect(chains).toContain(`deploy block ${n(CHAIN.firstBlock)} (${CHAIN.firstBlockTime} UTC)`);
+ expect(chains).toContain(`export const FLOOD_HOST_ROW_CAP = ${underscored(CHAIN.hostRowCap)};`);
+ expect(gnosis).toContain("hostRowCap: FLOOD_HOST_ROW_CAP,");
+ expect(doc).toContain(`(${n(CHAIN.handoutBlocks)} blocks, \`handoutBlockWindow\` in \`server/ingestion/erc8004Chains.ts\`)`);
+ expect(doc).toContain(`Gnosis's block time is close to constant, about ${CHAIN.blockSecondsLow} to ${CHAIN.blockSecondsHigh} seconds a block, with a slot missed now and then`);
+ expect(doc).toContain(
+ `A day and a month are both dated through the same ${CHAIN.stretches} stretches of ${n(CHAIN.stretchBlocks)} blocks, the last one shorter, so there is no separate rate for a day`
+ );
+ expect(doc).toContain(
+ `The first stretch starts at the registry's first block, ${n(CHAIN.firstBlock)} (${CHAIN.firstBlockTime} UTC), the last runs to the finalized block, ${n(CHAIN.recentBlock)} (${CHAIN.recentBlockTime} UTC)`
+ );
+ expect(doc).toContain(
+ `A date is within about ${CHAIN.dateErrorMinutes} minutes of the real time at the worst and ${CHAIN.dateMedianErrorMinutes} minutes at the median (checked against the block times in the logs of all ${n(CHAIN.dateChecked)} registrations, stored or not)`
+ );
+ expect(doc).not.toMatch(/last 200,000 blocks|0\.30268|counted back/);
+ expect(doc).toContain("## What this measurement cannot say");
+ expect(doc).toContain("**It is not a count of people.**");
+ expect(doc).toContain("**The registering wallet is not the holder.**");
+ expect(doc).toContain("**A hand-out is a timing fact.**");
+ expect(doc).toContain("**The stored registrations are not a sample of the chain.**");
+ expect(doc).toContain("**The months and days are the most affected.**");
+ expect(doc).toContain("**Ratings are not measured here.**");
+ expect(doc).toContain("**The dates are worked out.**");
+ expect(doc).toContain("**The listing rules were not changed.**");
+ });
+
+ it("keeps the queries in the repository, all of them reads, with the thresholds the page speaks of", () => {
+ expect(sql).not.toMatch(/^\s*(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE|REPLACE|GRANT)\b/im);
+ expect(sql.match(/^\s*(WITH|SELECT)\b/gim)!.length).toBeGreaterThanOrEqual(15);
+ // Fifteen statements, each a WITH or a SELECT, and each that reads the registry's rows, its cap counts or its ledger reads Gnosis's protocol and no other.
+ const statements = sql
+ .split("\n")
+ .filter(line => !line.trimStart().startsWith("--"))
+ .join("\n")
+ .split(";")
+ .map(statement => statement.trim())
+ .filter(Boolean);
+ expect(statements).toHaveLength(15);
+ for (const statement of statements) {
+ expect(statement.slice(0, 80), "a statement that is not a read").toMatch(/^(WITH|SELECT)\b/);
+ if (/agent_directory_registry_rows|agent_directory_registry_overflow|agent_directory_chain_activity/.test(statement)) {
+ expect(statement, "a statement that reads the registry and not Gnosis's source").toContain("protocol = 'erc8004_gnosis'");
+ }
+ // The registry's rows and its cap counts are read from the active source only.
+ if (/agent_directory_registry_rows|agent_directory_registry_overflow/.test(statement)) expect(statement, "a statement that reads a source that is not active").toContain("state = 'active'");
+ }
+ expect([...new Set([...sql.matchAll(/protocol = '([a-z0-9_]+)'/g)].map(match => match[1]))]).toEqual(["erc8004_gnosis"]);
+ expect(sql, "a name of another chain left in the queries").not.toMatch(/monad|ethereum|erc8004_base|erc8004_arc/i);
+ const reads = (sql.match(/FROM agent_directory_registry_rows r/g) ?? []).length;
+ expect(reads).toBeGreaterThanOrEqual(13);
+ // Query 0b reads the cap's overflow counts of the same source.
+ expect(sql).toContain("FROM agent_directory_registry_overflow o");
+ // The wallet bar is read in queries 3 and 3b and the host bar in query 4b, each as a HAVING on the count.
+ expect(sql.split(`HAVING COUNT(*) >= ${THRESHOLDS.largeWallet}`).length - 1).toBeGreaterThanOrEqual(3);
+ expect(THRESHOLDS.largeHost).toBe(THRESHOLDS.largeWallet);
+ expect(sql).toContain(`WHERE n >= ${THRESHOLDS.sharedName}`);
+ // The first rule that reached a registration is worked out in the order, and with the numbers, the listing rules run.
+ expect(sql).toContain("WHEN link_n >= 2");
+ expect(sql).toContain(`WHEN host_n >= ${THRESHOLDS.largeHost}`);
+ expect(sql).toContain(`WHEN wallet_n >= ${THRESHOLDS.tenWallet}`);
+ expect(sql.indexOf("WHEN link_n >= 2")).toBeLessThan(sql.indexOf("WHEN host_n >= 50"));
+ expect(sql.indexOf("WHEN host_n >= 50")).toBeLessThan(sql.indexOf("WHEN wallet_n >= 10"));
+ // The hand-out hour of query 8's comment is the chain's, and the window of query 10a is the page's.
+ expect(sql).toContain(`${n(CHAIN.handoutBlocks)} blocks on Gnosis`);
+ expect(sql).toContain("mintBlock is unsigned, so it is cast before the subtraction");
+ expect(sql).toContain(`INTERVAL ${CHAIN.dayWindow} DAY`);
+ expect(sql).toContain(`chain id ${CHAIN.id}`);
+ });
+
+ /** The stretches of a CASE in the queries file, in the order the file lists them, with the position of each in the file. */
+ const stretchesInFile = () =>
+ [...sql.matchAll(/WHEN b >= (\d+) THEN TIMESTAMPADD\(SECOND, ROUND\(([0-9.]+) \* \(b - \1\)\), '([0-9-]+ [0-9:]+)'\)/g)].map(match => ({
+ start: Number(match[1]),
+ seconds: Number(match[2]),
+ time: match[3]!,
+ at: match.index!,
+ }));
+ const utc = (stamp: string) => Date.parse(`${stamp.replace(" ", "T")}Z`) / 1000;
+ const stamp = (seconds: number) => new Date(seconds * 1000).toISOString().replace("T", " ").slice(0, 19);
+
+ it("dates a day and a month through the same stretches, listed later start first, from the registry's first block to the finalized block, each meeting the next", () => {
+ const all = stretchesInFile();
+ // Two CASE blocks, the day query's and the month query's, with the same stretches in each.
+ expect(all.length).toBe(2 * CHAIN.stretches);
+ const forDays = all.slice(0, CHAIN.stretches);
+ const forMonths = all.slice(CHAIN.stretches);
+ expect(forDays.every(stretch => stretch.at < sql.indexOf("-- Q10b."))).toBe(true);
+ expect(forMonths.every(stretch => stretch.at > sql.indexOf("-- Q10b."))).toBe(true);
+ expect(forDays.map(({ start, seconds, time }) => ({ start, seconds, time })), "the day query and the month query use different stretches").toEqual(
+ forMonths.map(({ start, seconds, time }) => ({ start, seconds, time }))
+ );
+ // A CASE takes the first WHEN that matches, so the starts must fall: a stretch listed after a later one would never be reached.
+ forMonths.forEach((stretch, index) => {
+ if (index > 0) expect(stretch.start, `stretch ${index + 1} starts before the one after it`).toBeLessThan(forMonths[index - 1]!.start);
+ });
+ const ascending = [...forMonths].reverse();
+ // The first stretch starts at the registry's first block, and each starts one step of 250,000 blocks after the one before.
+ expect(ascending[0]!.start).toBe(CHAIN.firstBlock);
+ expect(ascending[0]!.time).toBe(CHAIN.firstBlockTime);
+ ascending.forEach((stretch, index) => expect(stretch.start).toBe(CHAIN.firstBlock + index * CHAIN.stretchBlocks));
+ // The last stretch starts before the finalized block and is the shorter: less than a step of blocks lies between its start and the finalized block.
+ const last = ascending[ascending.length - 1]!;
+ expect(last.start).toBeLessThan(CHAIN.recentBlock);
+ expect(CHAIN.recentBlock - last.start).toBeLessThan(CHAIN.stretchBlocks);
+ // Each stretch's rate carries its start time to the next stretch's start time (the last one to the finalized block's time), within two seconds of rounding.
+ ascending.forEach((stretch, index) => {
+ const next = ascending[index + 1];
+ const reachesBlock = next ? next.start : CHAIN.recentBlock;
+ const reachesTime = next ? next.time : CHAIN.recentBlockTime;
+ const arrives = utc(stretch.time) + Math.round(stretch.seconds * (reachesBlock - stretch.start));
+ expect(Math.abs(arrives - utc(reachesTime)), `stretch ${index + 1} does not reach the time of the block after it`).toBeLessThanOrEqual(2);
+ if (next) expect(utc(next.time)).toBeGreaterThan(utc(stretch.time));
+ });
+ // The block time is close to constant: the page says about 5.1 to 5.2 seconds, and the lowest and the highest stretch are those two.
+ const rates = forMonths.map(stretch => stretch.seconds);
+ for (const rate of rates) expect(Math.round(rate * 10) / 10, `a stretch of ${rate} seconds a block`).toBeGreaterThanOrEqual(CHAIN.blockSecondsLow);
+ for (const rate of rates) expect(Math.round(rate * 10) / 10, `a stretch of ${rate} seconds a block`).toBeLessThanOrEqual(CHAIN.blockSecondsHigh);
+ expect(Math.round(Math.min(...rates) * 10) / 10).toBe(CHAIN.blockSecondsLow);
+ expect(Math.round(Math.max(...rates) * 10) / 10).toBe(CHAIN.blockSecondsHigh);
+ expect(sql).toContain(`${ascending.length} stretches of ${n(CHAIN.stretchBlocks)} blocks`);
+ });
+
+ it("dates the oldest and the newest mint block of query 9 in the first month of query 10b and on the last day of query 10a, through those stretches", () => {
+ const stretches = stretchesInFile().slice(CHAIN.stretches);
+ const datedAt = (block: number) => {
+ const stretch = stretches.find(candidate => block >= candidate.start);
+ return stretch ? stamp(utc(stretch.time) + Math.round(stretch.seconds * (block - stretch.start))) : null;
+ };
+ const mint = ledgerKind("mint");
+ expect(datedAt(mint[3])!.slice(0, 7), "the oldest mint is in the registry's first month").toBe(d.time.firstMonth);
+ expect(datedAt(mint[4])!.slice(0, 10), "the newest mint is on the last day of the window").toBe(d.time.lastDay);
+ expect(datedAt(mint[4])!.slice(0, 7), "the newest mint is in the newest month the query returned").toBe(MEASURED.q10b[MEASURED.q10b.length - 1]![0]);
+ expect(datedAt(CHAIN.firstBlock)).toBe(CHAIN.firstBlockTime);
+ expect(Math.abs(utc(datedAt(CHAIN.recentBlock)!) - utc(CHAIN.recentBlockTime))).toBeLessThanOrEqual(2);
+ // Every block of the ledger is dated, and none is dated after the finalized block.
+ for (const kind of MEASURED.q9) for (const block of [kind[3], kind[4]]) expect(utc(datedAt(block)!)).toBeLessThanOrEqual(utc(CHAIN.recentBlockTime));
+ });
+
+ it("uses the rules the code uses: a link shared by 2, a host by 50, a wallet of 10", () => {
+ const rules = read("..", "..", "..", "server", "ingestion", "erc8004Chains.ts");
+ expect(rules).toContain("GNOSIS_LISTING_RULES");
+ expect(rules).toContain("export const GNOSIS_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom: 2, sharedHostFrom: 50, sharedWalletFrom: 10 };");
+ const bsc = read("..", "..", "..", "server", "agentRegistryRows.ts");
+ expect(bsc).toContain("sharedProfileLinkFrom: 2,");
+ expect(bsc).toContain(`sharedHostFrom: ${THRESHOLDS.largeHost},`);
+ expect(bsc).toContain(`sharedWalletFrom: ${THRESHOLDS.tenWallet},`);
+ expect(RULES).toEqual({ link: "profile link shared by 2 or more", host: "host shared by 50 or more", wallet: "wallet that registered 10 or more" });
+ });
+});
+
+describe("what the page says, and does not", () => {
+ it("has a section called What this does not show, with the caveats", () => {
+ expect(text).toContain("What this does not show");
+ for (const caveat of [
+ "It is not a count of people. A platform can register many agents under one wallet, and one person can use many wallets.",
+ `${n(d.activity.handedOut)} registrations were handed out within about an hour of the mint, so for those the wallet is not the holder.`,
+ "It does not say whether an agent runs. Nothing was asked of any address.",
+ "A hand-out is a timing fact. It does not say why a registration was sent on or who received it.",
+ "A shared link, host name, wallet or name is a recorded fact. It does not say that one person is behind the registrations, or that anything is wrong. A registration the directory holds out is held out as shared, and is not called fake.",
+ `It counts the registrations the directory has stored, ${n(registrations)} of the ${n(REGISTRY.onChain)} it counts on the chain. The other ${n(REGISTRY.overflow)} were counted past a host's cap and are in no figure here but their count. It does not compare either count with a total from the registry itself.`,
+ `The stored registrations are not a sample of the chain. A host name past the cap keeps its first registrations in chain order, so the figures for hosts, wallets, links, months and days describe the stored rows and not all ${n(REGISTRY.onChain)}. Most of the stored rows are the first ${n(CHAIN.hostRowCap)} of one host name.`,
+ `The months and days are the most affected. The registrations counted and not stored were made after the ${n(CHAIN.hostRowCap)} their host kept, so the registry's own history is longer than the table shows, and the months after the first look thinner here than they were on the chain.`,
+ "Names and links are written by the registrants. We have not verified them.",
+ "A date is worked out from a block time, within the margins given above, and is not a clock the chain keeps for the registration.",
+ ]) {
+ expect(text).toContain(caveat);
+ }
+ // "Most" is true: the host's stored rows are most of the stored rows.
+ expect(MEASURED.q4[0][1] / registrations).toBeGreaterThan(0.5);
+ });
+
+ it("ends by saying the census is a snapshot to be redone and dated again, and that nothing here changes the listing rules", () => {
+ expect(text).toContain("This census is a snapshot. It will be redone and dated again. Whether the listing rules should change for Gnosis is a decision for later, and nothing here changes them.");
+ expect(text.indexOf("This census is a snapshot")).toBeGreaterThan(text.indexOf("What this does not show"));
+ });
+
+ it("names no host, no wallet and no person, and lists no agent", () => {
+ for (const where of [text, markup, pageSource, dataSource, doc, sql]) {
+ // An address is 0x and 40 hex digits: none is on the page, in the data file, in the document or in the queries.
+ expect(where).not.toMatch(/0x[0-9a-fA-F]{40}/);
+ }
+ for (const where of [text, markup]) expect(where).not.toMatch(/https?:\/\//);
+ expect(text).not.toMatch(/\boperators?\b/i);
+ expect(markup).not.toMatch(/href="\/agents\//);
+ const hrefs = [...markup.matchAll(/]*href="([^"]+)"/g)].map(match => match[1]);
+ expect(hrefs.filter(href => !["/", "/checker", "/disputes", "/privacy", "/terms", "/contact", "/about"].includes(href!))).toEqual([]);
+ // No host name is written: a word with a dot and a top-level domain is nowhere on the page, in the data file, in the test or in the document.
+ const domainLike = /\b[a-z0-9][a-z0-9-]*\.(?:com|net|org|io|xyz|fun|dev|app|ai|network|finance|gg|so|co|me|eth|cloud|site|online|tech|info)\b/i;
+ for (const where of [text, pageSource, dataSource, doc, read("gnosisRegistryReport.test.ts")]) expect(where).not.toMatch(domainLike);
+ });
+
+ it("has no score, no ranking, no tier and no best or top, and no glow", () => {
+ expect(text).not.toMatch(/\bscores?\b|\brank\w*|\bleaderboard\b|\bbest\b|\btop\b|\btiers?\b|\bleading\b|\bwinners?\b/i);
+ expect(markup).not.toMatch(/glow|shadow|pulse|animate-|gradient|blur/i);
+ });
+
+ it("calls nothing fake, safe, trusted or verified, apart from saying a held-out registration is not called fake and that it has not verified what the registrants wrote", () => {
+ const unverified = text.replace(/\b(?:have|has) not (?:been )?verified\b/g, "");
+ expect(unverified).not.toMatch(/\bsafe\b|\btrusted?\b|\bverified\b|\bguarantee/i);
+ // Every use of the word fake is to say that a held-out registration is not called that.
+ expect(text.match(/\bfake\b/gi) ?? []).toHaveLength(2);
+ expect(text.match(/not called fake/gi) ?? []).toHaveLength(2);
+ });
+
+ it("uses no long dash", () => {
+ const dashes = new RegExp(`[${String.fromCharCode(0x2013, 0x2014)}]`);
+ for (const where of [text, pageSource, dataSource, doc, sql, read("gnosisRegistryReport.test.ts")]) expect(where).not.toMatch(dashes);
+ });
+});
+
+describe("the address", () => {
+ it("is a route the app draws only while Gnosis's switch is on, the server answers 200 for then, the sitemap lists then, and the Gnosis tab links to", () => {
+ expect(read("..", "App.tsx")).toContain(`{featureOn("chain_gnosis", FEATURES) && }`);
+ expect(read("..", "..", "..", "server", "clientRoutes.ts")).toContain(`"${ROUTE}"`);
+ const sitemap = read("..", "..", "..", "server", "sitemap.ts");
+ expect(sitemap).toContain(`"${ROUTE}"`);
+ const head = read("..", "..", "..", "server", "routeHead.ts");
+ expect(head).toContain(`"${ROUTE}": {`);
+ expect(head).toContain('title: "Gnosis registry census, 2026-11-06"');
+ // The home tab for Gnosis links to it, and so does the inspector of a group on Gnosis's page.
+ expect(read("..", "components", "home", "ChainTabs.tsx")).toContain(` acknowledgedRecords(acknowledged), [acknowledged]);
- const lights = useMemo(() => fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets), [fleets, arcFleets, baseFleets, ethereumFleets, monadFleets]);
+ const lights = useMemo(() => fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets), [fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets]);
// An entry that is also a reviewed record is drawn once, as the record.
const everything = useMemo(() => {
const reviewed = new Set(records.map(candidate => candidate.agentId));
@@ -80,6 +82,7 @@ export default function LandingHero({ records, status, acknowledged = null, flee
const baseLightCount = useMemo(() => nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "cross").length, [nodes]);
const ethereumLightCount = useMemo(() => nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "pentagon").length, [nodes]);
const monadLightCount = useMemo(() => nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "star").length, [nodes]);
+ const gnosisLightCount = useMemo(() => nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "octagon").length, [nodes]);
const fleetNote = fleets ? fleetsCaption(fleets) : null;
const solanaNote = fleets?.solana ? solanaLightsCaption(fleets.solana) : null;
const robinhoodNote = fleets?.robinhood ? robinhoodLightsCaption(fleets.robinhood) : null;
@@ -89,6 +92,7 @@ export default function LandingHero({ records, status, acknowledged = null, flee
const baseNote = baseFleets ? baseLightsCaption(baseFleets, baseLightCount) : null;
const ethereumNote = ethereumFleets ? ethereumLightsCaption(ethereumFleets, ethereumLightCount) : null;
const monadNote = monadFleets ? monadLightsCaption(monadFleets, monadLightCount) : null;
+ const gnosisNote = gnosisFleets ? gnosisLightsCaption(gnosisFleets, gnosisLightCount) : null;
// The evidence is read only for the record on the card, and only once the selection has settled on it.
const settledId = useDebouncedValue(shownId, 150);
@@ -234,6 +238,15 @@ export default function LandingHero({ records, status, acknowledged = null, flee
{CHAIN_STYLE.monad.label} groups · {monadLightCount} of {Math.max(monadFleets.groups, monadLightCount).toLocaleString("en-US")} drawn
)}
+ {gnosisLightCount > 0 && gnosisFleets && (
+
+
+
+
+
+ {CHAIN_STYLE.gnosis.label} groups · {gnosisLightCount} of {Math.max(gnosisFleets.groups, gnosisLightCount).toLocaleString("en-US")} drawn
+
+ )}
Ring: the record on the card
@@ -246,6 +259,7 @@ export default function LandingHero({ records, status, acknowledged = null, flee
{baseNote && {baseNote}
}
{ethereumNote && {ethereumNote}
}
{monadNote && {monadNote}
}
+ {gnosisNote && {gnosisNote}
}
{fleetNote && (
Two reports, both dated 16 October 2026: the BNB Chain registry census and the BNB Chain rating census.
@@ -281,6 +295,11 @@ export default function LandingHero({ records, status, acknowledged = null, flee
One report, dated 1 November 2026: the Monad registry census.
)}
+ {gnosisNote && (
+
+ One report, dated 6 November 2026: the Gnosis registry census.
+
+ )}
Evidence tiers on this map: {tiers.map(([tier, count]) => `${tierExplanations[tier]?.label ?? tier} · ${count}`).join(", ")}.
diff --git a/apps/nooscape-relay/client/src/pages/home/landingHero.test.ts b/apps/nooscape-relay/client/src/pages/home/landingHero.test.ts
index f0f1dd4..8301ac9 100644
--- a/apps/nooscape-relay/client/src/pages/home/landingHero.test.ts
+++ b/apps/nooscape-relay/client/src/pages/home/landingHero.test.ts
@@ -177,7 +177,7 @@ describe("the BNB fleet lights on the scan map", () => {
it("reads the groups from the one endpoint that returns them, waits for them with the rest, and does not retry", () => {
expect(home).toContain("trpc.liveData.mapFleets.useQuery(undefined, { enabled: view === \"home\", retry: false,");
expect(home).toContain("fleets={mapFleetsQuery.data ?? null}");
- expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets)");
+ expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets)");
expect(hero).toContain("...lights");
});
@@ -226,7 +226,7 @@ describe("the Solana owner-wallet lights on the scan map", () => {
it("come from the same endpoint and the same node kind, so they ask for no evidence and tell the owl nothing", () => {
expect(read("../../components/home/constellationModel.ts")).toContain("...(sample?.solana?.fleets ?? [])");
- expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets)");
+ expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets)");
expect(hero).toContain("if (node && (isAcknowledged(node) || isFleet(node))) return { status: \"idle\" };");
});
@@ -238,7 +238,7 @@ describe("the Solana owner-wallet lights on the scan map", () => {
it("say on the card that the wallet is the owner a registry records today, with what that does not show", () => {
expect(fleetCard).toContain("fleetKindLabel(fleet)");
- expect(fleetCard).toContain('fleet.chain === "solana" ? "Owner wallet" : fleet.chain === "robinhood" || fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" ? "Registering wallet" : "Wallet"');
+ expect(fleetCard).toContain('fleet.chain === "solana" ? "Owner wallet" : fleet.chain === "robinhood" || fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" || fleet.chain === "gnosis" ? "Registering wallet" : "Wallet"');
expect(fleetCard).toContain("fleetOverlapNote(fleet)");
expect(fleetCard).not.toMatch(/scam|fraud|fake|spam|sybil|malicious|suspicious|score|rank|trust/i);
});
@@ -261,7 +261,7 @@ describe("the Robinhood Chain registering-wallet lights on the scan map", () =>
it("come from the same endpoint and the same node kind, so they ask for no evidence and tell the owl nothing", () => {
expect(read("../../components/home/constellationModel.ts")).toContain("...(sample?.robinhood?.fleets ?? [])");
- expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets)");
+ expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets)");
});
it("are drawn as a hexagon in the chain's colour, so a circle is BNB Chain, a diamond is Solana and a hexagon is Robinhood Chain", () => {
@@ -299,7 +299,7 @@ describe("the Arc lights on the scan map", () => {
it("come from the same node kind as the other lights, so they ask for no evidence and tell the owl nothing", () => {
expect(read("../../components/home/constellationModel.ts")).toContain("...arcLights(arc)");
- expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets)");
+ expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets)");
expect(hero).toContain("...lights");
});
@@ -312,7 +312,7 @@ describe("the Arc lights on the scan map", () => {
it("say on the card that the wallet is the registering wallet, with what that does not show, and link the Arc page", () => {
expect(fleetCard).toContain("fleetNotProved(fleet)");
expect(fleetCard).toContain('fleet?.chain === "arc" ? {
});
/**
- * The Base, Ethereum and Monad lights (docs/base-ethereum-lights-2026-10-28.md and docs/monad-lights-2026-11-01.md): one large cross for each of the largest groups of the Base page and
- * one large pentagon for each of the largest groups of the Ethereum page and one large star for each of the Monad page's, from the registry rows, while the chain's switch is on. This guards
+ * The Base, Ethereum, Monad and Gnosis lights (docs/base-ethereum-lights-2026-10-28.md, docs/monad-lights-2026-11-01.md and docs/gnosis-lights-2026-11-06.md): one large cross for each of the largest groups of the Base page and
+ * one large pentagon for each of the largest groups of the Ethereum page, one large star for each of the Monad page's and one large octagon for each of the Gnosis page's, from the registry rows, while the chain's switch is on. This guards
* where they come from and what they are allowed to say; their placement and wording are in constellationModel.test.ts and server/mapFleets.test.ts.
*/
describe.each([
{ chain: "base", label: "Base", shape: "cross", query: "baseFleets", count: "baseLightCount", note: "baseLightsCaption(baseFleets, baseLightCount)", lights: "...baseLights(base)" },
{ chain: "ethereum", label: "Ethereum", shape: "pentagon", query: "ethereumFleets", count: "ethereumLightCount", note: "ethereumLightsCaption(ethereumFleets, ethereumLightCount)", lights: "...ethereumLights(ethereum)" },
{ chain: "monad", label: "Monad", shape: "star", query: "monadFleets", count: "monadLightCount", note: "monadLightsCaption(monadFleets, monadLightCount)", lights: "...monadLights(monad)" },
+ { chain: "gnosis", label: "Gnosis", shape: "octagon", query: "gnosisFleets", count: "gnosisLightCount", note: "gnosisLightsCaption(gnosisFleets, gnosisLightCount)", lights: "...gnosisLights(gnosis)" },
])("the $label lights on the scan map", ({ chain, label, shape, query, count, note, lights }) => {
const cardSource = card.replace(/\/\*[\s\S]*?\*\//g, "");
const fleetCard = cardSource.slice(cardSource.indexOf("function FleetCard"));
@@ -346,7 +347,7 @@ describe.each([
it("come from the same node kind as the other lights, so they ask for no evidence and tell the owl nothing", () => {
expect(read("../../components/home/constellationModel.ts")).toContain(lights);
- expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets)");
+ expect(hero).toContain("fleetRecords(fleets, arcFleets, baseFleets, ethereumFleets, monadFleets, gnosisFleets)");
expect(hero).toContain("...lights");
});
@@ -371,11 +372,13 @@ describe.each([
});
});
-it("links the Base, Ethereum and Monad censuses under their own captions", () => {
+it("links the Base, Ethereum, Monad and Gnosis censuses under their own captions", () => {
expect(hero).toContain('{baseNote && (');
expect(hero).toContain('href="/field/base-registry-2026-10-21"');
expect(hero).toContain('{ethereumNote && (');
expect(hero).toContain('href="/field/ethereum-registry-2026-10-28"');
expect(hero).toContain('{monadNote && (');
expect(hero).toContain('href="/field/monad-registry-2026-11-01"');
+ expect(hero).toContain('{gnosisNote && (');
+ expect(hero).toContain('href="/field/gnosis-registry-2026-11-06"');
});
diff --git a/apps/nooscape-relay/client/src/pages/legalPages.test.ts b/apps/nooscape-relay/client/src/pages/legalPages.test.ts
index f279cc9..d8f71c1 100644
--- a/apps/nooscape-relay/client/src/pages/legalPages.test.ts
+++ b/apps/nooscape-relay/client/src/pages/legalPages.test.ts
@@ -164,33 +164,40 @@ describe("what the privacy and terms pages say about claiming an agent, held to
expect(flow).toContain("arcClaimsOn(features)");
});
- it("says in one more sentence for each, only while that chain's claims are on in the build, that the owner of an agent on Base, on Ethereum or on Monad can claim it the same way", () => {
+ it("says in one more sentence for each, only while that chain's claims are on in the build, that the owner of an agent on Base, on Ethereum, on Monad or on Gnosis can claim it the same way", () => {
expect(privacy).toContain('const BASE_CLAIMS = baseClaimsOn(import.meta.env.VITE_FEATURES);');
expect(privacy).toContain('const ETHEREUM_CLAIMS = ethereumClaimsOn(import.meta.env.VITE_FEATURES);');
expect(privacy).toContain('const MONAD_CLAIMS = monadClaimsOn(import.meta.env.VITE_FEATURES);');
+ expect(privacy).toContain('const GNOSIS_CLAIMS = gnosisClaimsOn(import.meta.env.VITE_FEATURES);');
expect(privacy).toContain('{BASE_CLAIMS && " The owner of an agent on the Base registry can claim it in the same way."}');
expect(privacy).toContain('{ETHEREUM_CLAIMS && " The owner of an agent on the Ethereum registry can claim it in the same way."}');
expect(privacy).toContain('{MONAD_CLAIMS && " The owner of an agent on the Monad registry can claim it in the same way."}');
+ expect(privacy).toContain('{GNOSIS_CLAIMS && " The owner of an agent on the Gnosis registry can claim it in the same way."}');
// The date on the page is the day the newest sentence was written, and the older dates are kept for the older builds.
- expect(privacy).toContain('changed={MONAD_CLAIMS ? "1 November 2026" : BASE_CLAIMS || ETHEREUM_CLAIMS ? "28 October 2026" : ARC_CLAIMS ? "20 October 2026" : "19 October 2026"}');
+ expect(privacy).toContain('changed={GNOSIS_CLAIMS ? "6 November 2026" : MONAD_CLAIMS ? "1 November 2026" : BASE_CLAIMS || ETHEREUM_CLAIMS ? "28 October 2026" : ARC_CLAIMS ? "20 October 2026" : "19 October 2026"}');
const chains = read(join(app, "server", "claimsChain.ts"));
expect(chains).toContain('label: "Base"');
expect(chains).toContain('label: "Ethereum"');
expect(chains).toContain('label: "Monad"');
+ expect(chains).toContain('label: "Gnosis"');
expect(flow).toContain('"Base"');
expect(flow).toContain('"Ethereum"');
expect(flow).toContain('"Monad"');
+ expect(flow).toContain('"Gnosis"');
// The claim code and the page ask the same question: the chain is on and its claims are on.
const features = read(join(app, "shared", "features.ts"));
expect(features).toContain('featureOn("chain_base", list) && featureOn("claims_base", list)');
expect(features).toContain('featureOn("chain_ethereum", list) && featureOn("claims_ethereum", list)');
expect(features).toContain('featureOn("chain_monad", list) && featureOn("claims_monad", list)');
+ expect(features).toContain('featureOn("chain_gnosis", list) && featureOn("claims_gnosis", list)');
expect(chains).toContain("baseClaimsOn(features)");
expect(chains).toContain("ethereumClaimsOn(features)");
expect(chains).toContain("monadClaimsOn(features)");
+ expect(chains).toContain("gnosisClaimsOn(features)");
expect(flow).toContain("baseClaimsOn(features)");
expect(flow).toContain("ethereumClaimsOn(features)");
expect(flow).toContain("monadClaimsOn(features)");
+ expect(flow).toContain("gnosisClaimsOn(features)");
});
it("keeps the one-time request for at least two days after it expires, which is when the daily step deletes it", () => {
diff --git a/apps/nooscape-relay/docs/README.md b/apps/nooscape-relay/docs/README.md
index 719c0c3..bc29b0c 100644
--- a/apps/nooscape-relay/docs/README.md
+++ b/apps/nooscape-relay/docs/README.md
@@ -58,6 +58,7 @@
| [One count of what is listed](./numbers-once-2026-11-04.md) | The home page said 46,038 registered agents under a sentence about seven chains: the figure counted only the three chains the map draws, while the chain tabs and the API's stats add up to 61,282. The hero now leads with the agents listed on every chain and says the map's count is the map's, and `/about` gains "Reading the numbers": what listed, reviewed, registered on chain, new in the last day and on the map each count, with the live figure beside two of them. How it was checked against the live data. | **Live since 2026-11-05 (PR 264)** |
| [A stop waits for what the app has to finish](./graceful-shutdown-2026-11-04.md) | On SIGTERM or SIGINT the app stops listening, lets the requests in flight finish (a paid one among them), writes what the meter has counted and only then lets the process end, by the same signal as before, within 15 seconds. One line, `nooscape_shutdown`, says how it went. How it was checked on real processes, and what it cannot do on the host. | **Live** |
| [Building the database from nothing](./bootstrap-from-empty-2026-11-04.md) | The boot runner refuses an empty database, which it used to take for one built by hand and fail on, unless the operator starts once with `NOOSCAPE_BOOTSTRAP_EMPTY_DATABASE=1`: then it applies every migration file in order, the baseline and the fourteen manual ones included, and the result is held to the tables `schema.ts` declares. A database that has any table is untouched. What was checked on MySQL 8 and MariaDB 10.11, and what it does not do. | **Live** |
+| [Moving to a VPS of its own](./move-to-vps-2026-11-04.md) | (Withheld from the public tree; kept in the private archive.) The kit that moves the app, its database and the three scheduled jobs off the shared host: a production image and stack (database, app, Caddy), a deploy script with a rollback and a live check after the swap, a deploy that follows CI, alerts and a live check every half hour, backup and restore scripts with a monthly restore drill, an offsite copy of the evidence objects with a read-back, the rehearsal, the cutover and the way back as steps, and the checklist of settings. What ran on Docker on the owner's PC, and what only the real server can show. | **Live since 2026-11-06** |
| [Failed starts are spaced, and aggregate builds are timed](./boot-spacing-and-build-timing-2026-11-05.md) | A start that fails on the database leaves a note and the next start waits (15 seconds, doubling, five minutes at most) before it opens a connection, so a crash loop cannot spend the host's 500 new connections an hour as the outage of 1 November nearly did; the directory cache writes a line for any aggregate build of 200 ms or more, so what the full-table counts cost is on record before anyone builds counters. |
| [Pressure test 2026-10-14](./pressure-test-2026-10-14.md) | (Withheld from the public tree; kept in the private archive.) Local pressure test at production scale: what a visitor costs, the cache and search findings and fixes, failure drills (killed connections, a frozen database, the connection cap replayed), a soak, and what is still open. Tools in `scripts/loadtest`. | **Current** |
| [The Owl's Catch](./owls-catch-2026-10-15.md) | One factual finding a day, chosen by a fixed rule from the directory's own counts and stored with the values its words are made from: the rules, the table, the worker step, the three public reads (checked against current visibility), the card on the home page, the `/catch` pages, the head the server writes for link previews, and the migration review and rollback. | **Current** |
@@ -89,12 +90,22 @@
| [Ratings on Ethereum, Base and Arc](./extra-chain-ratings-2026-10-21.md) | A worker step that counts the NewFeedback and FeedbackRevoked events of each chain's ERC-8004 reputation registry and keeps only the counts, so the chain's "Ratings recorded" figure is a number once the read has caught up and "not measured" before. Why it had not been read, how a window is counted once, what was checked against the real Arc node (603 ratings, 6 revocations), what it does not do (per-agent ratings, raters, BNB Chain's figure), and how long the first read takes. | **Current** |
| [Ethereum: turning the chain on](./ethereum-go-live-2026-10-27.md) | Stage 5 of the operator's "1 then 2 then 5". The chain was built and merged off on 2026-10-20; this record has what the real chain held on 2026-10-27 (55,442 registrations, quiet now), a rehearsal of the whole first pass with the pass's own code on a MariaDB 10.11 (20 runs, 181 seconds, 5,186 listed, about 0.2 GB), why the starting budget stays, the steps that turn it on, the names step for the chain, what happened when the operator switched it on (live at 12:04Z with the figures rehearsed), and what is open. | **Current** |
| [Monad: the ERC-8004 identity pass on a seventh chain](./monad-erc8004-2026-11-01.md) | Monad (chain 143) is added to the one chain list behind `chain_monad`, switched off. What the real chain held on 2026-11-01 (the same contract as Ethereum's, 10,420 registrations since 2026-02-03, 21,047 events the pass reads, the busiest 50,000-block window 2,944), who registered (one host holds 78%), the entry and why each number is what it is, a rehearsal of the whole first pass with the pass's own code on a MariaDB 10.11 (16 runs, 47 seconds, 144 listed of 10,420), the by-hand migration 0053 with its check and rollback, the operator's steps, what is not built (names, the MCP package, lights, a page, ratings, the scheduled flip), and what happened when it went live (staged and run the same day, 144 listed as rehearsed, after a 16-minute database privilege incident that the change did not cause). | **Current** |
+| [Gnosis: the ERC-8004 identity pass on an eighth chain](./gnosis-erc8004-2026-11-06.md) | Gnosis (chain 100) is added to the one chain list behind `chain_gnosis`, switched off. What the real chain held on 2026-11-06 (the same contract as Ethereum's, 4,179 registrations since 2026-02-04, 8,412 events the pass reads, the busiest 10,000-block window 5,304), who registered (one wallet and one host hold 92%), the entry and why each number is what it is, a rehearsal of the whole first pass with the pass's own code on a MariaDB 10.11 (6 runs, 43 seconds, 41 listed of 4,179), the by-hand migration 0057 with its check, record and rollback, and what is not built. |
| [The Ethereum page (Chain Worlds, stage E)](./ethereum-world-2026-10-27.md) | `/chains/ethereum`, World 06, "The pale spire": groups only, as BNB Chain's and Base's pages are, drawn as pentagon formations on three platforms (same host, same profile link, same registering wallet), from the registry rows the pass stores. Why groups only, what is read, what a test holds, what was checked on a built server against the real first pass, and what is not built (lights, a census report, claims) and left for the operator (the names it shows, its title). | **Current** |
| [The Monad page (Chain Worlds, stage F)](./monad-world-2026-11-01.md) | `/chains/monad`, World 07, "The coral loom": groups only, as BNB Chain's, Base's and Ethereum's pages are, drawn as star formations on three platforms (same host, same profile link, same registering wallet), from the registry rows the pass stores. Why groups only, what is read, what a test holds, what was checked on a built server against the real first pass, and what is left for the operator (the names it shows, its title and colours). | **Current** |
| [Monad lights on the home map](./monad-lights-2026-11-01.md) | Monad as large stars on the home map, one for each of the five largest groups of the chain's page, from the same read as the page. Why five, the words, what is left out (hollow dots, the hero's Noosphere, a census link), what the tests hold and what was checked in the browser at 1440 and 375 pixels. | **Current** |
+| [The Gnosis page](./gnosis-world-2026-11-06.md) | `/chains/gnosis`, World 08, "The teal lantern": Gnosis's groups of registrations as octagon formations on the platforms of the shared fact (same host, same profile link, same registering wallet), groups only, from the registry rows. What it shows and why groups only (41 of 4,179 listed, one host holds 92 percent), the share card, why the outline is an octagon and not the hexagon the tab had, what the tests hold, what was checked in the browser, and what is the operator's call. | **Current** |
+| [Gnosis lights on the home map](./gnosis-lights-2026-11-06.md) | Gnosis's largest groups (at most five) as octagons on the home map, in the chain's colour with the count, behind `chain_gnosis`: the fact each states, why five, how the lights are placed after Monad's, what is read, what the tests hold and what was checked. | **Current** |
+| [Ratings for Gnosis](./gnosis-ratings-2026-11-06.md) | One line of configuration: Gnosis's entry names the reputation registry, so the ratings step counts its ratings and revocations. What the registry holds (4,341 ratings and no revocation, all in the first month), what the step measured against the real chain (14 runs to catch up), what a visitor sees and when, the cost and what the tests hold. | **Current** |
| [Ratings for Monad](./monad-ratings-2026-11-01.md) | One line of configuration: Monad's entry names the reputation registry, so the ratings step counts its ratings and revocations. What the registry holds (9,432 ratings and 2 revocations), what the step measured against the real chain (14 runs to catch up), what a visitor sees and when, the cost and what the tests hold. | **Current** |
+| [Claim this agent, for Gnosis](./gnosis-claims-2026-11-06.md) | The claim flow opened to the owners of agents on Gnosis behind a switch of its own (`claims_gnosis`), which stays off until the operator adds it to `VITE_FEATURES`: the chain entry (id 100), the fourth node built from the shared module on `GNOSIS_RPC_URL`, the words, the one Privacy sentence and its date, what was read from the real chain, what the tests hold and how to turn it on and off. No migration. | **Current (off)** |
+| [The Agenstry feed limits](./agenstry-limits-2026-11-06.md) | The five bounds the Agenstry adapter reads the provider's feed under, raised because the feed on 2026-11-06 was at or near every one of them (the compressed size at 93 percent of its bound, the line walk at 99.7, the directory at 96, and the daily run had reached its intake cap): the measurements, the new values (48 MiB, 450,000 lines, a 24,000-line window, 128 records, 300,000 directory entries), what was left alone (the expanded cap and the 120 second timeout, which is the next to watch), what the tests hold and why it publishes nothing. | **Current** |
+| [Two A2A registries as catalog sources](./a2a-registries-2026-11-06.md) | a2aregistry.org (649 records) and api.a2a-registry.org (2,034) read through a variant of the Agenstry catalog adapter: paged JSON, a selection rule each, one record per party, the oldest first up to 96, none on a party another source's reviewed record already holds. Both are staged manual only, and nothing reads either until an operator approves and runs it. What a run reads, what the real pages gave (285 and 86 qualify), what the tests hold and the open points (no written permission, the ceiling, no schedule). With the approvals for [a2aregistry.org](./approvals/2026-11-06-a2aregistry-catalog.md) and [a2a-registry.org](./approvals/2026-11-06-a2a-registry-org-catalog.md). | **Current** |
+| [The cross-source party rule for catalog sources](./catalog-party-rule-2026-11-07.md) | The rule that leaves out a party another source's public record already holds read endpoint rows, and a catalog record has none, so it saw nothing between the three catalog sources: after the operator published them on 2026-11-07 the count of public records went from 76 to 313, and 36 of the 313 were copies. Why the rule failed and why its test passed, what was weighed (endpoint rows, reading the stored objects, a host kept on the public snapshot), migration 0059 and the lookup that now reads it, what the tests hold, and what the operator runs again, and in what order, to clear the copies. | **Current** |
+| [The Today block on the registry census reports](./census-today-2026-11-06.md) | Each registry census report stays a dated measurement, and now carries a Today block at its top: the counts of its first table as the directory holds them now, beside the figures the report measured and the change. A cached read of the directory with no migration and no job, current to the chain's last pass, counts only. Which reports have it (Arc, Base, Ethereum, Monad, Gnosis, Robinhood Chain and BNB Chain's registry report), what it does not do yet (Solana), what it cost on production and what the tests hold. | **Current** |
| [Claim this agent, for Monad](./monad-claims-2026-11-01.md) | The claim flow opened to the owners of agents on Monad behind a switch of its own (`claims_monad`), which stays off until the operator turns it on. The chain entry, the claim node built from the shared module, what a read of the real chain returned, the Privacy sentence and its date, what the tests hold, what was not checked and how to turn it on and off. | **Current** |
| [Monad registry census](./monad-census-2026-11-01.md) | A dated count of the ERC-8004 identity registry on Monad as the directory holds it (4,327 registrations stored of the 10,421 it counts, 144 listed): who registered, what the listing rules held out, what the chain records and when, and the 6,094 registrations a host's cap counted and did not store. The measurement is the 15 read-only queries the operator ran on 2026-11-01 and every row they returned, with counts only and no agent, wallet or host named. The report is `/field/monad-registry-2026-11-01` (behind `chain_monad`, linked from the home Monad tab, the inspector of a group on the Monad page and the line under the map, in the sitemap), and a test fails if a number on it is not in the data file or the document, or a total does not add up. | **Current** |
+| [Gnosis registry census](./gnosis-census-2026-11-06.md) | A dated count of the ERC-8004 identity registry on Gnosis as the directory holds it (2,328 registrations stored of the 4,179 it counts, 41 listed): who registered, what the listing rules held out, what the chain records and when, and the 1,851 registrations a host's cap counted and did not store. One host name holds 3,851 of the 4,179 (92.2%), and one wallet made the 2,000 stored for it. The measurement is the 15 read-only queries run on production on 2026-11-06 and every row they returned, with counts only and no agent, wallet or host named; the days and the months are dated through the same 19 stretches of blocks. The report is `/field/gnosis-registry-2026-11-06` (behind `chain_gnosis`, linked from the home Gnosis tab, the inspector of a group on the Gnosis page and the line under the map, in the sitemap), and a test fails if a number on it is not in the data file or the document, or a total does not add up. | **Current** |
| [The Arc feed (Chain Worlds, stage G)](./arc-feed-2026-11-02.md) | The rail on `/chains/arc` lists the newest 40 recorded events of the entries the directory lists on Arc, as Robinhood Chain's page does, from the activity ledger every chain pass already writes: one new read, no migration. What it names and what it leaves out (a registration the listing rules hold out), Arc's own mint hour for a hand-out, what a test holds, what was checked on a built server, and why BNB Chain, Base, Ethereum and Monad keep saying they have no feed (the operator's call). | **Current** |
| [The Arc pass in a flood](./arc-flood-pass-2026-11-02.md) | Why Arc's registrations count went from 3,277 to 43,724 in a day and the pass was 26 hours behind: one platform registering about 100,000 agents a day, a daily run that read 12 minutes of chain, and the window and run budget Base already has. What changed, what a test holds, what was checked, and what is open (the lag is shown nowhere). | **Current** |
| [Base and Ethereum lights on the home map](./base-ethereum-lights-2026-10-28.md) | Base as large crosses and Ethereum as large pentagons on the home map, one for each of the five largest groups of the chain's page, from the same read as the page. Why five and not Arc's eight, the words, what is left out (hollow dots, the hero's Noosphere), what the tests hold and what was checked in the browser at 1440 and 375 pixels. |
@@ -123,7 +134,7 @@
| [The MCP server (D-MCP)](./mcp-server-2026-10-19.md) | A standalone package that serves five read-only tools (search, the counts on each chain, one agent, an agent's history, a pre-flight check) over the live public API, by stdio and a local HTTP mode: a plain summary then the API's JSON untouched, no verdict words, an owner's words labelled as theirs, the key never shown, no wallet or payment. Merged as PR 166, with a public home at `RunTimeAdmin/nooscape-mcp`. Published to npm and the official registry (0.5.0 is the latest); where Smithery stands, and what was learned about each route. Decision record: [D-MCP](./approvals/2026-10-19-mcp-server.md). | **Current** |
| [No-token notice](./approvals/2026-10-19-no-token-notice.md) | The decision of 2026-10-19 to say, in the footer, on the "what it is not" page and in the Terms, that Nooscape has issued no token on any chain and is not connected to any token using its name, after others launched tokens with its name. Pinned by a test. | **Current** |
| [Multichain ERC-8004 identity passes](./approvals/2026-10-20-multichain-erc8004.md) | The decision record for Ethereum, Base and Arc: what the operator is asked to approve, what he did not decide and I chose (so he can say no), what stays for him, and the outcome list. | **Current** |
-| [Names for Base, Arc, Ethereum and Monad entries](./approvals/2026-10-26-base-arc-names.md) | The operator's decision of 2026-10-26 (with addenda of 2026-10-27 that adds Ethereum and 2026-11-01 that adds Monad, with the step's real chain read and a whole run against the real hosts): a name step for the entries on Base and Arc that show "Agent #n" and whose registration link is a web or ipfs address. It reads the link from the chain's own node (one Multicall3 `tokenURI` read a turn, at the finalized block), keeps it only when it is the link the registry row recorded, reads the file through the safe fetch at the Robinhood pace, and lays the name over the placeholder with a dated sentence in the entry's note. The limits, what was checked on live data, what was chosen, and how to watch it and undo it. No migration. |
+| [Names for Base, Arc, Ethereum, Monad and Gnosis entries](./approvals/2026-10-26-base-arc-names.md) | The operator's decision of 2026-10-26 (with addenda of 2026-10-27 that adds Ethereum, 2026-11-01 that adds Monad, with the step's real chain read and a whole run against the real hosts, and 2026-11-06 that adds Gnosis, with the real chain read): a name step for the entries on Base and Arc that show "Agent #n" and whose registration link is a web or ipfs address. It reads the link from the chain's own node (one Multicall3 `tokenURI` read a turn, at the finalized block), keeps it only when it is the link the registry row recorded, reads the file through the safe fetch at the Robinhood pace, and lays the name over the placeholder with a dated sentence in the entry's note. The limits, what was checked on live data, what was chosen, and how to watch it and undo it. No migration. |
| [Outside evaluation, reviewed](./outside-evaluation-review-2026-10-19.md) | (Withheld from the public tree; kept in the private archive.) An outside reviewer's architecture and product evaluation, each code claim checked against `main`: five cheap findings fixed (the domain-proof fetch, the error screen, a migration lock, streaming object reads, the key meter), the rest recorded as true and known, left for a decision, or wrong. | **Current** |
| [Outside security review, checked](./outside-security-review-2026-10-27.md) | (Withheld from the public tree; kept in the private archive.) An outside source review of this repository, the public mirror and the MCP package (a conditional go, and no-go for the MCP HTTP mode on a network), each finding checked against the code: a new webhook address can take a new signing secret in the same call, the fetch guard follows the IANA special-purpose registry, and the mirror's qs pin and the MCP package's hardening are handled in their own repositories. |
| [Second outside security review, checked](./outside-security-review-2026-10-29.md) | (Withheld from the public tree; kept in the private archive.) A second outside source review of this repository, the public mirror and the MCP package (a conditional go, and no-go for the MCP HTTP mode on a network), each finding checked against the code: the claim node's remembered checks no longer survive a clock that goes back and a latest block dated ahead of the clock is refused, the API says a claim is read at the latest block, and the MCP package's 0.5.0 asks for a token off this machine, accepts AgenC and quotes names. |
diff --git a/apps/nooscape-relay/docs/a2a-registries-2026-11-06.md b/apps/nooscape-relay/docs/a2a-registries-2026-11-06.md
new file mode 100644
index 0000000..a4801de
--- /dev/null
+++ b/apps/nooscape-relay/docs/a2a-registries-2026-11-06.md
@@ -0,0 +1,75 @@
+# Two public A2A registries as catalog sources
+
+The scout's report of 2026-11-06 (it is outside the repository; its numbers are in the two approvals) found two public A2A registries that could add reviewed records through a small variant of the Agenstry catalog adapter: **a2aregistry.org** (649 records, a community registry with probe results and no identity field) and **api.a2a-registry.org** (2,034 records, with an owner claim and a DNS or ANS check it calls "verified"). This change builds that variant, adds both as sources an operator can stage, and publishes nothing.
+
+**Status.** Built on 2026-11-06 on branch `feat/a2a-registries`. **Nothing reads either registry until an operator stages the source, approves it active and runs it.** Both are staged manual only. No migration and no new setting.
+
+**Update, 2026-11-07.** The operator staged, approved, ran and published both registries that evening, and Agenstry's latest run with them (the runs and their counts are in [the party rule record](./catalog-party-rule-2026-11-07.md)). That showed the rule below that leaves out a party another source's reviewed record holds had worked only against direct A2A sources: it read endpoint rows, and a catalog record has none. Migration 0059 of that day makes it hold between catalog sources (the lookup is now `listReviewedAddressesOfOtherSources`), but a registry's rows get their host only when that source is run and published again. Where this record says the rule holds, read it with that one.
+
+**Decided:** 2026-11-06, by the operator, in chat: "Two public A2A registries could add reviewed records with a small adapter variant. add this". The defaults are mine, taken from the scout's drafts, and are listed under "Left open" so the operator can change any of them.
+
+The two approval records, the scout's drafts made final: [a2aregistry.org](./approvals/2026-11-06-a2aregistry-catalog.md) and [a2a-registry.org](./approvals/2026-11-06-a2a-registry-org-catalog.md).
+
+## What it adds
+
+- `server/ingestion/a2aRegistryCatalog.ts`: the adapter. One policy per registry (endpoint, paging, scan limit, page and record caps, selection rule), one read loop, one way to pick and store records.
+- `server/ingestion/runA2aRegistry.ts`: the run (the Agenstry run's shape): the lookup of other sources' reviewed hosts, the stored observations, the counts.
+- `server/ingestion/runCatalog.ts`: one door for every `catalog` source. The two registries by their own source keys, the Agenstry feed otherwise. The worker and the operator's run both go through it, where each called the Agenstry run directly.
+- `server/db.ts`: `listReviewedEndpointUrlsOfOtherSources`, and an optional parser version on `persistCatalogObservation` (the registries' observations say `a2a-registry-catalog-v1-source-scoped`, not the Agenstry feed's).
+- `server/routers/liveData.ts` and `client/src/pages/SourceOperations.tsx`: two fixed sources an operator can stage (`a2aregistry`, `a2aRegistryApi`), with a button each, in review and manual only, like every other fixed source.
+
+## What a run does
+
+1. Checks the stored source is the approved one (key, protocol, state active, address, host) and that the registry's host is public.
+2. Reads the list a page of 100 at a time, at least 1.2 seconds apart, each request under a 20 second timer and a page size cap, a GET with no redirect. A registry that reports more records than the scan limit, a list that ends before the records it reported, a status that is not a success, a page that is not JSON or is over the cap, or a shape that is not the documented one **fails the run** and takes nothing.
+3. Picks records by the registry's rule (below), one per party (the oldest), none on a party that already holds a reviewed record from another source, the oldest first up to 96.
+4. Stores each record as the registry served it under its content hash (the same storage and 90-day lock as every catalog), and writes it as a Tier 2 catalog record. What the registry says about itself is kept as findings, each followed by "not independently verified by Nooscape".
+
+It never fetches a card, a service address or any other address a record names.
+
+## The rules
+
+| | a2aregistry.org | api.a2a-registry.org |
+|---|---|---|
+| Takes | not hidden, no flags, passed the conformance check, healthy, task probe WORKING | public, active, an A2A record the registry calls verified, no failed check since |
+| Leaves out | a card or service address that is not https, or has credentials or a port; a card served by the registry itself | an import with no owner, a spotlight, a promoted or a badged placement, a card address that is not https, a card served by the registry itself |
+| Page asked for | `?limit=100&offset=N` | `?limit=100&page=N` (counted from 1; the API ignores `offset`) |
+| Scan limit, page cap, record cap | 2,000 records, 2 MiB, 128 KiB | 5,000 records, 1.5 MiB, 256 KiB |
+| Ceiling | 96 | 96 |
+| Cadence the approval allows | manual runs | manual runs, no more than once a week |
+
+**Counts.** `discoveredCount` is the distinct records read. `acceptedCount` is the records taken. `rejectedCount` is everything else, so it includes the records that qualified past the ceiling. The run page cannot tell those apart, so each run also writes one line to the server log (`nooscape_a2a_registry_run`) with the discovered, qualified, accepted and rejected counts. For a2aregistry.org on 2026-11-06 that line would read 649, 285, 96 and 553.
+
+**Oldest first.** 285 parties qualify at a2aregistry.org and the ceiling is 96. The oldest are taken, so the set does not change from run to run as new records arrive.
+
+**Parties.** The registrable domain of the card's host, and the whole host on a hosting platform where each tenant is its own party. The platform list is short and fixed (13 names, in `a2aRegistryCatalog.ts`), not the public suffix list: a host it does not know is grouped with its neighbours, which can only drop a record, never add one.
+
+## Checked on the real pages
+
+The adapter read the scout's saved pages of 2026-11-06 for both registries (download and storage replaced): **a2aregistry.org** 7 requests, 649 discovered, **285 qualify** (the scout's figure, reproduced), 96 taken; **api.a2a-registry.org** 21 requests, 2,034 discovered, **86 qualify**, 86 taken. The scout's draft said 89 for the second: its count of 110 records and 99 hosts is the rule without the exclusion of placements, which removes 2 spotlight records ("Featured"), and the registry's own three utility agents are left out here as every catalog's own cards are. The check ran once, locally; the saved pages are not in the repository.
+
+## Held by tests
+
+- `a2aRegistryCatalog.test.ts` (the adapter, 62 tests): the party rule, every field of each registry's rule on its own (a record broken one way at a time), the mapping, the oldest-first order and the ceiling, one record per party, the other-source rule applied before the ceiling counts, the record cap from both sides, the stored text and key, the pages asked for and the pause between them, no request but the list's, no redirect, and each way a run fails (scan limit, short list, status, type, shape, size by declared length and by bytes with the stream cancelled, a stalled request, a failed request, a source that is not the approved one).
+- `runA2aRegistry.test.ts`, `runCatalog.test.ts`, `worker.test.ts`, `a2aRegistriesRoute.test.ts`: the run (other sources' parties passed in, the registry's parser version, the counts, a failed run closed as failed), the one door for catalog sources (worker and operator), and staging and running each source through the real router (operator only, the preset, one source however often it is staged, a source that is not active is not run).
+- `registryHostSkip.integration.test.ts` (MySQL 8 and MariaDB 10.11): the lookup of other sources' reviewed addresses composes the same gate every public read uses. It returns another source's public record and not the asking source's own, a withdrawn record, a paused source's, an observation outside the approved run, or a decision that is not public.
+- Planted changes: 56, each caught. Each field of each registry's rule taken out in turn, the address rules, the party rule (several for one party, another source's party not skipped, the platform list, www, the two-label suffixes, the registry's own cards), the ceiling and its order, the pause and its length, the pages asked for, every check that fails a run, the stored key and text, the run's wiring, the dispatch of the router and the worker, and each condition of the lookup.
+
+## Left open, and not done
+
+- **No run yet.** Nothing here has read either registry for real. The pilot is the check. (Superseded 2026-11-07: both were run and published that evening, api.a2a-registry.org with 90 records and a2aregistry.org with 96; see [the party rule record](./catalog-party-rule-2026-11-07.md).)
+- **No schedule.** Both sources are manual only. Moving one to a schedule is a reviewed change, as for the chain passes.
+- **No directory acknowledgement.** Unlike the Agenstry feed, the registries' other records are not acknowledged into the master directory; only the records taken are stored. That is a decision of its own.
+- **Permission.** a2aregistry.org states no terms and api.a2a-registry.org states no reuse licence. The pilot is a manual run of a documented public API that robots.txt allows. Whether to ask either maintainer first is the operator's call (GitHub Issues only; nothing has been sent).
+- **The ceiling of 96** binds at once at a2aregistry.org. Smaller for the pilot, or the same, is the operator's call.
+- **The scan limit of the second registry** (5,000) can bind within weeks to months at the recent rate. It fails the run and says so; raising it is a reviewed change.
+
+## To use it
+
+For each registry, in this order (the second to run leaves out the first's parties once the first is published, so publish one before running the other):
+
+1. On `/admin/sources`, **Stage** the source. It is created in review, manual only.
+2. Approve it active (the operator's approval of the source).
+3. **Run** it once. The run page shows the discovered, accepted and rejected counts; the server log has the qualified count.
+4. Recompute the SHA-256 of the stored objects and confirm the lock, as the Agenstry approval describes.
+5. Record the source's projection decision for that run. Nothing is public before this step.
diff --git a/apps/nooscape-relay/docs/agenstry-limits-2026-11-06.md b/apps/nooscape-relay/docs/agenstry-limits-2026-11-06.md
new file mode 100644
index 0000000..fd66169
--- /dev/null
+++ b/apps/nooscape-relay/docs/agenstry-limits-2026-11-06.md
@@ -0,0 +1,75 @@
+# The Agenstry feed limits, raised
+
+The Agenstry catalog adapter ([the approval](./approvals/2026-10-08-agenstry-catalog.md)) reads the provider's public feed under a handful of bounds. On 2026-11-06 the feed was at or near every one of them, and four of the five that matter drop records without a failure, so nothing would have said the feed had outgrown them. This change raises the five, with room for about three months at the growth seen, and holds each of the four quiet ones with a test. It changes no rule about which records are taken, and it publishes nothing.
+
+**Status.** Built on 2026-11-06 on branch `feat/agenstry-limits`. It takes effect at the first daily Agenstry run after the deploy. No migration and no new setting.
+
+**Decided:** 2026-11-06, by the operator, in chat: "merge 302 and build the limits pr". The numbers are mine, set from the measurements below, so the operator can name others.
+
+## What the feed was on 2026-11-06
+
+One request for the feed (generated 2026-11-06 23:08 UTC, a copy kept outside the repository), read with the adapter's own rules:
+
+- 299,073 lines, 22.35 MiB compressed (23,431,777 bytes) and 127.2 MiB expanded, 5.7 times. The longest line is 237.6 KiB.
+- 3,454 `a2a_agent` records, the first at line 10 and the last at line 11,375. 177 carry a source-reported signal and 175 of those are valid. They sit on 99 different provider hosts, so 99 qualify under the rule of one record per host.
+- 230,827 different records of the kinds the directory acknowledges (`mcp`, `paid_api`, `a2a_agent`).
+
+The same figures on 2026-10-09, from the comments the bounds carried, were 262,024 lines, 17.9 MiB, 2,846 `a2a_agent` records inside the first 10,000 lines, about 213.7k acknowledged records and 80 qualifying hosts. In the 28 days between, the compressed size grew about 25 percent, the lines 14, the acknowledged records 8, the `a2a_agent` records 21 and the qualifying hosts 24. Two points are all there are, so the months below are a guide and not a forecast.
+
+## The bounds
+
+| Bound | Was | The feed on 2026-11-06 | Now | Left at the growth seen |
+|---|---:|---:|---:|---|
+| Compressed body (fails the run) | 24 MiB | 22.35 MiB (93%) | 48 MiB | about 3 months |
+| Line walk stops (quiet) | 300,000 lines | 299,073 (99.7%) | 450,000 | about 3 months |
+| Evidence window (quiet) | 12,000 lines | last `a2a_agent` at 11,375 (95%) | 24,000 | 3 months or more |
+| Intake cap (quiet) | 96 records | 99 qualify | 128 | 5 to 6 weeks |
+| Directory ceiling (quiet) | 240,000 records | 230,827 (96%) | 300,000 | about 3 months |
+| Expanded body (fails the run) | 512 MiB | 127.2 MiB (25%) | 512 MiB | unchanged |
+| Request timeout (fails the run) | 120 seconds | 51 seconds from the production server | 120 seconds | unchanged, the next to watch |
+
+A bound that fails the run shows as a failed run on the operator's surfaces. A quiet one ends the read or leaves records out and the run shows as a success. The daily run on 2026-11-06 accepted 96 records, the cap, and 99 qualify in the copy of the feed above; no failure said so.
+
+## Why these numbers
+
+- **Compressed, 48 MiB.** Twice today's size. The bound exists to stop a hostile or broken feed, not to size the feed, and the connection is cut when the body crosses it. A first sketch of 32 MiB would have lasted about six weeks.
+- **Walk, 450,000 lines.** One and a half times today's. A first sketch of 400,000 would have lasted about two months.
+- **Evidence window, 24,000 lines.** The window only has to hold the `a2a_agent` block, which ends at line 11,375 and grows. A record past the window is not read for the reviewed intake and nothing fails. 24,000 is twice the block's end.
+- **Intake cap, 128.** It takes all 99 with room, and sits inside what the review tooling lists in one run (`MAX_RUN_REVIEW_OBSERVATIONS`, 256), so every record a run keeps can be checked before it is published. The count grew about a quarter in four weeks, so 128 will bind again in five or six weeks. Each record is one more to check before it is shown, so raising it again is the operator's decision.
+- **Directory ceiling, 300,000.** One and three tenths times today's.
+
+## What did not change
+
+- **The expanded cap, 512 MiB.** It guards against a gzip bomb. A feed at the new compressed bound that expands the same 5.7 times is about 270 MiB, inside it.
+- **The request timeout, 120 seconds.** A pull from the production server on the evening of 2026-11-06 took 51 seconds for the 22.35 MiB, about 450 KB a second. At that rate a feed at the new compressed bound takes about 110 seconds, so the size bound and the timeout will bind at about the same time. Raising the timeout also holds the worker longer on a stalled body, so it is left for the operator to decide, and it is the next one to look at.
+- **Which records are taken.** `kind=a2a_agent`, no sanction flag, at least one source-reported signal, one record per provider hostname; the 32 KiB record cap and the 1 MiB line cap; no URL inside a record is followed.
+
+## What the change costs
+
+- **Memory.** The directory walk keeps its drafts in a map until the run ends. Measured with the adapter's own draft function on the real feed, the map holds about 58 MiB of heap for today's 230,800 or so drafts (262 bytes each). That is about 60 MiB at the old ceiling and about 75 MiB at the new one, so the ceiling adds up to 15 MiB at its peak and nothing at today's size.
+- **The run's rejected count.** The window now looks at lines 12,001 to 24,000, which are not `a2a_agent` records, and counts them as rejected, so the Agenstry run's rejected figure rises by about 12,000. The operator's run page shows that figure and no rule reads it. What is taken, and what the directory acknowledges, does not change by it.
+- **Download time.** None added by this change. The pull is what it was.
+
+## Checked on the real feed
+
+The adapter's own entry point (`fetchAgenstryCatalog`), with the download and the storage replaced and the 2026-11-06 copy of the feed as the body, read 299,073 lines to the end under the new bounds, took 99 records (the old cap took 96), made 99 storage writes, kept 230,827 directory entries and counted 23,828 lines as rejected, in 3.8 seconds of parsing. This ran once, locally, and is not a test in the tree because the feed copy is not.
+
+## Held by tests
+
+- `catalogAdapters.test.ts`: the five raised bounds are exported and pinned, the compressed bound, the walk stop and the window each above what the 2026-11-06 feed used, the window shorter than the walk, the intake cap inside `MAX_RUN_REVIEW_OBSERVATIONS`, and the directory ceiling.
+- `agenstryFeed.test.ts`:
+ - the connection is cut at the compressed bound: the body is cancelled, and no more than a few pieces are read past the bound (the check after the read would give the same verdict once the whole body had been downloaded, so the cancel is what pins the cut);
+ - the window's last line, from both sides: a record with a signal at line 24,000 is read, one at line 24,001 is not, though the directory still acknowledges it;
+ - the intake cap: 131 qualifying records give 128 taken, none rejected and 128 storage writes;
+ - the walk stop and the directory ceiling: a feed of 450,005 lines is read to line 450,000, the directory holds exactly 300,000 and drops the five past the ceiling, with no failure.
+- Planted changes: twelve, each caught. Each constant put back to its old value, the intake cap taken one too far, the cap placed above what the review tooling lists, the window one line short and one line long, the walk one line too long, the directory one entry too long, and the cut at the compressed bound removed.
+
+## Not checked, and left as it is
+
+- **No run in production yet.** The first scheduled Agenstry run after the deploy is the live check: it should succeed and accept at least 96 records (99 qualify today). A failure reading "exceeded the compressed response limit" would mean the new bound did not deploy.
+- **The growth is two points apart.** The months above come from 2026-10-09 and 2026-11-06 only.
+- **The timeout stays at 120 seconds**, as above.
+
+## What this does not do
+
+It does not change what the public sees. The public reviewed set for Agenstry is the operator's last published run, which is still the manual run of 2026-10-09 with 48 records. The daily runs since then took 91 to 96 records each and are not shown until the operator publishes one on `/admin/sources` after the evidence check the approval describes (the stored objects' SHA-256 recomputed, their retention confirmed). Raising the limits keeps the daily run from failing and from dropping records, so that the run the operator publishes holds all of them.
diff --git a/apps/nooscape-relay/docs/approvals/2026-10-08-agenstry-catalog.md b/apps/nooscape-relay/docs/approvals/2026-10-08-agenstry-catalog.md
index 6834799..b329f05 100644
--- a/apps/nooscape-relay/docs/approvals/2026-10-08-agenstry-catalog.md
+++ b/apps/nooscape-relay/docs/approvals/2026-10-08-agenstry-catalog.md
@@ -40,3 +40,19 @@ After the first run, an operator must recompute the stored-object SHA-256 and co
- [x] First bounded snapshot completed: 1 request, 473 discovered records, 12 accepted, 456 rejected
- [x] All 12 retained raw objects passed independent SHA-256 recomputation and 90-day governance-retention checks
- [x] Source-level projection approved; all 12 are publicly visible as Tier 2 / unverified catalog discovery metadata
+
+## Addendum (2026-11-06): the bounds as they stand
+
+The bounds table above is the approval of 2026-10-08. The adapter's bounds have been raised since, and the code holds the values below ([the record of the latest change](../agenstry-limits-2026-11-06.md)). The scope of the approval is unchanged: one read-only request for the same endpoint, nothing inside a record is followed, and a record is taken only if it is `kind=a2a_agent`, carries no sanction flag, reports at least one signal and is the only one taken for its provider hostname.
+
+| Control | 2026-10-08 (above) | 2026-10-09 | 2026-11-06 |
+|---|---:|---:|---:|
+| Accepted records | 12 (48 later the same day) | 96 | 128 |
+| Lines scanned for accepted records | 5,000 | 12,000 | 24,000 |
+| Compressed payload cap | 4 MiB | 24 MiB | 48 MiB |
+| Expanded payload cap, and the longest line being assembled | none | 512 MiB and 1 MiB (from 2026-10-12) | unchanged |
+| Line cap | 32 KiB | 32 KiB | 32 KiB |
+| Whole-feed walk for the directory | none | 300,000 lines, 240,000 records | 450,000 lines, 300,000 records |
+| Request timeout | 20 seconds | 120 seconds | 120 seconds |
+
+The 2026-10-09 values were set in commit `041646b` and the expanded and line caps in `158747f`, and this approval was not updated then; this addendum is the record. The order for the 2026-11-06 change is the operator's, in chat: "merge 302 and build the limits pr". The evidence interpretation, the projection rule and the outcome above stand. Raising the accepted-records bound publishes nothing: the public reviewed set is the operator's last published run, which is still the 48 records of the manual run of 2026-10-09.
diff --git a/apps/nooscape-relay/docs/approvals/2026-10-26-base-arc-names.md b/apps/nooscape-relay/docs/approvals/2026-10-26-base-arc-names.md
index fe9c337..dc783d1 100644
--- a/apps/nooscape-relay/docs/approvals/2026-10-26-base-arc-names.md
+++ b/apps/nooscape-relay/docs/approvals/2026-10-26-base-arc-names.md
@@ -60,6 +60,7 @@ The reader and the file step were run from the operator's machine on 2026-10-26
- **BNB Chain.** Its listed entries show "Agent #n" too, but its file step keeps no name by an earlier decision. Adding names there is a change to that decision.
- **Ethereum.** It joined this step on 2026-10-27 (see the addendum at the end).
- **Monad.** It joined this step on 2026-11-01 (see the second addendum at the end).
+- **Gnosis.** It joined on 2026-11-06 (see the third addendum at the end).
- **Held-out registrations,** which have no entry and so no name.
- **Anything but the name** (see above).
- **A check of the name against anything.** A name is whatever the file says, so an entry can call itself after a known project. The note says it is the registrant's own claim, as on the other chains, and the name changes nothing about the entry's tier, whether it is listed, or its place on the map. Search by name will now find these names, which makes this more visible than it was with "Agent #n".
@@ -69,8 +70,8 @@ The reader and the file step were run from the operator's machine on 2026-10-26
A run that did anything writes one `nooscape_chain_names` line to the runtime log, and a failure one `nooscape_chain_names_failed` line. Progress, read-only:
```sql
-SELECT protocol, COUNT(*) AS still_nameless FROM agent_directory_entries WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad') AND displayName REGEXP '^Agent #[0-9]+$' GROUP BY protocol;
-SELECT s.protocol, r.uriKind, r.status, COUNT(*) AS links FROM agent_registration_resolutions r JOIN ingestion_sources s ON s.id = r.sourceId WHERE s.protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad') GROUP BY s.protocol, r.uriKind, r.status;
+SELECT protocol, COUNT(*) AS still_nameless FROM agent_directory_entries WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad', 'erc8004_gnosis') AND displayName REGEXP '^Agent #[0-9]+$' GROUP BY protocol;
+SELECT s.protocol, r.uriKind, r.status, COUNT(*) AS links FROM agent_registration_resolutions r JOIN ingestion_sources s ON s.id = r.sourceId WHERE s.protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad', 'erc8004_gnosis') GROUP BY s.protocol, r.uriKind, r.status;
```
To stop it without a deploy, pause the chain's source. To undo it, revert the change, then put the placeholders back and clear the reads:
@@ -79,8 +80,8 @@ To stop it without a deploy, pause the chain's source. To undo it, revert the ch
UPDATE agent_directory_entries
SET sourceSignalNote = REGEXP_REPLACE(sourceSignalNote, ' Its name was read from its registration link on [0-9]{4}-[0-9]{2}-[0-9]{2}; it is the registrant''s own claim[.]', ''),
displayName = CONCAT('Agent #', SUBSTRING_INDEX(externalKey, ':', -1))
-WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad') AND sourceSignalNote LIKE '% Its name was read from its registration link on %';
-DELETE FROM agent_registration_resolutions WHERE sourceId IN (SELECT id FROM ingestion_sources WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad'));
+WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad', 'erc8004_gnosis') AND sourceSignalNote LIKE '% Its name was read from its registration link on %';
+DELETE FROM agent_registration_resolutions WHERE sourceId IN (SELECT id FROM ingestion_sources WHERE protocol IN ('erc8004_base', 'erc8004_arc', 'erc8004_eth', 'erc8004_monad', 'erc8004_gnosis'));
```
An entry that was named at registration, from JSON inside its link, has no such sentence in its note and is not touched. An entry named from JSON set after its registration has the sentence and goes back to "Agent #n", which is what it showed before.
@@ -130,6 +131,22 @@ The names are the registrants' own claims, as on the other chains. A sample read
**Undo.** As above: the SQL there now lists `erc8004_monad` too. Pausing the source stops the names along with its pass.
+## Addendum, 2026-11-06: Gnosis joins the step
+
+**Decided:** 2026-11-06, by the operator, in chat ("lets go fully live with gnosos once you have all you need to do it", after Gnosis went live with 10 of its 41 listed entries showing "Agent #n"). The Gnosis record (`docs/gnosis-erc8004-2026-11-06.md`, section 7) said Gnosis's entries would stay "Agent #n" until this step read it.
+**Changes:** Gnosis is added to the chains the step takes in turn, fifth after Base, Arc, Ethereum and Monad. Four sentences on `/checker` and one on the sources page that name the chains now name it, and the checker page's test holds them to the step's own chain list. Nothing in the table of limits above changes: the same sixteen reads a run, six to a host, a run every thirty minutes at most, one attempt at the chain, the same pauses. No migration (0057 is already applied for the pass), no new source and no new setting: the step asks Gnosis's own node through `GNOSIS_RPC_URL`, the variable the pass reads, and the chain's switch (`chain_gnosis`) and an active source decide, as they do for the other four.
+**Does not change:** which registrations are listed, any tier, BNB Chain and Robinhood Chain, and the home page's hero sentence and the page descriptions, which still name seven chains because the operator said "seven skies works".
+
+**Checked against the real chain on 2026-11-06.** The step's own chain read (`readTokenUrisFromChain`, one Multicall3 `eth_call` at the finalized block, 16 ids a call as the step makes it) was run on Gnosis through the operator's Alchemy account for 40 agent ids: id 0, which is the first registration on the chain, ids 1, 2, 3, 4 and 9, the six whose link was updated after they were registered, and 28 more drawn at random from the registry's history. It answered for all 40. For all 40 the link was the same as a plain `tokenURI` call at the finalized block gave, and the same as the latest link in the registry's own events, so the read is of the link now and not the first one. The 40 links were 35 web addresses, 3 ipfs addresses and 2 held inside the link itself. Multicall3 is deployed on Gnosis at the usual address (3,808 bytes of code).
+
+**What it has to do.** 10 of the 41 listed entries show "Agent #n". The registry is nearly still (24 registrations in the 30 days to 2026-11-06), so the backlog does not grow much.
+
+**Pace.** The five chains share the same sixteen reads every thirty minutes, 768 files a day in all, and a chain with nothing to ask leaves the run to the next. Gnosis's 10 take about one of its turns, and once it has nothing waiting it costs the others nothing.
+
+**Chosen by Claude, so the operator can say no.** Gnosis last in the turn, so the other four keep their order, and no limit of its own.
+
+**Undo.** As above: the SQL there now lists `erc8004_gnosis` too. Pausing the source stops the names along with its pass.
+
**Outcome, 2026-11-01.**
- [x] Merged and deployed: PR 234 was rebase-merged at 04:18Z (main `0d18b15`), the site redeployed at 04:19Z and `verify-live` passed 47 of 47. The runtime log shows no failed step.
- [x] The first Monad run, at 05:30Z, read the links of 16 entries from the chain, read 12 of the files they name and named 3 entries; 2 files had no usable name and 7 could not be read. The rehearsal's first run read 12 and named 2, so the live step behaves as the rehearsal did. The three entries carry the dated sentence in their notes, and a search for each new name finds it.
diff --git a/apps/nooscape-relay/docs/approvals/2026-11-06-a2a-registry-org-catalog.md b/apps/nooscape-relay/docs/approvals/2026-11-06-a2a-registry-org-catalog.md
new file mode 100644
index 0000000..1b9c794
--- /dev/null
+++ b/apps/nooscape-relay/docs/approvals/2026-11-06-a2a-registry-org-catalog.md
@@ -0,0 +1,83 @@
+# Source approval: A2A Registry public API (a2a-registry.org)
+
+**Reviewed:** 2026-11-06 (the scout's draft of the same day, adjusted to what was built)
+**Source key:** `a2a-registry-org-public-api`
+**Protocol:** `catalog` (the A2A registry variant of the Agenstry adapter: paged JSON instead of gzip NDJSON, `server/ingestion/a2aRegistryCatalog.ts`)
+**Canonical endpoint:** `https://api.a2a-registry.org/public/agents`
+**Allowed hostname:** `api.a2a-registry.org`
+**Staged as:** manual only. Nothing reads the registry until an operator approves the source and runs it.
+
+## Approval scope
+
+Approve a **single bounded, read-only snapshot** of the registry's public listing endpoint for each manual run an operator makes, no more often than once a week. There is no scheduled read. Moving the source to a schedule is a separate, reviewed change.
+
+The adapter may read the listing endpoint above without the `q` parameter (search needs a token and is out of scope). It must not follow or invoke any URL found inside a record: no retrieval of `manifestUrl`, no call to a service URL, no `/a2a/discover`, `/a2a/utility/*`, `/agents/{id}/chat`, `/recheck`, `/flag` or any other POST, no token, no authentication, no JavaScript execution, no redirect, no browser interaction. A test holds that every request is a GET of the list endpoint with `redirect: "error"`.
+
+## Template fields
+
+| Field | Required record |
+|---|---|
+| Source owner | "A2A Registry" (site `https://www.a2a-registry.org`, GitHub organisation `A2ARegistry`, repository `GlobalA2ARegistry`). No legal entity is named on the site. |
+| Contact | GitHub Issues: `https://github.com/A2ARegistry/GlobalA2ARegistry/issues` (linked from the About page). No email address found. |
+| Protocol | A2A agent cards held in a registry list. Adapter: `catalog`, A2A registry variant. |
+| Approved HTTPS root | `https://api.a2a-registry.org`, canonical hostname `api.a2a-registry.org`. |
+| Permitted resource | `GET https://api.a2a-registry.org/public/agents?limit=100&page=N` only, with N = 1, 2, 3 and so on up to the reported `total` (21 requests on 2026-11-06, total 2,034). The API caps `limit` at 100 and ignores `offset`. |
+| Written permission / terms | Terms of Service, last updated 2026-10-08: `https://www.a2a-registry.org/terms`. Section 2 says "Core registry browsing, public API access, and basic agent registration are free." Section 5 bars abusive bulk scraping that degrades the platform and circumventing rate limits. **No licence for reuse or republication of registry data found**, and the footer says all rights reserved. `robots.txt` on the API host (`https://api.a2a-registry.org/robots.txt`) holds content-signal comments and no Disallow rule. The `www` host's `robots.txt` disallows `/api/`, which is a path on the `www` host and not the API host; the mismatch is noted here and was not resolved. |
+| Data classification | Public registry metadata only: display name, description, card address, owner organisation, category, verification level, check status, and the registry's copy of the card (`source_agent_card`), kept inside the retained record and not parsed. Excluded: payment objects as claims of capability, promotional flags, any call to an advertised endpoint, and anything behind a token. |
+| Cadence | Manual runs only, no more often than once a week. A run makes 21 requests today (at most 50), about 12 MB, at least 1.2 seconds apart. |
+| Expected identity signal | `unverified`. The registry's `verification_level` is kept as an upstream assertion ("registry-reported verification level: verified", "not independently verified by Nooscape"). Its guide says identity is checked by DNS or GoDaddy ANS (`https://www.a2a-registry.org/resources/guide`). Nooscape did not test those proofs. |
+| Review owner | Nooscape production operator. |
+| Decision | Asked for by the operator, in chat, on 2026-11-06: "Two public A2A registries could add reviewed records with a small adapter variant. add this". The operator had the scout's report in front of them, which records that no reuse licence exists. This decision covers building the adapter and staging the source. Approving it active, running it and publishing a run are the operator's later steps (see Outcome). |
+| Decision timestamp | 2026-11-06, evening (US Central time) |
+
+## Bounds
+
+| Control | Value |
+|---|---:|
+| List requests | 21 per manual run today; at most 50 (the scan limit); a run no more than once a week |
+| Scan limit | 5,000 records. Today: 2,034, and 1,614 were created in the last 30 days. A registry that reports more fails the run, and no record is taken, instead of the rest being dropped without a word. At the recent rate this can bind within weeks to months; raising it is a reviewed change. |
+| Accepted records | At most 96, the oldest first. 86 qualify today, so the ceiling does not bind. |
+| Candidate selection | `visibility=public`, `status=ACTIVE`, `protocolStd=a2a`, `verification_level=verified`, `consecutiveFailures=0`, HTTPS `manifestUrl` without credentials or port, a card not served by `a2a-registry.org` itself, one record per party, the oldest; none on a party that already holds a reviewed record from another source |
+| Excluded by rule | `system-unclaimed` owner records (registry imports with no owner claim), `github_verified` and `unverified` levels, and any record with `is_spotlight`, `is_promoted_top` or a `badge_label` (paid placement must not shape selection or display) |
+| Page payload cap | 1.5 MiB per page (largest page seen: 1,098,456 bytes) |
+| Record cap | 256 KiB per record as compact JSON (largest seen: 185,520 bytes; the Agenstry adapter's 32 KiB cap would reject 39 of 2,034) |
+| Request timeout | 20 seconds per request, at least 1.2 seconds between requests |
+| Evidence retention | 90-day governance Object Lock (the storage layer's, as for every catalog) |
+
+"Party", "oldest first" and the other-source rule are as in the approval for a2aregistry.org (`2026-11-06-a2aregistry-catalog.md`). Here the ceiling does not bind today, and the other-source rule matters more: 562 of this registry's card hosts also appear in a2aregistry.org's list.
+
+## Evidence interpretation
+
+A retained record is **registry discovery metadata**, not an assertion that Nooscape verified the provider, owner, domain, availability, safety or quality. Any registry-reported verification level or check status is preserved as an upstream assertion and may not change the Nooscape publisher state or exceed Tier 2.
+
+## Projection rule
+
+After the first run, an operator must recompute the stored-object SHA-256 and confirm governance retention. Each agent profile requires an explicit source-projection decision. The default is **not projected**.
+
+## Scout evidence (2026-11-06) and the build's check of it
+
+- Full bounded read: 21 requests, 2,034 records, 2,034 distinct ids. `total` in the API says 2,034.
+- `protocolStd`: a2a 2,028, mcp 3, openai 3. All 2,034 are public and ACTIVE.
+- `verification_level`: verified 118, github_verified 909, unverified 1,007.
+- Owner mix: 982 records belong to `system-unclaimed` (imported, no owner). 885 belong to one claimant and all point at one host (a `tcloudbaseapp.com` tenant), all `github_verified`, created within about 17 hours, two to three days before the read. The other 167 records come from 139 organisations.
+- The rule yields 108 records on 97 hosts, 87 parties; the registry's own utility agents (3 records on `www.a2a-registry.org`) are left out, which leaves **86**.
+- Read again through the adapter from the saved pages (download and storage replaced): 21 requests, 2,034 discovered, **86 qualify**, 86 taken, 1,948 not taken. The scout's draft said 110 records and 89 parties: that count was taken before the rule's own exclusion of the 2 spotlight records, and before the registry's own agents were left out.
+- 138 of 1,976 stored card copies carry a `signatures` field. Nothing validates a signature.
+- A keyword check for token promotion matched 7 of 2,034 records and 0 of the 118 verified ones.
+
+## Open questions for the operator
+
+1. The terms say public API access is free but give no reuse licence. Run the pilot on that, or ask the operator first (GitHub Issues only; nothing has been sent)?
+2. `verification_level=verified` is the selection signal. It is the registry's word, backed by a DNS or ANS check Nooscape did not repeat.
+3. One claimant filled 885 slots within days. The rule already leaves that block out (it is all `github_verified`), and one record per party would hold it to one record in any case. A per-owner cap was not added.
+4. Both registries: the two selected sets share about 28 parties. Publish one before running the other so the second leaves the first's parties out.
+
+## Outcome
+
+- [x] Registered in production (2026-11-08 02:00:21 UTC)
+- [x] Approved active by an operator (2026-11-08, before the first run)
+- [x] First bounded snapshot completed (run `149b2fea`, 2026-11-08 02:00:55 UTC: 21 requests, 2,044 read, 90 qualified and taken)
+- [ ] Retained raw objects passed independent SHA-256 recomputation and retention checks (the operator ran Verify evidence before publishing; the result is to be recorded here)
+- [x] Source-level projection decision recorded (public, run `149b2fea`, 2026-11-08 02:02:27 UTC)
+
+**Update, 2026-11-07.** "None on a party that already holds a reviewed record from another source" held at this run only against sources whose records carry an endpoint row. 11 of this run's 90 records repeat an agent that Agenstry already showed. It is fixed by migration 0059 ([the record](../catalog-party-rule-2026-11-07.md)); this source's run has to be run and published again to benefit, and its next run is allowed from 02:00 UTC on 2026-11-15 under the once-a-week limit above.
diff --git a/apps/nooscape-relay/docs/approvals/2026-11-06-a2aregistry-catalog.md b/apps/nooscape-relay/docs/approvals/2026-11-06-a2aregistry-catalog.md
new file mode 100644
index 0000000..ed30123
--- /dev/null
+++ b/apps/nooscape-relay/docs/approvals/2026-11-06-a2aregistry-catalog.md
@@ -0,0 +1,83 @@
+# Source approval: a2aregistry.org community A2A registry
+
+**Reviewed:** 2026-11-06 (the scout's draft of the same day, adjusted to what was built)
+**Source key:** `a2aregistry-public-api`
+**Protocol:** `catalog` (the A2A registry variant of the Agenstry adapter: paged JSON instead of gzip NDJSON, `server/ingestion/a2aRegistryCatalog.ts`)
+**Canonical endpoint:** `https://a2aregistry.org/api/agents`
+**Allowed hostname:** `a2aregistry.org`
+**Staged as:** manual only. Nothing reads the registry until an operator approves the source and runs it.
+
+## Approval scope
+
+Approve a **single bounded, read-only snapshot** of the registry's documented public JSON list API for each manual run an operator makes. There is no scheduled read. Moving the source to a schedule is a separate, reviewed change (a source staged manual only is flipped by a migration, as the chain passes were).
+
+The adapter may read the list endpoint above. It must not follow or invoke any URL found inside a record: no agent-card retrieval from `wellKnownURI`, no call to a record's `url`, no `/api/agents/{id}/chat`, `/recheck`, `/flag` or any other POST, no use of the registry's MCP server, no authentication, no JavaScript execution, no redirect, no browser interaction. A test holds that every request is a GET of the list endpoint with `redirect: "error"`.
+
+## Template fields
+
+| Field | Required record |
+|---|---|
+| Source owner | GitHub user `prassanna-ravishankar`, maintainer of the open-source project `prassanna-ravishankar/a2a-registry`. No legal entity is named on the site. |
+| Contact | GitHub Issues: `https://github.com/prassanna-ravishankar/a2a-registry/issues` (the route the README gives). No email address found. |
+| Protocol | A2A agent cards held in a registry list. Adapter: `catalog`, A2A registry variant. |
+| Approved HTTPS root | `https://a2aregistry.org`, canonical hostname `a2aregistry.org`. |
+| Permitted resource | `GET https://a2aregistry.org/api/agents?limit=100&offset=N` only, with N = 0, 100, 200 and so on up to the reported `total` (7 requests on 2026-11-06, total 649). |
+| Written permission / terms | **No written permission found.** The site has no terms, licence or privacy page: `/terms`, `/privacy`, `/about` and `/license` all return the home page, and the sitemap holds only `/`, `/submit/` and the agent pages. The repository code is MIT licensed (`https://github.com/prassanna-ravishankar/a2a-registry`), which covers code and not registry data. `robots.txt` (`https://a2aregistry.org/robots.txt`) says `User-agent: *` and `Allow: /` with no Disallow line. The API is documented publicly at `https://a2aregistry.org/api/docs`. |
+| Data classification | Public registry metadata only: name, description, author and provider fields, card and service addresses, category, and the registry's own conformance and probe fields as reported. Excluded: any call to an advertised endpoint, `maintainer_notes` as a public field, and anything behind a payment or login. |
+| Cadence | Manual runs only. A run makes 7 requests today (at most 20), at least 1.2 seconds apart. |
+| Expected identity signal | `unverified`. The registry has no identity field (no signed, domain-verified or owner-verified flag). It publishes reachability and conformance observations only, and the adapter keeps them as findings: "registry-reported conformance check: passed", "registry-reported health check: healthy", "registry-reported task probe: working", each followed by "not independently verified by Nooscape". |
+| Review owner | Nooscape production operator. |
+| Decision | Asked for by the operator, in chat, on 2026-11-06: "Two public A2A registries could add reviewed records with a small adapter variant. add this". The operator had the scout's report in front of them, which records that no written permission exists; whether to ask the maintainer first is left open (see open questions). This decision covers building the adapter and staging the source. Approving it active, running it and publishing a run are the operator's later steps (see Outcome). |
+| Decision timestamp | 2026-11-06, evening (US Central time) |
+
+## Bounds
+
+| Control | Value |
+|---|---:|
+| List requests | 7 per manual run today; at most 20 (the scan limit) |
+| Scan limit | 2,000 records. Today: 649, growing by about 31 a week. A registry that reports more fails the run, and no record is taken, instead of the rest being dropped without a word. |
+| Accepted records | At most 96, the oldest first (see below) |
+| Candidate selection | `hidden=false`, `flag_count=0`, `conformance=true`, `is_healthy=true`, `task_conformance.category=WORKING`; HTTPS card and service addresses without credentials or port; a card not served by `a2aregistry.org` itself; one record per party, the oldest; none on a party that already holds a reviewed record from another source |
+| Page payload cap | 2 MiB per page (largest page seen: 825,369 bytes) |
+| Record cap | 128 KiB per record as compact JSON (largest seen: 100,822 bytes; the Agenstry adapter's 32 KiB cap would reject 11 of 649) |
+| Request timeout | 20 seconds per request, at least 1.2 seconds between requests |
+| Evidence retention | 90-day governance Object Lock (the storage layer's, as for every catalog) |
+
+**A party** is the registrable domain of the card's host, and the whole host on a hosting platform where each tenant is its own party (`workers.dev`, `vercel.app`, `onrender.com`, `railway.app`, `fly.dev`, `pages.dev`, `github.io`, `run.app`, `tcloudbaseapp.com`, `netlify.app`, `supabase.co`, `chatgpt.site`, `sslip.io`). Without the rule one vendor's templated agents pass as many (98 records on one domain in the 2026-11-06 list). The list is short and fixed, not the public suffix list: a host it does not know is grouped with its neighbours, which can only drop a record.
+
+**Oldest first.** 285 parties qualify on 2026-11-06 and the ceiling is 96, so which 96 matters. The oldest are taken, so the set does not change from one run to the next as new records arrive, and the newest and least tested are the last to be taken. A record that does not say when it was created sorts last.
+
+**Another source's party.** Before the records are picked, the run reads the endpoint addresses of the records that are public today from other sources and leaves out any party they hold, so the same agent is not shown once for each source that lists it. This counts only records an operator has published, so when two sources overlap, publish one before running the other.
+
+## Evidence interpretation
+
+A retained record is **registry discovery metadata**, not an assertion that Nooscape verified the provider, owner, domain, availability, safety or quality. The registry's `conformance`, `is_healthy` and `task_conformance` values are its own probe results at one moment. They are preserved as upstream observations. They may not change the Nooscape publisher state or exceed Tier 2.
+
+## Projection rule
+
+After the first run, an operator must recompute the stored-object SHA-256 and confirm governance retention. Each agent profile requires an explicit source-projection decision. The default is **not projected**.
+
+## Scout evidence (2026-11-06) and the build's check of it
+
+- Full bounded read of the list: 7 requests, 649 records, 649 distinct ids. `total` in the API and the home page both say 649.
+- 328 records pass the registry's own flags; on 328 card hosts; 285 parties.
+- Read again through the adapter from the saved pages (download and storage replaced): 7 requests, 649 discovered, **285 qualify** (the scout's figure, reproduced), 96 taken, 553 not taken. The 189 that qualified past the ceiling are counted with the 553.
+- Probes are fresh: median `last_health_check` age 0.3 hours, oldest 21.8 hours.
+- Largest identical skill-set clusters: 46, 29 and 12 records. Two vendors account for 134 records (98 and 36).
+- A keyword check for token promotion matched 4 of 649 records.
+
+## Open questions for the operator
+
+1. No written permission exists. Run the pilot on robots-allows plus a documented public API, or send the maintainer a courtesy request first (GitHub Issues only; nothing has been sent)?
+2. The registry has no identity signal. Probe results are the selection signal in place of Agenstry's signed, domain-verified and owner-verified flags.
+3. The ceiling is 96, which binds at once (285 qualify). Smaller for the pilot, or the same?
+
+## Outcome
+
+- [x] Registered in production (2026-11-08 02:02:43 UTC)
+- [x] Approved active by an operator (2026-11-08, before the first run)
+- [x] First bounded snapshot completed (run `310e2bd7`, 2026-11-08 02:02:52 UTC: 7 requests, 655 read, 290 qualified, 96 taken)
+- [ ] Retained raw objects passed independent SHA-256 recomputation and retention checks (the operator ran Verify evidence before publishing; the result is to be recorded here)
+- [x] Source-level projection decision recorded (public, run `310e2bd7`, 2026-11-08 02:03:35 UTC)
+
+**Update, 2026-11-07.** "None on a party that already holds a reviewed record from another source" held at this run only against sources whose records carry an endpoint row. 25 of this run's 96 records repeat an agent that Agenstry or api.a2a-registry.org already showed. It is fixed by migration 0059 ([the record](../catalog-party-rule-2026-11-07.md)); this source's run has to be run and published again to benefit.
diff --git a/apps/nooscape-relay/docs/catalog-party-rule-2026-11-07.md b/apps/nooscape-relay/docs/catalog-party-rule-2026-11-07.md
new file mode 100644
index 0000000..a370412
--- /dev/null
+++ b/apps/nooscape-relay/docs/catalog-party-rule-2026-11-07.md
@@ -0,0 +1,54 @@
+# The cross-source party rule, now holding between catalog sources
+
+A registry run leaves out a party that another source's public record already holds, so the same agent is not published once for each source that lists it ([the A2A registries record](./a2a-registries-2026-11-06.md), "What a run does", step 3). On 2026-11-07 the operator published the three catalog sources and the count of public records went from 76 to 313. About one in nine of the new records was a second or third copy of an agent another source already showed. The rule had not been working between catalog sources. This record says why, what was changed, and what the operator does next.
+
+**Status.** Built on 2026-11-07 on branch `fix/catalog-party-rule`. Migration 0059 adds one nullable column and the boot runner applies it before traffic. It publishes nothing and changes no public record by itself: the copies already public stay until the operator re-runs and publishes the two registries (see "What is left").
+
+## What was found
+
+The operator staged, approved, ran and published the sources between 01:58 and 02:03 UTC on 2026-11-08 (7:58 to 8:03 PM Central on the 7th). Each run went as the approvals describe, with no failure:
+
+| Source | Run | Read | Taken | Public |
+|---|---|---:|---:|---|
+| Agenstry catalog | `b916090a` (the daily run of 04:01 UTC on the 7th) | 299,318 lines | 99 | 01:58:17 |
+| api.a2a-registry.org | `149b2fea`, 21 requests in 42 seconds (staged 02:00:21) | 2,044 records, 90 qualify | 90 | 02:02:27 |
+| a2aregistry.org | `310e2bd7`, 7 requests in 12 seconds (staged 02:02:43) | 655 records, 290 qualify | 96 (the ceiling) | 02:03:35 |
+
+The public records read 313 afterwards, every one with retained evidence. Counting them by display name, 31 names are used more than once and cover 67 records, and 30 of those 31 groups have identical summaries. Keeping one record in each group leaves 36 redundant copies: 25 from a2aregistry.org (17 of agents Agenstry shows, 8 of agents api.a2a-registry.org shows) and 11 from api.a2a-registry.org (all of agents Agenstry shows), none from Agenstry, which went first. That is 277 distinct agents among the 313.
+
+## Why the rule saw nothing
+
+The lookup the registry run makes before it picks records, `listReviewedEndpointUrlsOfOtherSources`, read the endpoint rows of the public records of other sources. A catalog record has no endpoint row, on purpose: `persistCatalogObservation` passes no endpoint address, so that an advertised address "can support a future merge review but never takes over a direct identity". So the rule saw direct A2A sources and no catalog source at all, and the three sources it was written for are all catalog sources.
+
+The test of the lookup did not catch it because it seeded endpoint rows for sources whose protocol is `catalog`, which production never writes. It passed on a shape the real data does not have. The record and both approvals said the rule held; it held only against direct sources.
+
+## What was considered
+
+| Way | Verdict | Why |
+|---|---|---|
+| Write an endpoint row for every catalog record | No | The catalog design says an advertised address never becomes an endpoint of the agent. Endpoint rows are read for the profile, for the domain checks and for the census audit, and the persistence writes the protocol `a2a` on them, so a catalog record would look like a direct one. (The hourly checks job would not ask them: it asks only sources whose protocol is in `CHECKABLE_SOURCE_PROTOCOLS`, which is `a2a` alone. That is a guard, and not a reason to put the rows there.) |
+| Read the host from each stored object at lookup time | No | The host of a registry record's card is only in the stored object. Reading a few hundred objects from storage in the middle of a run couples the run to the object store and is slow. |
+| Keep the host of the card on the public snapshot | Yes | One nullable column, read by the lookup and by nothing else, written at the same moment as the snapshot. |
+
+## What changed
+
+- **Migration 0059** adds `agent_public_snapshots.partyHost` (nullable, 255). The second statement fills it for the Agenstry feed's snapshots from their identity (`:`), so the rule holds against Agenstry from the first run after the deploy. It leaves the registries' rows and any host already there alone.
+- **`persistCatalogObservation`** writes the host of the card address, or of the service address when the card address names no host (`server/partyHost.ts`), on the snapshot, on insert and when the record is seen again. It still writes no endpoint row.
+- **The lookup** is now `listReviewedAddressesOfOtherSources`. It returns an endpoint row's address as before and, for a snapshot with a host, `https://host/`, under the same gate (an active source, a public decision, the approved run, not withdrawn). The registry run is unchanged apart from the name.
+
+## Held by tests
+
+- `partyHost.test.ts`: the host in lower case without port, credentials, path or query, null for an address that names none or a host that does not fit the column.
+- `registryHostSkip.integration.test.ts` (MySQL 8 and MariaDB 10.11): a catalog record with no endpoint row is held by its host and left out for its own source; every condition that keeps a record out (withdrawn, paused source, observation outside the approved run, decision not public) holds for the host as for the endpoint; a record written by the real persist path gets its host, a service-address fallback, no endpoint row, and is held once its run is public; migration 0059's second statement fills an Agenstry snapshot from its identity and leaves a registry's and a filled one alone.
+- The journal and snapshot parity tests for the new migration.
+
+## What is left
+
+The registries' existing rows have no host, because the host of their card is in the stored object. They get one the next time that source runs and an operator publishes the run. In this order, after the deploy:
+
+1. **api.a2a-registry.org**: Run once, Verify evidence, Publish reviewed run. The run now leaves out the parties Agenstry holds. Its approval says no more often than once a week; its first run was 02:00 UTC on 2026-11-08, so a second one before 02:00 UTC on 2026-11-15 (8 PM Central on the 14th) is an exception that only the operator can make (21 requests, 1.2 seconds apart).
+2. **a2aregistry.org**: the same three steps, after the first, so that it also leaves out the parties api.a2a-registry.org now holds.
+
+Each run replaces the source's public run; the old observations stay as retained evidence. Until both are done the copies stay public. The operator may instead withdraw the redundant records one at a time (a reversible, append-only ledger), and the list of the 36 with the copy to keep was handed to the operator outside the repository.
+
+Not done here: Agenstry lists some parties twice under two hosts of one registrable domain (its rule is one record per host, not per party); a record whose card moves to another host keeps its first host on its old snapshot until the run that sees it again; and two different parties that happen to share a generic name are not this rule's business.
diff --git a/apps/nooscape-relay/docs/census-today-2026-11-06.md b/apps/nooscape-relay/docs/census-today-2026-11-06.md
new file mode 100644
index 0000000..77c8a86
--- /dev/null
+++ b/apps/nooscape-relay/docs/census-today-2026-11-06.md
@@ -0,0 +1,66 @@
+# The Today block on the registry census reports
+
+Each registry census report is a measurement of one day: about 15 read-only queries run once, the figures pasted into a data file, the prose written against them and held by tests. That is what makes the reports quotable, and it is also why they go out of date. This adds one block to the top of each report, **Today**: the counts of the report's first table, taken from the directory as it stands now, beside the figures the report measured and the change between. The report below it does not change.
+
+**Status.** Built on 2026-11-06 on branch `feat/census-today`. **No migration, no job and no new setting.** It is a read the directory already knows how to make and cache.
+
+**Decided:** 2026-11-06, by the operator, in chat: "update each chain registry census data page daily". I answered that these pages are dated documents and offered two ways: a Today block on every page with the dated body kept (my recommendation), or fully live pages with the prose generated from the numbers. The operator answered "1". I built the first as a cached read of the directory and not as a stored daily row (see below).
+
+## What it shows
+
+A table with the lines of the report's own first table and three columns after the label: the figure the report measured on its date, the count today, and the change (`+73`, `-5`, or `no change`). Above it, one sentence says the report is a measurement of its date and does not change, and when the registry's pass last finished (UTC, to the minute). Below it, for a registry that keeps its registrations in rows, one sentence says how many are held out of the directory today and in which of four states (no usable profile link; shares a link, host or wallet with many others; a name that is only a number; not yet sorted), and for a chain whose ratings count has read the whole history, how many ratings its reputation registry holds.
+
+A count is what the report's queries count (`docs/monad-census-queries-2026-11-01.sql`, Q0, Q0b and Q1), so a figure and the report's differ only because the registry moved:
+
+| Count | Where it comes from |
+|---|---|
+| Registrations the directory has stored | the rows of the registry's source |
+| Registrations counted past a host's cap and not stored | the overflow counts of the source |
+| Registrations the directory counts on the chain | those two added |
+| Registrations the directory lists | the entries of the source an operator has not hidden |
+| Registering wallets | different registering wallets among the rows |
+| Registrations with an https link | rows with a host |
+| Host names of those links | different hosts among the rows |
+| Different profile links | different profile-link hashes among the rows (the empty link counts as one, as in the census) |
+
+A registry that keeps entries (Robinhood Chain) is counted from its visible entries: listed, wallets, https links and host names. A count the registry does not have is left out of the block, and a line of a report's table the answer has no count for is left out and never shown as zero.
+
+## How current it is
+
+The counts are read through the directory's read cache, which the chain passes' writes (registry rows, directory entries, ratings) mark stale, so a count is as current as the chain's last pass and the time of that pass is on the page. The passes run from hourly (Arc) to daily (Monad, Gnosis), so "daily" is the slowest a Today figure can be. The block is fetched once when the page opens and kept for five minutes.
+
+## Why a read and not a stored daily row
+
+I first offered a daily job that stores a row for each chain. The counts turned out to be five index scans of one source's rows, which the directory already reads and caches for the chain tabs (`readRegistryCounts`, `readAgentRegistryProfile`). Measured on production on 2026-11-06 (read-only, the same statements): for Base, 106,493 rows, the five took 28, 258, 192, 288 and 3 ms; for BNB Chain, 408,740 rows, the four on the rows took 126, 498, 797 and 478 ms. So the read costs the largest registry about two seconds of database time once, and the cache serves it after. A stored row would add a table, a migration and a job to produce a figure that is already current. What a stored row would add is **history**: a series of daily counts. This does not keep one. If the operator wants a trend, it is a small table and a daily step, and the read here is what the step would run.
+
+## Which reports have it
+
+Arc (both reports), Base, Ethereum, Monad, Gnosis, Robinhood Chain, and BNB Chain's registry report, which shows the one count the report and the directory make the same way (the listed entries; the report replayed the chain for its registrations, so its figure is not the directory's stored count).
+
+Not done:
+
+- **Solana.** The report covers three registries in one table; the block's shape is one column of counts for one registry. It needs its own small design.
+- **BNB Chain ratings.** A report about ratings, not a registry census.
+
+## A report measured before the way rows are kept changed
+
+The first look at the live pages, on 2026-11-07, found one comparison that misleads: the Base report was measured on 2026-10-21, before the rows already stored past a host's cap were cleared the same day (`docs/flood-host-cap-2026-10-21.md`). Its stored registrations, wallets, https links and profile links then counted a platform's flood that the directory now counts and does not store, so the block showed 389,902 stored registrations against 106,494 today, and a change of -283,408, although no registration was lost. The block takes an optional **note**, said under the table, and Base's page gives one that says exactly this. The other reports were measured after their caps or are not affected by one: Ethereum, Monad and Gnosis and Arc's second report show the registrations counted past a cap as a line of their own, Arc's first report and Robinhood Chain's changed by growth, and BNB Chain's one count is not capped. A test holds that the note is on Base's page and on no other.
+
+## What it leaves alone
+
+The reports: their figures, their prose and their tests are unchanged, and the report tests still pass as they were (the block renders nothing where there is no query client, which is how those tests render a page). The block holds counts only, so no name, wallet, host or link is on it. It fails closed: a read that has not answered, an answer with no counts, a chain whose switch is off or whose source is not active, or a failed read each leave the report alone.
+
+## Held by tests
+
+- `shared/censusToday.test.ts`: the chains, each extra chain's source and ratings key against the chain table, the switches, the labels of the counts.
+- `censusToday.integration.test.ts` (MySQL 8 and MariaDB 10.11): every count against rows, overflow, entries and ratings seeded by hand, including the hidden entry that is not listed, the empty profile link that is one link, a ratings count that has not read the whole history, a paused source, a chain with no source, counts only in what is returned, and the cache.
+- `censusTodayRoute.test.ts`: the public read through the router: a chain whose switch is off, the two that are always on, a chain with no report, a source that is not active, and a failed read.
+- `censusTodayModel.test.ts`, `CensusToday.test.ts`: the lines and the change, the words, each case of fails-closed, the request made, and counts only.
+- `censusTodayPages.test.ts`: each report carries the block for its own chain right after the lines that say when it was measured, with a line for each line of its first table, and without the block where there is no query client.
+- Planted changes: 38, each caught. A count's source, label or definition changed, a switch or a cache key dropped, the change reversed or unsigned, the block asking without a query client or in a batch, each fail-closed case, and the block taken off each report, put on the wrong chain or reading the wrong count.
+
+## Open
+
+- On 2026-11-07, after the deploy, the block was drawn on all eight live reports in headless Chrome (no console error, nothing overflowing, plausible changes), which is how the Base comparison above was found. Before that it was drawn in headless Chrome by a built server against a scratch database in the shape of the real one, at 1440 and 375 pixels: it draws on Robinhood Chain, Base and Arc (Gnosis's page has the same two lines as Monad's and is held by the same test), sits right after the lines that say when the report was measured, overflows nothing and leaves the console quiet; and it is absent, with the report intact, on Ethereum (paused source), Monad and BNB Chain (no source). The first look at the deployed pages is the check above.
+- No history is kept, as above.
+- Solana, as above.
diff --git a/apps/nooscape-relay/docs/gnosis-census-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-census-2026-11-06.md
new file mode 100644
index 0000000..bbdc6ce
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-census-2026-11-06.md
@@ -0,0 +1,219 @@
+# Gnosis registry census: the measurement (2026-11-06)
+
+This is the measurement behind the report at `/field/gnosis-registry-2026-11-06`. It counts every registration the directory has stored for the ERC-8004 identity registry on Gnosis (chain id 100) on 2026-11-06, listed or held out. It is a set of aggregate counts: no name, no wallet address, no host name and no profile link was selected, and nothing was fetched from any site for it.
+
+## How it was done
+
+[The queries](./gnosis-census-queries-2026-11-06.sql) were run against the production database on 2026-11-06 at about 23:30 UTC, after the registry pass that finished at 21:12 UTC. Query 0 shows the last pass that succeeded, and that pass was started by hand: Gnosis's source has been read by a scheduled pass once a day since the deploy at 23:05 UTC that day ([the record](./gnosis-erc8004-2026-11-06.md), section 10), and the first scheduled pass had not finished when the queries were run. Every statement is a read-only SELECT. The output below is as it came back.
+
+The queries count every registration the chain pass has stored for the source (the table `agent_directory_registry_rows`), listed or held out, because the listing rules read exactly those rows: a profile link shared by 2 or more registrations, a host name shared by 50 or more, a wallet that registered 10 or more. Query 0 shows that none is hidden, so the public count of listed entries on 2026-11-06 (41, `GET /api/v1/stats` at 23:17 UTC) is the same as the 41 entries in query 0. The registrations are the ones the directory has read from the registry's event log, from the deploy block to the finalized head.
+
+A host name that holds more than 2,000 rows keeps its first 2,000 in chain order (`FLOOD_HOST_ROW_CAP` in `server/ingestion/erc8004Chains.ts`, [the record](./flood-host-cap-2026-10-21.md)) and the rest are counted in `agent_directory_registry_overflow` and not stored. Query 0b reads that count: 1 host name is past the cap, 1,851 registrations were counted and not stored for it, and the directory counts 4,179 registrations on the chain, 2,328 stored and 1,851 counted. Every other figure here counts the 2,328 stored rows, so the 1,851 are in none of them: the host name holds more than query 4 shows, 3,851 in all, and the wallets, profile links, names and dates of those registrations are in no row.
+
+What each column means:
+
+- **wallet**: the `registrant` the directory records, which is the owner named in the registration event. It is set when the registration is first seen and is not changed when it is transferred, so it says who registered and not who holds it now.
+- **host**: the host name of an https registration link (`locatorHost`). A registration whose link is not an https address has no host name.
+- **profile link**: the registration link recorded on the chain, kept as a hash (`profileUriHash`). A registration that set no link at all has the hash of the empty text, which the queries count as one value and leave out of the link buckets.
+- **placeholder name**: `Agent #`, the name the pass gives a registration that has none. A registry row takes a name only from registration data written into the chain event itself. The directory also reads a name for some listed entries from the file their registration link names (the names step, which Gnosis joined on 2026-11-06). That name is written to the entry and not to the registry row, so these queries do not count it.
+- **transfer after the mint**: a transfer of the registration's token after the mint (`secondary` in the activity ledger).
+- **hand-out**: a transfer after the mint that is sent from the wallet the registration was minted to, within about an hour of the mint (708 blocks, `handoutBlockWindow` in `server/ingestion/erc8004Chains.ts`). It is a timing fact and says nothing about why.
+- **profile-link edit**: an update of the registration's link after the mint (`uri_update`).
+- **UTC day and month**: the date of the mint block, worked out from blocks whose times are known. Gnosis's block time is close to constant, about 5.1 to 5.2 seconds a block, with a slot missed now and then, so one rate would not date a block well, and the dates follow the chain's own block times. A day and a month are both dated through the same 19 stretches of 250,000 blocks, the last one shorter, so there is no separate rate for a day: a block's date is the time of the start of the stretch it falls in, plus that stretch's seconds a block for each block after the start. The first stretch starts at the registry's first block, 44,505,010 (2026-02-04 09:49:00 UTC), the last runs to the finalized block, 49,146,890 (2026-11-06 23:11:40 UTC), and the queries file lists all 19, each with a start block, its time and its seconds a block. Every time is a block header timestamp read from a node on 2026-11-06. A date is within about 148 minutes of the real time at the worst and 1.6 minutes at the median (checked against the block times in the logs of all 4,179 registrations, stored or not), so a registration made that close to midnight, or to the end of a month, can land on the next one.
+- **listing state**: what the pass stores for each registration (0 no usable link, 1 listed, 2 held out as shared, 3 waiting to be classified, 4 a name that is only a number). Query 7 reads it and works out which rule reached a held-out registration first, in the order the rules run.
+
+## Results
+
+### Query 0: as of when
+
+The registrations stored, how many are hidden, when a pass first and last saw one, when the source last succeeded, and how many entries the directory holds for the registry. The first-seen time is when the pass read them, not when anything was registered.
+
+| registrations | hidden_registrations | first_seen_min | last_seen_max | source_last_success | entries_in_the_directory |
+|---|---|---|---|---|---|
+| 2328 | 0 | 2026-11-06 21:11:32 | 2026-11-06 21:12:30 | 2026-11-06 21:12:38 | 41 |
+
+### Query 0b: the flood cap
+
+How many hosts went past the 2,000 rows a host may keep, how many registrations were counted and not stored for them, and the largest host's. The registrations on the chain, as the directory counts them, are query 0's registrations plus the second figure here.
+
+| hosts_past_the_cap | registrations_counted_not_stored | largest_host_overflow |
+|---|---|---|
+| 1 | 1851 | 1851 |
+
+### Query 1: size and surface
+
+| registrations | distinct_wallets | no_wallet | with_https_host | distinct_hosts | distinct_profile_links | no_uri_set | mint_measured |
+|---|---|---|---|---|---|---|---|
+| 2328 | 52 | 0 | 2051 | 8 | 2295 | 8 | 2328 |
+
+### Query 2: how many registrations one wallet made
+
+Wallets and registrations in each size bucket, and the largest in the bucket. The buckets break at 10 (the listing rule), 50, 100 and 1,000. No wallet made 50 to 999, so those two buckets do not come back.
+
+| registrations_per_wallet | wallets | registrations | largest_in_bucket |
+|---|---|---|---|
+| 1 | 21 | 21 | 1 |
+| 2-9 | 5 | 22 | 8 |
+| 10-49 | 25 | 285 | 34 |
+| 1000+ | 1 | 2000 | 2000 |
+
+### Query 3: the 25 largest wallets that made 50 or more registrations
+
+By rank and never by address: how many each made, how many of those have an https link, how many sit on the wallet's own largest host name, how many host names it uses and how many profile links. Only 1 wallet made 50 or more, so 1 row comes back.
+
+| wallet_rank | registrations | with_https_host | on_its_largest_host | distinct_hosts | distinct_links |
+|---|---|---|---|---|---|
+| 1 | 2000 | 2000 | 2000 | 1 | 2000 |
+
+### Query 3b: all the wallets that made 50 or more registrations
+
+| wallets_with_50_or_more | registrations_on_them | largest_wallet |
+|---|---|---|
+| 1 | 2000 | 2000 |
+
+### Query 4: host names by size
+
+The ten largest host names, by rank and never by name. A host past the flood cap is shown at the 2,000 rows it keeps. Only 8 host names exist among the stored registrations, so 8 rows come back and the table holds all of them.
+
+| host_rank | registrations |
+|---|---|
+| 1 | 2000 |
+| 2 | 33 |
+| 3 | 11 |
+| 4 | 3 |
+| 5 | 1 |
+| 6 | 1 |
+| 7 | 1 |
+| 8 | 1 |
+
+### Query 4b: all the host names that hold 50 or more registrations
+
+| hosts_with_50_or_more | registrations_on_them | largest_host |
+|---|---|---|
+| 1 | 2000 | 2000 |
+
+### Query 5: profile links held by several registrations
+
+Profile links and registrations in each size bucket (a link of its own is the bucket 1), the largest in the bucket, and how many of the registrations in a bucket have an https host. No link and no hash is returned. The empty link (no URI set) is left out of the buckets and counted in query 1. No link is used by 50 or more registrations, so the buckets 50-999 and 1000+ do not come back.
+
+| registrations_per_link | links | registrations | largest_in_bucket | registrations_with_https_host |
+|---|---|---|---|---|
+| 1 | 2284 | 2284 | 1 | 2015 |
+| 2-9 | 9 | 25 | 5 | 25 |
+| 10-49 | 1 | 11 | 11 | 11 |
+
+### Query 6: names
+
+How many registrations still carry the placeholder the pass gives a registration with no name, how many names are distinct, and how many registrations share a name with others. Group sizes only; no name is returned.
+
+| registrations | placeholder_names | distinct_real_names | registrations_sharing_a_name | registrations_in_names_shared_by_10_or_more | largest_name_group |
+|---|---|---|---|---|---|
+| 2328 | 2064 | 244 | 40 | 0 | 2 |
+
+### Query 7: what the listing rules did
+
+The registrations in each state the pass stores, and for the ones held out as shared, which rule reached them first, in the order the rules run. No registration is in state 3 (waiting), so that row does not come back. One registration is in state 4 (a name that is only a number): it is not listed and is not counted under any of the three rules.
+
+| listing | state | first_rule | registrations |
+|---|---|---|---|
+| 0 | no usable link | - | 9 |
+| 1 | listed | - | 41 |
+| 2 | held out as shared | host shared by 50 or more | 2000 |
+| 2 | held out as shared | profile link shared by 2 or more | 36 |
+| 2 | held out as shared | wallet that registered 10 or more | 241 |
+| 4 | name is only a number | - | 1 |
+
+### Query 8: transfers and edits, from the totals kept for each registration
+
+| registrations | mint_measured | covered_by_the_walk | transfers_after_mint | handouts | registrations_that_changed_hands | registrations_handed_out | profile_link_edits | registrations_edited |
+|---|---|---|---|---|---|---|---|---|
+| 2328 | 2328 | 2328 | 5 | 4 | 5 | 4 | 49 | 24 |
+
+### Query 9: the activity ledger
+
+The events of the source by kind, the registrations they belong to, and the oldest and newest block.
+
+| kind | events | registrations | oldest_block | newest_block |
+|---|---|---|---|---|
+| mint | 2328 | 2328 | 44506402 | 48805644 |
+| secondary | 5 | 5 | 45119618 | 45211076 |
+| uri_update | 49 | 24 | 44720956 | 47894843 |
+
+### Query 10a: when the registrations were made, by UTC day
+
+The days that have a registration among the 21 days that end on the day of the newest registration, dated through the 19 stretches of query 10b. A day with none is not shown. The newest registration is dated 2026-10-17, 20 days before the day of the pass (2026-11-06), so the window ends there and not on the day of the pass.
+
+| utc_day | registrations |
+|---|---|
+| 2026-10-09 | 1 |
+| 2026-10-17 | 1 |
+
+### Query 10b: when the registrations were made, by UTC month
+
+Counted forward from the registry's first block, 44,505,010 (2026-02-04 09:49:00 UTC), through 19 stretches of blocks. The registry began on 2026-02-04, so 2026-02 is not a whole month of it. A month with no stored registration does not come back: 2026-05, 2026-07 and 2026-09 are not in the table, and neither is 2026-11, the month of the pass.
+
+| utc_month | registrations |
+|---|---|
+| 2026-02 | 2015 |
+| 2026-03 | 273 |
+| 2026-04 | 23 |
+| 2026-06 | 14 |
+| 2026-08 | 1 |
+| 2026-10 | 2 |
+
+## Checks the figures pass
+
+`client/src/pages/gnosisRegistryReport.test.ts` holds each of these:
+
+- Query 1's registrations equal query 0's, query 6's, query 8's and the mints in query 9, and query 0's entries equal query 7's listed row. Query 0b's counted registrations and query 0's registrations make the 4,179 the directory counts on the chain, which is also the public count.
+- Query 2's wallets add up to query 1's 52 and its registrations to 2,328. Query 3b's wallet and registrations are the largest bucket of query 2 (1000+), the only one that reaches 50, and query 3 is that one wallet.
+- Query 4 is in order, its 8 host names are the 8 query 1 counts, and they add up to the 2,051 registrations with an https link. Its largest holds the 2,000 rows a host may keep, and query 0b counts one host past the cap. Query 4b's one host name holds the same 2,000, and the wallet of query 3 has its 2,000 registrations on one host name, so they are that host name's.
+- Query 5's links add up to query 1's different links (not counting the registrations that set none), and its registrations plus the ones that set none add up to 2,328.
+- Query 7's states add up to 2,328. Query 8's transfers, hand-outs and edits agree with query 9's events and registrations. Query 10b's months add up to 2,328, and query 10a's days add up to no more than the months they fall in.
+- The 19 stretches in the queries file run in order from the registry's first block to the finalized block, meet end to end, and are the same for the days and the months. The oldest and the newest mint block of query 9 are dated, through them, in the first month of query 10b and on the last day of query 10a.
+
+## Figures worked out from these
+
+Each is computed from the rows above in `client/src/lib/gnosisRegistryReport.ts`, and the page states no other figure. A share is given to one decimal place and rounded to the nearest.
+
+- 41 of the 2,328 registrations (1.8%) are listed, which is 1.0% of the 4,179 the directory counts on the chain. 9 (0.4%) have no usable profile link. 2,277 (97.8%) are held out as shared: 36 reached first by a shared profile link, 2,000 by a shared host name and 241 by a wallet that registered 10 or more. 1 carries a name that is only a number, and is not listed.
+- 26 wallets made 2,285 of the 2,328 registrations (98.2%), and 1 wallet made 2,000 (85.9%).
+- 21 of the 52 wallets (40.4%) registered one each, and together they made 21 registrations (0.9%). The largest bucket, 1000+, holds one wallet. No other wallet made more than 34.
+- The one wallet that registered 50 or more made 2,000 registrations. All 2,000 are on one host name, and it gave each of them a profile link of its own. That host name is the largest, and every registration stored for it was made by this wallet.
+- 2,051 of the 2,328 registrations (88.1%) have an https link, on 8 host names. The largest host name holds 2,000 of them (97.5%), which is 85.9% of all the registrations. The next holds 33 (1.6%) and the third holds 11. The two largest together hold 2,033 (99.1%). One host name holds 50 or more registrations, 2,000 of them (97.5% of those with an https link and 85.9% of all).
+- The largest host name is at the 2,000 rows a host may keep. Query 0b counts 1,851 more registrations for it, so it holds 3,851 in all, 92.2% of the 4,179. The 1,851 are 44.3% of the 4,179.
+- 2,284 of the 2,294 different profile links (99.6%) are used by one registration each. 10 are used by more than one, by 36 registrations (1.5%). No profile link is used by 50 or more registrations, and the most any one link has is 11 (0.5% of all the registrations). 8 registrations set no profile link.
+- 2,064 of the 2,328 registrations (88.7%) carry the placeholder name. The other 264 carry 244 distinct names, and 40 registrations (1.7%) share a name with at least one other. No name is shared by 10 or more, and the largest group is 2.
+- 5 transfers after the mint are recorded, on 5 registrations (0.2%). 2,323 registrations (99.8%) have had none. 4 hand-outs are recorded, on 4 registrations (0.2%), and the other transfer came later than the first hour or from another wallet.
+- 49 profile-link edits are recorded, on 24 registrations (1.0%).
+- 2,015 of the registrations (86.6%) were made in 2026-02, the registry's first month. Of the 8 whole months after it, 5 have a registration, between 1 and 273 each and 313 in all (13.4%), and 3 have none: 2026-05, 2026-07 and 2026-09. 2026-11, the month of the pass, has none so far. The 2 days from 2026-10-09 to 2026-10-17 that have a registration hold 2 registrations (0.1%), one each, and the other 19 of the 21 days that end on 2026-10-17 had none. The newest stored registration is dated 2026-10-17, 20 days before the day of the pass, 2026-11-06.
+
+## Figures that are not from the queries
+
+- 41, the public count of listed entries, and 4,179, the public count of registrations on the chain, read from `GET /api/v1/stats` on 2026-11-06 at 23:17 UTC. No registration is hidden, so the first is the same as query 0's 41 entries, and the second is query 1's 2,328 stored registrations plus query 0b's 1,851 counted.
+- The two block times (44,505,010 at 2026-02-04 09:49:00 UTC and 49,146,890 at 2026-11-06 23:11:40 UTC), read from a node's block headers on 2026-11-06. The first is also in the comment of `GNOSIS_CHAIN` in `server/ingestion/erc8004Chains.ts`. The start block, start time and seconds a block of each of the 19 stretches in query 10a and query 10b were read the same way and are in [the queries](./gnosis-census-queries-2026-11-06.sql).
+- 148 minutes and 1.6 minutes, the worst and the median distance of a date from the real block time, over the 4,179 registrations whose logs carry one (the registrations on the chain, stored or not), measured on 2026-11-06 against the stretches in the queries file.
+
+## Running it again
+
+The report is a snapshot, so a later census is a new dated report and this one stays at its address.
+
+- Run the 15 statements of the queries file in one sitting against the production database, in a read-only session, so the figures are one moment. Keep each result grid as it came back. None returns a name, a wallet, a host or a link.
+- Query 10a and query 10b date the mint blocks through the 19 stretches in the file. Past the finalized block of this census the last stretch carries on at its own rate, so a registration made after it is dated by extrapolation and the error grows with the distance. For a later census, read the finalized block and the time of the block at every 250,000th block from the registry's first block from a node, write the stretches the way the file does (a start block, its time and the seconds a block to the next start), and check the dates against the block times in the logs of the registrations again.
+- Put each returned row into `MEASURED` in `client/src/lib/gnosisRegistryReport.ts`, the public counts into `PUBLIC` and the block facts into `CHAIN`. `client/src/pages/gnosisRegistryReport.test.ts` then holds the page and this document to the data. Several sentences of the report are written for this data (one wallet, one host past the cap, one transfer, two days, months with none), and the test fails when the data stops being that, so the words have to be checked against the new figures.
+
+## What this measurement cannot say
+
+- **It is not a count of people.** A platform can register many agents under one wallet, and one person can use many wallets. The wallet figures are the registering wallets the directory records.
+- **The registering wallet is not the holder.** It is the address named in the registration event and is not changed when the registration is transferred. 4 registrations were handed out within about an hour of the mint, so for those the wallet figures say who registered and not who holds.
+- **It says nothing about whether an agent runs.** Nothing was asked of any address.
+- **A hand-out is a timing fact.** It is a transfer out of the wallet a registration was minted to, within about an hour of the mint. It does not say why the registration was sent on or who received it.
+- **A shared link, host name, wallet or name is a recorded fact.** It does not say that one person is behind the registrations, or that anything is wrong. A registration the directory holds out is held out as shared, and is not called fake.
+- **It counts the registrations the directory has stored.** That is 2,328 of the 4,179 the directory counts on the chain. The other 1,851 were counted past a host's cap and are in no figure but query 0b's, so the host name, wallet and link figures are for the stored rows. Query 9 has a mint for each stored registration, and the oldest is at block 44506402. This census does not compare the count with a total from the registry itself.
+- **The stored registrations are not a sample of the chain.** A host name past the cap keeps its first registrations in chain order, so the figures for hosts, wallets, links, months and days describe the stored rows and not all 4,179. The registrations counted and not stored have no wallet, link, month or day in this census. Most of the stored rows, 2,000 of 2,328, are the first 2,000 of one host name, all made by one wallet.
+- **The months and days are the most affected.** The registrations counted and not stored were made after the 2,000 their host kept, so the registry's own history is longer than the table shows, and the months after the first look thinner here than they were on the chain: [the chain record](./gnosis-erc8004-2026-11-06.md) (section 2) counts the chain's months from all 4,179 registrations, with the dates interpolated from block times, and each of its months is larger than the same month here.
+- **Ratings are not measured here.** The directory also reads the reputation registry for a count of ratings, which the Gnosis tab and the API show once it has read the registry's whole history, and this census does not use it.
+- **Names and links are written by the registrants** and have not been verified.
+- **It is one moment.** Gnosis is read by a scheduled pass once a day and the chain is still adding registrations, so the figures are as of the pass named in the header of the report. The report is dated and will be redone and dated again.
+- **The dates are worked out.** A registration's day and month come from its mint block and block times read from the chain, within the margins above, and not from a clock the chain keeps for the registration.
+- **The listing rules were not changed.** They are the numbers written for the BNB Chain registry. This census says what they did on Gnosis and does not say whether they are right for it.
diff --git a/apps/nooscape-relay/docs/gnosis-census-queries-2026-11-06.sql b/apps/nooscape-relay/docs/gnosis-census-queries-2026-11-06.sql
new file mode 100644
index 0000000..44c9954
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-census-queries-2026-11-06.sql
@@ -0,0 +1,395 @@
+-- Gnosis registry census: measurement queries (read-only).
+--
+-- Run these against the Nooscape database. Every statement is a SELECT. None writes anything, and none returns a name, a wallet
+-- address, a host name or a profile link: the output is counts and size buckets only, so it is safe to paste back.
+--
+-- The registry is the ERC-8004 identity registry on Gnosis (chain id 100): every registration the chain pass has stored for the
+-- source whose protocol is erc8004_gnosis, listed or held out, in the table agent_directory_registry_rows. The listing rules read
+-- exactly these rows (a profile link shared by 2 or more registrations, a host shared by 50 or more, a wallet that registered 10
+-- or more), so the census counts them too. Q0 says how many of them are hidden; the rest of the statements count every row,
+-- hidden ones included, as the listing rules do. A host that holds more than 2,000 rows keeps 2,000 of them (the flood cap,
+-- docs/flood-host-cap-2026-10-21.md) and counts the rest in agent_directory_registry_overflow; Q0b reads that count, so the
+-- registrations stored and the registrations on the chain can be told apart.
+--
+-- Gnosis's block time is close to constant, from about 5.08 to about 5.19 seconds a block with a slot missed now and then. Q10a and Q10b
+-- turn a mint block into a UTC date by adding seconds to a block whose time is known: they follow the chain's own block times
+-- through 19 stretches of 250,000 blocks from the registry's first block (44,505,010, 2026-02-04 09:49:00 UTC), each with a start
+-- block, its time and the seconds a block in that stretch, all read from the chain; the stretch from the latest start block runs
+-- to the finalized block 49,146,890 (2026-11-06 23:11:40 UTC). Checked against the block times in the registrations' own logs, a date
+-- is within 148 minutes (the worst of all 4,179 registrations, with a median of 1.6 minutes), so a registration made that close to
+-- midnight, or to the end of a month, can land on the next one. Every time is a block header timestamp read from a node on
+-- 2026-11-06. An hour is 708 blocks, which is also the hand-out hour in Q8.
+--
+-- Run them all in one sitting, so the figures are one moment. Paste back each result grid.
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q0. As of when: the registrations stored, how many are hidden, when a pass first and last saw one, when the source last
+-- succeeded, and how many of the registrations the directory lists (the entries of the source).
+-- ---------------------------------------------------------------------------------------------------------------------------
+SELECT COUNT(*) AS registrations,
+ SUM(r.hidden = 1) AS hidden_registrations,
+ MIN(r.firstSeenAt) AS first_seen_min,
+ MAX(r.lastSeenAt) AS last_seen_max,
+ MAX(s.lastSuccessfulAt) AS source_last_success,
+ (SELECT COUNT(*)
+ FROM agent_directory_entries e
+ JOIN ingestion_sources s2 ON s2.id = e.sourceId
+ WHERE s2.protocol = 'erc8004_gnosis' AND s2.state = 'active') AS entries_in_the_directory
+FROM agent_directory_registry_rows r
+JOIN ingestion_sources s ON s.id = r.sourceId
+WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active';
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q0b. The flood cap: how many hosts went past the 2,000 rows a host may keep, how many registrations were counted and not stored
+-- for them, and the largest host's. Registrations on the chain = the registrations of Q0 plus the second figure here.
+-- ---------------------------------------------------------------------------------------------------------------------------
+SELECT COUNT(*) AS hosts_past_the_cap,
+ COALESCE(SUM(o.overflowCount), 0) AS registrations_counted_not_stored,
+ COALESCE(MAX(o.overflowCount), 0) AS largest_host_overflow
+FROM agent_directory_registry_overflow o
+JOIN ingestion_sources s ON s.id = o.sourceId
+WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active';
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q1. Size and surface: registrations, registering wallets, https links and their host names, distinct profile links, the
+-- registrations that set no profile link at all, and how many have a mint block measured.
+-- (The empty-link hash is the SHA-256 of the empty string: a registration that set no URI.)
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.registrant, r.locatorHost, r.profileUriHash, r.mintBlock
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+)
+SELECT COUNT(*) AS registrations,
+ COUNT(DISTINCT registrant) AS distinct_wallets,
+ SUM(registrant IS NULL) AS no_wallet,
+ SUM(locatorHost IS NOT NULL) AS with_https_host,
+ COUNT(DISTINCT locatorHost) AS distinct_hosts,
+ COUNT(DISTINCT profileUriHash) AS distinct_profile_links,
+ SUM(profileUriHash = 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855') AS no_uri_set,
+ SUM(mintBlock IS NOT NULL) AS mint_measured
+FROM v;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q2. How many registrations one wallet made: wallets and registrations in each size bucket, and the largest in the bucket.
+-- (The wallet is the owner named in the registration event: the address that registered the entry.) The buckets break at 10
+-- (the listing rule), 50 and 100.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.registrant
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+),
+w AS (
+ SELECT registrant, COUNT(*) AS n FROM v WHERE registrant IS NOT NULL GROUP BY registrant
+)
+SELECT CASE WHEN n = 1 THEN '1' WHEN n < 10 THEN '2-9' WHEN n < 50 THEN '10-49' WHEN n < 100 THEN '50-99' WHEN n < 1000 THEN '100-999' ELSE '1000+' END AS registrations_per_wallet,
+ COUNT(*) AS wallets,
+ SUM(n) AS registrations,
+ MAX(n) AS largest_in_bucket
+FROM w
+GROUP BY registrations_per_wallet
+ORDER BY MIN(n);
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q3. The 25 largest wallets that made 50 or more registrations, by rank and never by address: how many each made, how many of
+-- those have an https link, how many sit on the wallet's own largest host name, how many host names it uses and how many
+-- profile links.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.registrant, r.locatorHost, r.profileUriHash
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.registrant IS NOT NULL
+),
+w AS (
+ SELECT registrant, COUNT(*) AS registrations, SUM(locatorHost IS NOT NULL) AS with_https_host, COUNT(DISTINCT locatorHost) AS distinct_hosts, COUNT(DISTINCT profileUriHash) AS distinct_links
+ FROM v GROUP BY registrant HAVING COUNT(*) >= 50
+),
+wh AS (
+ SELECT registrant, locatorHost, COUNT(*) AS n FROM v WHERE locatorHost IS NOT NULL GROUP BY registrant, locatorHost
+),
+top1 AS (
+ SELECT registrant, MAX(n) AS on_largest_host FROM wh GROUP BY registrant
+)
+SELECT ROW_NUMBER() OVER (ORDER BY w.registrations DESC) AS wallet_rank,
+ w.registrations,
+ w.with_https_host,
+ COALESCE(top1.on_largest_host, 0) AS on_its_largest_host,
+ w.distinct_hosts,
+ w.distinct_links
+FROM w
+LEFT JOIN top1 ON top1.registrant = w.registrant
+ORDER BY w.registrations DESC
+LIMIT 25;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q3b. All the wallets that made 50 or more registrations, in one row: how many wallets, how many registrations they made
+-- between them, and the largest wallet's.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH w AS (
+ SELECT r.registrant, COUNT(*) AS n
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.registrant IS NOT NULL
+ GROUP BY r.registrant
+ HAVING COUNT(*) >= 50
+)
+SELECT COUNT(*) AS wallets_with_50_or_more, COALESCE(SUM(n), 0) AS registrations_on_them, COALESCE(MAX(n), 0) AS largest_wallet
+FROM w;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q4. Host names, by size and never by name: the ten largest hosts (rank and registrations only).
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.locatorHost
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+),
+h AS (
+ SELECT locatorHost, COUNT(*) AS n FROM v WHERE locatorHost IS NOT NULL GROUP BY locatorHost
+)
+SELECT ROW_NUMBER() OVER (ORDER BY n DESC) AS host_rank, n AS registrations
+FROM h
+ORDER BY n DESC
+LIMIT 10;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q4b. All the hosts that hold 50 or more registrations (the listing rule's host bar), in one row: how many hosts, how many
+-- registrations they hold between them, and the largest host's.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH h AS (
+ SELECT r.locatorHost, COUNT(*) AS n
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.locatorHost IS NOT NULL
+ GROUP BY r.locatorHost
+ HAVING COUNT(*) >= 50
+)
+SELECT COUNT(*) AS hosts_with_50_or_more, COALESCE(SUM(n), 0) AS registrations_on_them, COALESCE(MAX(n), 0) AS largest_host
+FROM h;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q5. Profile links held by several registrations: profile links and registrations in each size bucket (a link of its own is
+-- the bucket '1'), the largest in the bucket, and how many of the registrations in a bucket have an https host. No link and no
+-- hash is returned. The empty link (no URI set) is left out of the buckets and counted in Q1.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.profileUriHash, r.locatorHost
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.profileUriHash IS NOT NULL
+ AND r.profileUriHash <> 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
+),
+l AS (
+ SELECT profileUriHash, COUNT(*) AS n, SUM(locatorHost IS NOT NULL) AS with_host FROM v GROUP BY profileUriHash
+)
+SELECT CASE WHEN n = 1 THEN '1' WHEN n < 10 THEN '2-9' WHEN n < 50 THEN '10-49' WHEN n < 1000 THEN '50-999' ELSE '1000+' END AS registrations_per_link,
+ COUNT(*) AS links,
+ SUM(n) AS registrations,
+ MAX(n) AS largest_in_bucket,
+ SUM(with_host) AS registrations_with_https_host
+FROM l
+GROUP BY registrations_per_link
+ORDER BY MIN(n);
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q6. Names: how many registrations still carry the placeholder the pass gives a registration with no name ("Agent #n"), how
+-- many names are distinct, and how many registrations share a name with others (group sizes only; no name is returned).
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.displayName, (r.displayName REGEXP '^Agent #[0-9]+$') AS isPlaceholder
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+),
+nm AS (
+ SELECT displayName, COUNT(*) AS n FROM v WHERE isPlaceholder = 0 GROUP BY displayName
+)
+SELECT COUNT(*) AS registrations,
+ SUM(isPlaceholder = 1) AS placeholder_names,
+ (SELECT COUNT(*) FROM nm) AS distinct_real_names,
+ (SELECT COALESCE(SUM(n), 0) FROM nm WHERE n >= 2) AS registrations_sharing_a_name,
+ (SELECT COALESCE(SUM(n), 0) FROM nm WHERE n >= 10) AS registrations_in_names_shared_by_10_or_more,
+ (SELECT COALESCE(MAX(n), 0) FROM nm) AS largest_name_group
+FROM v;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q7. What the listing rules did: the registrations in each state the pass stores (0 no usable link, 1 listed, 2 held out as
+-- shared, 3 waiting to be classified, 4 a name that is only a number), and for the ones held out as shared, which rule
+-- reached them first, in the order the rules run (a shared profile link, then a host shared by 50 or more, then a wallet that
+-- registered 10 or more). A rule that reaches a registration first is not the only one that would have.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.listing, r.profileUriHash, r.locatorHost, r.registrant
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+),
+c AS (
+ SELECT listing,
+ COUNT(*) OVER (PARTITION BY profileUriHash) AS link_n,
+ CASE WHEN locatorHost IS NULL THEN 0 ELSE COUNT(*) OVER (PARTITION BY locatorHost) END AS host_n,
+ CASE WHEN registrant IS NULL THEN 0 ELSE COUNT(*) OVER (PARTITION BY registrant) END AS wallet_n
+ FROM v
+)
+SELECT listing,
+ CASE listing WHEN 0 THEN 'no usable link' WHEN 1 THEN 'listed' WHEN 2 THEN 'held out as shared' WHEN 3 THEN 'waiting' WHEN 4 THEN 'name is only a number' ELSE 'other' END AS state,
+ CASE WHEN listing <> 2 THEN '-'
+ WHEN link_n >= 2 THEN 'profile link shared by 2 or more'
+ WHEN host_n >= 50 THEN 'host shared by 50 or more'
+ WHEN wallet_n >= 10 THEN 'wallet that registered 10 or more'
+ ELSE 'none of the three (stale)' END AS first_rule,
+ COUNT(*) AS registrations
+FROM c
+GROUP BY listing, state, first_rule
+ORDER BY listing, first_rule;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q8. Changes of hands and edits, from the totals the pass keeps for each registration: how many transfers after the mint, how
+-- many of them were a hand-out (within the chain's hand-out hour of minting, 708 blocks on Gnosis, from the minting
+-- wallet), how many profile-link edits, and how many registrations each touched. A registration the activity walk has not
+-- covered yet has null totals and is not in a sum.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT r.mintBlock, r.secondaryTransferCount, r.handoutCount, r.uriUpdateCount
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+)
+SELECT COUNT(*) AS registrations,
+ SUM(mintBlock IS NOT NULL) AS mint_measured,
+ SUM(secondaryTransferCount IS NOT NULL) AS covered_by_the_walk,
+ COALESCE(SUM(secondaryTransferCount), 0) AS transfers_after_mint,
+ COALESCE(SUM(handoutCount), 0) AS handouts,
+ SUM(secondaryTransferCount > 0) AS registrations_that_changed_hands,
+ SUM(handoutCount > 0) AS registrations_handed_out,
+ COALESCE(SUM(uriUpdateCount), 0) AS profile_link_edits,
+ SUM(uriUpdateCount > 0) AS registrations_edited
+FROM v;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q9. The activity ledger itself: the events of the source by kind (a mint, a transfer after the mint, a profile-link edit), the
+-- registrations they belong to, and the oldest and newest block. It holds every event the walk has recorded, hidden
+-- registrations included.
+-- ---------------------------------------------------------------------------------------------------------------------------
+SELECT a.kind,
+ COUNT(*) AS events,
+ COUNT(DISTINCT a.externalKey) AS registrations,
+ MIN(a.blockNumber) AS oldest_block,
+ MAX(a.blockNumber) AS newest_block
+FROM agent_directory_chain_activity a
+JOIN ingestion_sources s ON s.id = a.sourceId
+WHERE s.protocol = 'erc8004_gnosis'
+GROUP BY a.kind
+ORDER BY a.kind;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q10a. When the registrations were made, the recent days: the registrations in each UTC day, for the last 21 days that have one. The
+-- date is the mint block's time, read through the same 19 stretches as Q10b (a start block, its time and the seconds a block
+-- in that stretch, each from the chain; the stretch from the latest start block runs to the finalized block). Counts only.
+-- (mintBlock is unsigned, so it is cast before the subtraction.)
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT CAST(r.mintBlock AS SIGNED) AS b
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.mintBlock IS NOT NULL
+),
+t AS (
+ SELECT CASE
+ WHEN b >= 49005010 THEN TIMESTAMPADD(SECOND, ROUND(5.08356 * (b - 49005010)), '2026-10-29 14:50:45')
+ WHEN b >= 48755010 THEN TIMESTAMPADD(SECOND, ROUND(5.16268 * (b - 48755010)), '2026-10-14 16:19:35')
+ WHEN b >= 48505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12304 * (b - 48505010)), '2026-09-29 20:33:35')
+ WHEN b >= 48255010 THEN TIMESTAMPADD(SECOND, ROUND(5.12286 * (b - 48255010)), '2026-09-15 00:48:20')
+ WHEN b >= 48005010 THEN TIMESTAMPADD(SECOND, ROUND(5.09290 * (b - 48005010)), '2026-08-31 07:07:55')
+ WHEN b >= 47755010 THEN TIMESTAMPADD(SECOND, ROUND(5.10054 * (b - 47755010)), '2026-08-16 12:55:40')
+ WHEN b >= 47505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12104 * (b - 47505010)), '2026-08-01 17:18:00')
+ WHEN b >= 47255010 THEN TIMESTAMPADD(SECOND, ROUND(5.13222 * (b - 47255010)), '2026-07-17 20:53:45')
+ WHEN b >= 47005010 THEN TIMESTAMPADD(SECOND, ROUND(5.11644 * (b - 47005010)), '2026-07-03 01:35:15')
+ WHEN b >= 46755010 THEN TIMESTAMPADD(SECOND, ROUND(5.12670 * (b - 46755010)), '2026-06-18 05:34:00')
+ WHEN b >= 46505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12266 * (b - 46505010)), '2026-06-03 09:49:35')
+ WHEN b >= 46255010 THEN TIMESTAMPADD(SECOND, ROUND(5.13796 * (b - 46255010)), '2026-05-19 13:01:25')
+ WHEN b >= 46005010 THEN TIMESTAMPADD(SECOND, ROUND(5.12494 * (b - 46005010)), '2026-05-04 17:07:30')
+ WHEN b >= 45755010 THEN TIMESTAMPADD(SECOND, ROUND(5.18504 * (b - 45755010)), '2026-04-19 17:03:10')
+ WHEN b >= 45505010 THEN TIMESTAMPADD(SECOND, ROUND(5.16346 * (b - 45505010)), '2026-04-04 18:28:45')
+ WHEN b >= 45255010 THEN TIMESTAMPADD(SECOND, ROUND(5.09552 * (b - 45255010)), '2026-03-21 00:37:25')
+ WHEN b >= 45005010 THEN TIMESTAMPADD(SECOND, ROUND(5.15548 * (b - 45005010)), '2026-03-06 02:36:15')
+ WHEN b >= 44755010 THEN TIMESTAMPADD(SECOND, ROUND(5.13898 * (b - 44755010)), '2026-02-19 05:43:50')
+ WHEN b >= 44505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12516 * (b - 44505010)), '2026-02-04 09:49:00')
+ ELSE NULL
+ END AS ts
+ FROM v
+),
+d AS (
+ SELECT DATE(ts) AS utc_day FROM t
+)
+SELECT utc_day, COUNT(*) AS registrations
+FROM d
+WHERE utc_day > (SELECT MAX(utc_day) FROM d) - INTERVAL 21 DAY
+GROUP BY utc_day
+ORDER BY utc_day;
+
+-- ---------------------------------------------------------------------------------------------------------------------------
+-- Q10b. When the registrations were made, the whole history: the registrations in each UTC month. The date is the mint block's
+-- time, read through 19 stretches of blocks (a start block, its time and the seconds a block in that stretch, each
+-- from the chain; the stretch from the latest start block runs to the finalized block). Counts only.
+-- ---------------------------------------------------------------------------------------------------------------------------
+WITH v AS (
+ SELECT CAST(r.mintBlock AS SIGNED) AS b
+ FROM agent_directory_registry_rows r
+ JOIN ingestion_sources s ON s.id = r.sourceId
+ WHERE s.protocol = 'erc8004_gnosis'
+ AND s.state = 'active'
+ AND r.mintBlock IS NOT NULL
+),
+t AS (
+ SELECT CASE
+ WHEN b >= 49005010 THEN TIMESTAMPADD(SECOND, ROUND(5.08356 * (b - 49005010)), '2026-10-29 14:50:45')
+ WHEN b >= 48755010 THEN TIMESTAMPADD(SECOND, ROUND(5.16268 * (b - 48755010)), '2026-10-14 16:19:35')
+ WHEN b >= 48505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12304 * (b - 48505010)), '2026-09-29 20:33:35')
+ WHEN b >= 48255010 THEN TIMESTAMPADD(SECOND, ROUND(5.12286 * (b - 48255010)), '2026-09-15 00:48:20')
+ WHEN b >= 48005010 THEN TIMESTAMPADD(SECOND, ROUND(5.09290 * (b - 48005010)), '2026-08-31 07:07:55')
+ WHEN b >= 47755010 THEN TIMESTAMPADD(SECOND, ROUND(5.10054 * (b - 47755010)), '2026-08-16 12:55:40')
+ WHEN b >= 47505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12104 * (b - 47505010)), '2026-08-01 17:18:00')
+ WHEN b >= 47255010 THEN TIMESTAMPADD(SECOND, ROUND(5.13222 * (b - 47255010)), '2026-07-17 20:53:45')
+ WHEN b >= 47005010 THEN TIMESTAMPADD(SECOND, ROUND(5.11644 * (b - 47005010)), '2026-07-03 01:35:15')
+ WHEN b >= 46755010 THEN TIMESTAMPADD(SECOND, ROUND(5.12670 * (b - 46755010)), '2026-06-18 05:34:00')
+ WHEN b >= 46505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12266 * (b - 46505010)), '2026-06-03 09:49:35')
+ WHEN b >= 46255010 THEN TIMESTAMPADD(SECOND, ROUND(5.13796 * (b - 46255010)), '2026-05-19 13:01:25')
+ WHEN b >= 46005010 THEN TIMESTAMPADD(SECOND, ROUND(5.12494 * (b - 46005010)), '2026-05-04 17:07:30')
+ WHEN b >= 45755010 THEN TIMESTAMPADD(SECOND, ROUND(5.18504 * (b - 45755010)), '2026-04-19 17:03:10')
+ WHEN b >= 45505010 THEN TIMESTAMPADD(SECOND, ROUND(5.16346 * (b - 45505010)), '2026-04-04 18:28:45')
+ WHEN b >= 45255010 THEN TIMESTAMPADD(SECOND, ROUND(5.09552 * (b - 45255010)), '2026-03-21 00:37:25')
+ WHEN b >= 45005010 THEN TIMESTAMPADD(SECOND, ROUND(5.15548 * (b - 45005010)), '2026-03-06 02:36:15')
+ WHEN b >= 44755010 THEN TIMESTAMPADD(SECOND, ROUND(5.13898 * (b - 44755010)), '2026-02-19 05:43:50')
+ WHEN b >= 44505010 THEN TIMESTAMPADD(SECOND, ROUND(5.12516 * (b - 44505010)), '2026-02-04 09:49:00')
+ ELSE NULL
+ END AS ts
+ FROM v
+)
+SELECT DATE_FORMAT(ts, '%Y-%m') AS utc_month, COUNT(*) AS registrations
+FROM t
+GROUP BY utc_month
+ORDER BY utc_month;
diff --git a/apps/nooscape-relay/docs/gnosis-claims-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-claims-2026-11-06.md
new file mode 100644
index 0000000..1af6c9e
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-claims-2026-11-06.md
@@ -0,0 +1,68 @@
+# Claim this agent, for Gnosis
+
+The claim flow ([docs/claims-2026-10-18.md](./claims-2026-10-18.md)) opened to the owners of agents on Gnosis, the way it was opened to [Arc's](./arc-claims-2026-10-20.md), [Base's and Ethereum's](./base-ethereum-claims-2026-10-28.md) and [Monad's](./monad-claims-2026-11-01.md). One new switch, one chain entry, one node for the claim reads built from the shared module, and a few lines in the flow and the page. No migration, no new table and no new setting: it uses the three claim tables (migration 0042) and the endpoint the Gnosis identity pass already reads (`GNOSIS_RPC_URL`).
+
+**Status.** Built on 2026-11-06 on branch `feat/gnosis-extras`, and **off until the operator adds `claims_gnosis` to `VITE_FEATURES`**. Merging this turns nothing on. (Production has `claims_arc` on and the claims of Base, Ethereum and Monad off, so Gnosis's stay off with them unless the operator says otherwise.)
+
+**Decided:** 2026-11-06, by the operator, in chat: "merge 301 and do the census report and claims". The shape of the answer is mine, chosen to follow Monad's claims, so the operator can say no to any of it.
+
+## The switch
+
+`claims_gnosis` (`shared/features.ts`). Agents on Gnosis can be claimed only while **`chain_gnosis` and `claims_gnosis` are both on**; the panel itself is still `claims`. No other chain's switches open it, and its switches open no other chain. To open it: add `claims_gnosis` to `VITE_FEATURES` and rebuild and restart. On the server that is the line in the stack's `.env` and `bash deploy.sh $(cat .deployed)`, because the page needs the build and the server the restart, and both read the same list. Taking it out again closes it.
+
+The reason for a switch of its own is Arc's: the flow asks for a signature, reads a chain to decide who owns an agent, and the Privacy page says what it does. Gnosis's page, lights and ratings go live with their merge, and its claims go live when the operator has read this and decided to.
+
+## What changes
+
+- **The chain.** `CLAIM_CHAINS` gains Gnosis (chain id 100, label "Gnosis") with the identity registry's address. `claimChainOf(protocol)` returns it only while its two switches are on, so everything that asks "can this be claimed?" (the entry lookup, the message, the page's state, the daily check) answers no for an agent on it while they are off, with the words it uses for any entry that cannot be claimed.
+- **The words for an entry that cannot be claimed** name the registries that can, in the order Robinhood Chain, BNB Smart Chain, Arc, Base, Ethereum, Monad, Gnosis, each only while its claims are on.
+- **The message to sign** is the same sign-in text, with `Chain ID: 100` and the registry and token as its resource (`eip155:100::`). Nothing else in it changes.
+- **The entry.** An agent can be claimed only if the public can see it, as for the others, so a registration the listing rules hold out has no claim. The key must name exactly the chain's registry on the chain.
+- **The fleet rule** counts the visible entries of the wallet, and of the wallet the entry was registered by, on the same protocol, as for the others. Gnosis's listing rules hold out a wallet that registered 10 or more, so an agent that is listed is from a wallet that registered fewer than 10 and the fleet rule (50) will rarely bite.
+- **The agent's page** gets a colour for Gnosis (`erc8004_gnosis`, the tab's teal) in `DirectoryAgent.tsx`, where it had none.
+
+## The read of the chain
+
+A claim asks the chain three things and nothing else: who owns the agent now (`ownerOf`), whether a wallet is a contract (`eth_getCode`) and whether a contract wallet accepts a signature (EIP-1271, `eth_call`). They go to the endpoint the chain's pass reads, through `server/claimsPinned.ts`, which now builds a fourth node from `server/claimsNode.ts`:
+
+- **The checks** are the shared module's: the node answers as the chain (`eth_chainId`), it is at the head (a latest block no more than ten minutes old, and not dated more than two minutes ahead of the server's clock), one attempt with no retry ladder, and a gas limit on what a visitor can make it run (200,000 for `ownerOf`, 3,000,000 for anything else). A failed check is fixed text that can never be read as a revert.
+- **The address** is read as the pass reads it: `GNOSIS_RPC_URL` (Alchemy) must be set, an https address with no credentials in it, and its host must be exactly the host the chain's entry pins (`gnosis-mainnet.g.alchemy.com`), so changing the variable can never send a claim's reads to a host nobody approved. The address carries a key. Nothing puts it, or any part of it, in an error or a log line, and an address that is not usable is "not configured" in fixed words. The host is a vendor's and public, so it is not looked up again.
+- **The same budget as the others.** A visitor's reads of a chain are held to 60 a minute and refused as "try again" past that, without asking the node; the daily check has no such cap. A revert (a token that does not exist, answered in the EVM's own words, code 3) is an answer: no owner. A bad key, a missing method, a throttle or a timeout is an outage and can never end a claim.
+- **The provider's bill.** A read costs the provider one call, and up to two more when the chain id (asked once in ten minutes) or the head (once a minute) is due. A visitor is held to 60 reads a minute and the daily check takes at most 25 claims a run. The Alchemy plan's limits were not looked at against that here; the endpoint is also read by the identity pass (one run a day) and, for its first hours after the deploy, by the ratings step.
+- **Checked against the real chain** on 2026-11-06, read-only, through the keyed endpoint and the flow's own client: the node answered as chain 100 and its latest block passed the head check, `ownerOf` of an existing token (a registration the directory lists) answered one address word that decodes to an address, `ownerOf` of a token that does not exist reverted with "execution reverted", and the same read through the claim flow's chain call came back as an answer.
+
+## The daily check
+
+Unchanged from the other chains': it selects only claims on a chain whose claims are on, and a chain that cannot be read is left out for the rest of the run so the claims behind it on other chains are still asked about. A claim made on Gnosis while its switch was on is kept when the switch goes off and is checked again from the day it returns.
+
+## What the pages say
+
+- **Terms.** Unchanged: "the owner of an agent in a public registry" already covers it.
+- **Privacy.** The sentences that name the chains are untouched, and **one sentence is added only while Gnosis's claims are on in the build**: "The owner of an agent on the Gnosis registry can claim it in the same way." The page's date reads 6 November 2026 while it is there, and otherwise the older dates, because the text it describes is the text on the page. This is the only legal wording the change touches, and it adds a chain to a list rather than a clause. The operator's review of it is the open point.
+- **The panel** says "If you own this agent's registration on Gnosis, you can claim it", in the other chains' words, on an agent's page while its switches are on, and is not there otherwise.
+
+## What does not change
+
+A claim is still the owner's own word and never a tier, a review, a rating or a score. It changes nothing about whether a Gnosis registration is listed, where it sits, any count, the page, the lights or the ratings. The flow still cannot write a field it does not own, and the claim code still names no tier, state, listing flag or score. Payment has no part in it.
+
+## Held by a test
+
+- `features.test.ts`: the switch list, and `gnosisClaimsOn` (the chain and its claims named, in any case or order, each alone not enough, and the other chains' switches opening neither way).
+- `claimsChain.test.ts` (Gnosis is a fourth row of the table that holds Base, Ethereum and Monad): the chain's id, registry and label; claimable only while both switches are on and no other chain's switches open it; the production call (the node's client called once, a revert from the node's own words, a timeout or HTTP error or throttle or bad key as an outage, the worker's call with no budget, a visitor's reads held to 60 a minute); and all the chains' claims together in the order the words name them.
+- `claimsPinned.test.ts` (Gnosis is a fourth row): one request to the address in the variable, no redirect followed, no look-up of the host, the gas limits, a revert in the node's words, no address or key in anything thrown, a refusal when the variable is unset, is not https, carries credentials or names a host nobody approved, the chain id asked first and the head looked at, every failed check being fixed text, and the nodes keeping their own checks (Monad's being right says nothing of Gnosis's).
+- `claims.integration.test.ts` (real MySQL and MariaDB, real signatures, a fake chain; Gnosis is a fourth row, and the test pastes migrations 0051, 0053 and 0057 by hand after 0046, as production has them): the agent cannot be claimed under any partial list or another chain's switches, and the refusal names the registries; with both switches on, the message carries the chain id and the registry, the claim is written with the chain's protocol, chain, registry and token, every read is on that chain, and the page is told it can be claimed; a wallet the registry does not record as the owner is refused and the owner's edit is taken; a held-out registration, a wrong registry and a wrong chain's key are not claimable; and the daily check ends a claim when the chain shows a new owner.
+- `claimFlow.test.ts`, `legalPages.test.ts` and `claimClient.test.ts`: the panel names Gnosis only while both of its switches are on in the build, the Privacy sentence is conditional and its date goes with it, the claim code and the page ask the same question, and the switch list is the one the client reads.
+- Planted bugs: twelve, each caught by a test. Gnosis missing from the claimable list, its claims opened by Monad's switch or by the chain's switch alone, its chain id read from Monad, its read sent to Monad's node, its node pinned to Monad's entry or named Monad, a flow that names Gnosis "Monad", a Privacy page without the sentence or with the old date, a switch missing from the list, and a claim allowed with its claims off.
+
+## Not checked, and left as it is
+
+- **No claim was made by a real wallet on Gnosis.** No wallet was connected here, and the production endpoint's key is on the host. The signature, nonce and ownership logic is the flow's own and is held by the tests above; the contract's behaviour was read from the real chain as above. The first claim after the switch is on is the live check.
+- **No independent review of this change.** What it adds on the claim path is small (one chain entry, one route into the shared module, one switch name, the endpoint's address check), but a review of `claimsNode.ts` would cover every chain's claims.
+- **Smart-contract wallets** (a Safe) sign through EIP-1271 and are accepted when the wallet answers the magic value on the chain; a counterfactual wallet (not deployed yet) is refused, as for the others. ERC-6492 is not supported.
+- The two points the other chains' records leave as they are apply here as well: an operator's hold of a claim's text is still sent to a watching key as an event while the chain's claims are off, and a claim shows as active at once when its switch returns, until the daily check reaches it.
+
+## To turn it on, and off
+
+1. Add `claims_gnosis` to `VITE_FEATURES` in the stack's `.env` on the server (it reads `claims,chain_arc,claims_arc,chain_base,chain_ethereum,chain_monad,chain_gnosis` today, so the line becomes `...,chain_gnosis,claims_gnosis`) and run `bash deploy.sh $(cat .deployed)`. Read the Privacy sentence first.
+2. Check: an agent's page on Gnosis shows the panel; `claim.state` for it says it can be claimed; the Privacy page carries Gnosis's sentence and the new date.
+3. To stop: take the switch out and run the same deploy. Claims already made are kept and are checked again from the day it returns.
diff --git a/apps/nooscape-relay/docs/gnosis-erc8004-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-erc8004-2026-11-06.md
new file mode 100644
index 0000000..28cb14f
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-erc8004-2026-11-06.md
@@ -0,0 +1,129 @@
+# Gnosis: the ERC-8004 identity pass on an eighth chain
+
+Status: **BUILT AND TESTED (2026-11-06); SWITCHED OFF; NOT STAGED.** The operator said "lets add gnosis" on 2026-11-06. Gnosis runs the same contract as Ethereum and Monad and has the smallest history of the chains left, so it was the cheap one to add next ([the Monad record](./monad-erc8004-2026-11-01.md) is the model). Nothing runs until the owner applies migration 0057 by hand, sets `GNOSIS_RPC_URL`, adds `chain_gnosis` to `VITE_FEATURES`, deploys, stages the source, approves it and runs it. The names, the copy, the MCP package, the map lights, a page, the ratings, the claims, a census and the scheduled flip are separate, later changes (section 7), as they were for Monad.
+
+**Update, later on 2026-11-06:** live. The pull request merged at 21:07Z (PR 299, main `ba84611`) and the operator's steps were done the same hour, by Claude on the operator's order: the pass listed 41 of 4,179 registrations, as rehearsed. Section 9 has what happened.
+
+## 1. What this adds
+
+Gnosis (chain id 100) joins Ethereum, Base, Arc and Monad as an entry in the one chain list (`server/ingestion/erc8004Chains.ts`, `GNOSIS_CHAIN`), behind its own switch, `chain_gnosis`. The pass, the decoding, the listing rules and the flood cap are the ones those chains use ([the multichain record](./multichain-erc8004-2026-10-20.md)); this change adds the entry and the places a chain has to be named:
+
+| Where | What |
+|---|---|
+| `server/ingestion/erc8004Chains.ts` | `GNOSIS_CHAIN` and `GNOSIS_LISTING_RULES` (BNB Chain's numbers, provisional until a census, like the other chains'), added to the list |
+| `shared/chains.ts`, `shared/features.ts` | the extra chain `gnosis`, its label, its switch `chain_gnosis`, its protocol `erc8004_gnosis` |
+| `server/_core/env.ts` | `GNOSIS_RPC_URL`, read when a run starts, never printed or stored |
+| `drizzle/0057_gnosis_erc8004_protocol.sql`, `drizzle/schema.ts`, `server/ingestion/types.ts` | the protocol value on the four tables that carry the list (by hand, section 6) |
+| `server/ingestion/worker.ts`, `server/routers/liveData.ts` | the scheduled dispatch (it still refuses a source that is not on the scheduler) and the staging action, with a clear message when 0057 has not been pasted |
+| `server/apiChains.ts` | the API chain `gnosis`, served while the switch is on |
+| `client/src/components/home/chainTabsModel.ts`, `client/src/index.css`, `client/src/lib/glossary.ts`, `client/src/pages/SourceOperations.tsx` | the tab (teal; a hexagon when the chain went live, an octagon since 2026-11-06 because Robinhood Chain's lights are hexagons, see [the page](./gnosis-world-2026-11-06.md)), "eight skies" in the heading when all the switches are on, the operator page's button and label |
+| `client/src/components/home/constellationModel.ts` | the map's chain type leaves Gnosis out, because it has no lights yet |
+
+With the switch off nothing of Gnosis is listed, counted, served or run, exactly as for the other extra chains. Off is held in one place: the visibility rule every directory read shares ends with a `NOT IN` over the protocols of the chains that are off.
+
+## 2. What the real chain held (read on 2026-11-06)
+
+- **The same contract.** The identity registry at `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` is the same 130-byte proxy as on every chain (the code's SHA-256 prefix `e3b1c1b4c04b34f9` equals Ethereum's, Monad's, Abstract's and 0G's), and its implementation, `0x7274e874ca62410a93bd8bf61c69d8045e399c02`, has the same 14,474 bytes (prefix `201b7634af2de088`). So the decoding is shared, and a chain is an entry. The reputation registry at `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` is deployed too (a 130-byte proxy); its ratings are not read here (section 7).
+- **Where it starts.** Deployed at block 44,505,010 (2026-02-04 09:49:00 UTC), found by binary search on `eth_getCode` through the keyed endpoint (empty at 44,505,009, 130 bytes at 44,505,010), which archives to it. The first registration is at block 44,506,402. The finalized head sat 40 blocks behind the head at 49,144,785, so 4,639,735 blocks of history.
+- **How fast it moves.** 5.0827 s a block over the last 100,000 blocks, so an hour is 708 blocks. The `finalized` tag is served.
+- **What it holds.** 4,179 registrations, ids 0 to 4,178 (counted from the events). 8004scan lists 4,171 agents on Gnosis. The three kinds of event the pass asks for number 8,412: 4,179 `Registered`, 4,184 `Transfer` (4,179 mints and 5 hand-overs) and 49 `URIUpdated`. The registry emits more kinds the pass does not ask for (20,203 and 4,206 of them), so a read of every log from the address is 32,826.
+- **When.** The launch burst: 2,807 of the registrations were made in February, 2,652 of them in the first 10,000 blocks (about 14 hours). Since then it is quiet: 518 in March, then 109, 127, 254, 289, 17, 29 and 27 a month, and 2 in November (months interpolated from the first and last block times). The last log of any kind is from 2026-11-04.
+- **What the provider allows** (`eth_getLogs`, the keyed Alchemy endpoint the Base and Monad passes use, read 2026-11-06). At most **10,000 blocks** a call, with no cap on the response: the first 10,000 blocks returned 21,217 logs of every kind (18 MB). A wider window is refused with an HTTP 400 that reads "You can make eth_getLogs requests with up to a 10000 block range. Based on your parameters, this block range should work: [...]" (the real refusal is in the recording, section 8). The pass classifies that as a block-range fault, because its planner never asks for more than the entry's `maxLogRange`. Monad's endpoint, by contrast, allowed 50,000 blocks while the response held 10,000 logs or fewer.
+- **The three kinds, by window.** Read as 10,000-block windows, 238 of the 464 hold an event of the three kinds, with a median of 4 and a 90th percentile of 22. The busiest is the launch, blocks 44,505,010 to 44,515,009: 5,304 events, 4.0 MB as JSON (779 bytes an event); the next busiest holds 202.
+
+## 3. Who registered (chain facts as recorded, not judged)
+
+- 3,891 of the 4,179 registrations carry a web link, 265 inline JSON, 22 an empty URI and 1 an IPFS link. One of the inline JSON texts is gzip-compressed (a `data:` link with `enc=gzip`); the pass does not read compressed JSON, so it counts as inline JSON that did not parse and is held out, as the listing rules say.
+- The web links name 7 hosts. One host, the Olas marketplace, holds 3,851 registrations (92%); the next holds 32.
+- There are 52 registering wallets. One made 3,851 registrations, 26 made 10 or more (4,136 in all), and the next four made 34, 18, 12 and 11. There are 4,140 distinct links, 10 of them shared by two or more registrations (27 registrations).
+- The listing rules treat a shared link, a host with 50 or more registrations and a wallet with 10 or more as one group, not as agents, and the flood cap stores at most 2,000 rows for a host. Those numbers are what put the listing at about 1% of the registry (section 5).
+
+## 4. The entry
+
+| Field | Value | Why |
+|---|---|---|
+| chain id, hex | 100, `0x64` | `eth_chainId` answers it |
+| deploy block | 44,505,010 | section 2 |
+| provider | Alchemy, host `gnosis-mainnet.g.alchemy.com` pinned, `GNOSIS_RPC_URL` | the plan the Base and Monad passes already use; the operator already holds a Gnosis endpoint on it |
+| window | 10,000 blocks | the widest range the plan answers; the busiest window holds 5,304 events |
+| `maxWindowLogs` | 20,000 | 3.8 times the busiest window; a window past it is split by the pass |
+| response cap | 16 MiB | 4.2 times the busiest window (3.8 MiB) |
+| hand-out window | 708 blocks | an hour of blocks |
+| run budget | 100 windows, 3 at once, 30 s, 10,000 events | 100 windows are a million blocks, so the 4.6 million blocks of history are five runs; the 10,000 events are almost two of the busiest window |
+| listing rules | 2 / 50 / 10 (link, host, wallet) | BNB Chain's, provisional like the others' until a census |
+| host row cap | 2,000 | the flood cap of the other extra chains |
+| ratings | none | the entry names no reputation registry, so the ratings step skips the chain (section 7) |
+
+## 5. The rehearsal
+
+The real pass, with the budget in the entry, against a scratch MariaDB 10.11 and the real chain through the keyed endpoint, from the deploy block to the finalized head, the way the operator's "Run chain pass" button will:
+
+- 6 runs, 43 seconds of runs in all, the longest 11.4 s. The first read 100 windows (the first million blocks, with the launch) and applied 6,730 events; runs 2 to 4 each read 100 windows; the fifth read the last 64 windows, reached the head (cursor `gnosis:49145026`) and published; the sixth found nothing to do.
+- 8,412 events accepted, equal to the offline count of section 2.
+- 2,328 registry rows stored. 1,851 registrations were counted and not stored, all for the one host past the flood cap (2,000 of its registrations are stored). Of the stored rows, 9 have no usable link, 41 are listed, 2,277 are grouped and 1 has a name that is only a number.
+- **41 entries published**, of 4,179 registrations (1.0%). 10 of them are named `Agent #n` and 6 have a host.
+- 2,328 mints, 5 hand-overs and 49 URI updates in the ledger. About 8 MB of tables in all (registry rows 4.3, ledger 3.6, entries 0.2), and a process that stayed under 155 MB.
+- The first pass is five presses of the button, or the scheduler's own ticks if the source is flipped first.
+
+## 6. The operator's steps
+
+Each step's file was given to the operator as a paste-safe copy (`0057_log_check.sql`, `0057_check.sql`, `0057_gnosis_erc8004_protocol.sql`, `0057_record.sql`, `0057_rollback.sql`). Production has run on its own server since 2026-11-06; its database is the `db` container of its stack.
+
+0. **Read the migration log.** `0057_log_check.sql` shows the last six rows of `nooscape_schema_migrations`. Version 57 must not be there (on 2026-11-06 the newest was 56, `0056_listing_pins.sql`); if it is, say so and the number changes (a version already recorded is skipped, which once lost migration 0047).
+1. **Migration 0057, by hand, at a quiet moment** (not on a worker tick: :00, :15, :30, :45). It appends `erc8004_gnosis` to the protocol list of four tables. It needs 0046, 0051 and 0053, which production has, because every statement restates the whole list.
+ - Run `0057_check.sql` first: each of the four rows must already end with `'solana_agenc','erc8004_monad')`.
+ - Apply `0057_gnosis_erc8004_protocol.sql`. Run `0057_check.sql` again: each row now ends with `'erc8004_monad','erc8004_gnosis')`.
+ - Record it with `0057_record.sql`. The name must be exactly the file's: a version recorded under another name stops the next boot.
+ - Rollback is `0057_rollback.sql`: the first query counts the rows that hold the value and every count must be 0; then the same four statements with the earlier list, and the version is deleted.
+ - Staging the source before the file is applied answers "The database does not have the Gnosis protocol value yet. Paste migration 0057 first", and creates nothing.
+2. **Set `GNOSIS_RPC_URL`** in `app.env` on the server to the Alchemy Gnosis address. The pass accepts only the host `gnosis-mainnet.g.alchemy.com`.
+3. **Add `chain_gnosis` to `VITE_FEATURES`** in the stack's `.env`, keeping the value it has, and deploy (`bash deploy.sh $(cat .deployed)`, because the list is read when the site is built).
+4. **On /admin/sources**: Stage Gnosis ERC-8004 registry, approve it, press Run chain pass until the run that follows one that moved the cursor finds nothing (about five presses).
+5. **Check**: the tab shows "Gnosis" with the chain's figures, `GET /api/v1` lists `gnosis`, `node scripts/verify-live.mjs` passes. A manual-only source is not held to a freshness allowance, so `verify-live` stays green.
+
+Rollback of the whole change: remove `chain_gnosis` from `VITE_FEATURES` and deploy. Gnosis then disappears from every read, and the source can be paused.
+
+## 7. What is not here
+
+- **The scheduled flip.** The source stays `manual_only`. The chain is nearly still (a few registrations a month), so a daily cadence like Monad's would be enough; that is a later, reviewed migration (0058 or later), with `erc8004_gnosis` added to the freshness allowances in `scripts/verify-live.mjs`. Update 2026-11-06 (later): built as migration 0058 (section 10).
+- **Names.** The names step reads Ethereum, Base, Arc, Monad and the Robinhood and Solana registries. Gnosis's entries are named by what the registration carries (an inline JSON name) or `Agent #n` until it does; 10 of the 41 listed would show a number. Update 2026-11-06 (later): the names step took Gnosis (the third addendum of `docs/approvals/2026-10-26-base-arc-names.md`), and the sentences on `/checker` and the sources page name it.
+- **Copy.** The sentences that say Nooscape reads seven chains (the home page, the checker, the MCP package) are unchanged; they say what is true until the chain is on.
+- **The MCP package** (`nooscape-mcp`) does not list Gnosis.
+- **Map lights, a chain page, a census report, a share card and claims** are not built for Gnosis. The Owl's Catch, "just arrived" and the watchlist take any extra chain that is on, and Gnosis is one. Update 2026-11-06 (later): the chain page, its share card and the map lights are built ([the page](./gnosis-world-2026-11-06.md), [the lights](./gnosis-lights-2026-11-06.md)); a census report and claims are not. Update 2026-11-06 (later still): the claim flow is built behind `claims_gnosis`, off ([the record](./gnosis-claims-2026-11-06.md)). Update 2026-11-06 (last): the census report is built too, once the 15 read-only queries had been run on production ([the measurement](./gnosis-census-2026-11-06.md)): `/field/gnosis-registry-2026-11-06`, with the 2,328 stored registrations of the 4,179 the directory counts.
+- **Ratings.** The reputation registry is deployed on Gnosis (a 130-byte proxy, implementation `0x16e0fa7f7c56b9a767e34b192b51f921be31da34`, 10,491 bytes). A count of its `NewFeedback` events was not made: the first attempt asked for 50,000-block windows, which this plan refuses. The entry names none, so the ratings step skips the chain until a ratings read is measured. Update 2026-11-06 (later): measured in windows of 10,000 blocks, 4,341 ratings and no revocation, and the entry now names the registry ([the record](./gnosis-ratings-2026-11-06.md)).
+- **Gzip inline JSON.** One registration carries compressed inline JSON. The pass holds it out as unparsed. Reading it would be a change to the decoder for all chains and is not made here.
+
+## 8. How it was checked
+
+- `pnpm check`, the full suite against MySQL 8, the chain tests also on MariaDB 10.11, the production build and the two greps of the gate.
+- `server/ingestion/erc8004Chains.test.ts`: the entry's facts, the response cap and the window held against the busiest window measured. `server/ingestion/multichainDispatch.test.ts`: the protocol is in the code's list, the schema's enums and migration 0057, the worker dispatches it, and the operator page has its label, its Stage button behind the switch and its Run chain pass button.
+- `server/ingestion/erc8004ChainFixtures.ts` has `GNOSIS_FIXTURES`, real logs read from the chain on 2026-11-06: eight registrations (the launch burst's web link, a web link whose token was handed on and whose link was replaced, a web link that became a second web link, then inline JSON, then an IPFS link, inline JSON with a name that was replaced by an IPFS link, inline JSON with a name, an empty URI, an empty URI that was set later, and an IPFS link), their mints (matched by transaction and token, because one launch transaction minted many), six URI updates, a hand-over, and the real answer to a window of 50,000 blocks. The expectations were decoded independently in Python, and every text was screened for addresses, emails, credentials and secret-looking words. `erc8004ChainFixtures.test.ts` and `runErc8004ChainFixtures.test.ts` hold the pass to them, `multichainPass.integration.test.ts` runs it on a real database.
+- All of the chain's history (8,412 events of the three kinds, 32,826 logs of every kind) was run through the real pass once, outside the suite: every event decoded, none was refused, 4,179 distinct registrations including id 0.
+- `server/gnosisProtocolMigration.integration.test.ts`: on a database built the way boot builds it (and 0046, 0051 and 0053 applied by hand), a Gnosis source is refused; after 0057 is applied, twice, the value is last in all four lists and accepted; the rollback is refused while a row holds the value.
+- `server/apiV1Chains.test.ts`, `extraChains.test.ts`, `features.test.ts`: the API, the shared tables and the switches with Gnosis as the fifth extra chain. `client/src/components/home/chainTabsModel.test.ts`: its tab's place, shape and colour differ from every other tab's, and the heading says eight skies when all are on.
+- `server/chainSwitch.integration.test.ts`, on a real database after 0046, 0051, 0053 and 0057: Gnosis's source and entries are hidden while its switch is off (and the reads equal what they were before the chain existed), shown alone while only its switch is on, and listed after the others when all are on.
+- `server/multichainRoute.test.ts`: staging Gnosis (its own key, protocol and host, in review, manual only), refused while its switch is off, the "Paste migration 0057 first" message that no other refusal can produce, and the manual run going to the one chain pass. `server/ingestion/erc8004Chains.test.ts`: each chain reads the variable its entry names and no other.
+
+## 9. What happened live (2026-11-06, UTC)
+
+- **Who did it.** The operator asked ("lets add gnosis"), said "merge 299", and said "you have full access to the vps now to make what changes need to be done". The steps of section 6 were carried out by Claude over ssh and through the admin API (the route the cron uses, with the operator token from `app.env`). The approval's audit note says so.
+- **The merge.** PR 299 was rebase-merged by auto-merge at 21:07:35 (main `ba84611`), queued while the gate ran (it passed at 21:06:29). Main's tree equals the tree that was tested.
+- **The server steps that did not need the new code.** A manual backup at 21:07:18 (171 MB, copied offsite). Migration 0057 applied at 21:07:56 (one second, metadata only), the four lists read back ending `'erc8004_monad','erc8004_gnosis')`, and recorded as version 57 under the file's own name at 21:08:10. `GNOSIS_RPC_URL` added to `app.env` (mode 600; the value was never printed).
+- **The deploy with the switch off** (21:08:44 to 21:09:26) showed the change inert: `verify-live` read 49 passed, 0 warnings, 0 failed, the boot line said "Schema is current; nothing to apply", and `/api/v1` still served seven chains.
+- **The switch.** `chain_gnosis` was added to `VITE_FEATURES` in the stack's `.env` and the same commit deployed again (21:09:48 to 21:10:07). `/api/v1` then listed `gnosis`, and the site's script carried the new list.
+- **The source.** Staged through the admin API (its own key `gnosis-erc8004-identity-registry`, protocol `erc8004_gnosis`, host `gnosis-mainnet.g.alchemy.com`, `review`, `manual_only`), approved with a rationale that names who applied it and on whose order, then run in five passes and a sixth that found nothing. The passes accepted 6,730, 466, 1,063, 93 and 60 events, 8,412 in all: equal to the offline count of section 2 and, pass for pass, to the rehearsal of section 5. The log reads `[GNOSIS] listing published: 41 added, 0 refreshed, 0 removed`, and the last read is 21:12:38.
+- **What the site shows.** `GET /api/v1/stats` has the Gnosis row with 41 listed and 4,179 on the chain (the registrations figure and the new-in-a-day count were empty on the first read after the last pass and present within three minutes). A search for "Arca" finds id 2659, its lookup answers, and a held-out registration answers 404. The home heading reads "Robinhood, BNB, Solana, Ethereum, Base, Arc, Monad, Gnosis. Same Owl, eight skies.", and the Gnosis tab reads "The chain holds 4,179 registrations. The published listing rules put 41 of them in the directory; the rest are held out, not judged." `verify-live` reads 50 passed, 0 warnings, 0 failed (one more source). The app log holds no error or warning and no alert was raised.
+- **The copy.** The heading is built from the tabs, so it says eight skies. The hero sentence and the page descriptions still name seven chains. The operator said "seven skies works", so they stay until a copy change is asked for.
+
+## 10. The scheduled flip (migration 0058)
+
+The source `gnosis-erc8004-identity-registry` has been `manual_only` since the go-live, so nothing reads the registry's new registrations and the chain's figures stay as of the last manual pass (21:12Z on 2026-11-06). Migration 0058 hands it to the scheduler once a day, the way 0050 did for Arc, 0052 for Ethereum and 0054 for Monad. The operator asked for it on 2026-11-06 ("lets go fully live with gnosos once you have all you need to do it", from the list of what Gnosis still lacks).
+
+- **What it is.** One guarded UPDATE that names no protocol, applied at boot like 0050, 0052 and 0054. It changes the source only if it is the approved Gnosis source by its key, active, still `manual_only`, holding a `gnosis:` cursor, with a recorded success and no recorded failure. Then it sets `scheduled`, 1440 minutes, due now. Run again, or on a database where the source is not in that state, it changes nothing. `server/gnosisScheduledFlip.test.ts` tests each guard against a real MySQL (and MariaDB 10.11), including that it names no protocol and that a source with a key close to the approved one and a Gnosis cursor is left alone, and twenty-two planted changes to the file, the live check and the names and ratings work are each caught.
+- **What the pass reads.** The pass itself is unchanged: chain facts from finalized blocks through the keyed `GNOSIS_RPC_URL` endpoint, windows of at most 10,000 blocks, up to three at a time, a run bounded to 100 windows, 30 seconds and 10,000 events, no URI fetched and no reviewed record added. A day is about 17,000 blocks (5.08 s a block), two windows. The registry is nearly still: through the keyed endpoint it recorded no event of the three kinds in the 17,000 blocks to 2026-11-06 (4 in the week and 48 in the month, half of them registrations), against 8,412 in all and 5,304 in the busiest window. One run a day has room. The pass does not start while the `chain_gnosis` switch is off.
+- **At the deploy.** The migration runs at the first boot, the source is due at once, and the worker's next ticks (every 15 minutes) claim it; the worker takes at most two due sources a tick, so a freshly flipped source can wait two or three ticks. The first run reads from the stored cursor, where the manual pass stopped, to the finalized head, a few windows. The next is due a day after it finishes.
+- **The live check.** `scripts/verify-live.mjs` gets `erc8004_gnosis: 36`, so a scheduled Gnosis source that has not succeeded within 36 hours fails the check. The status page keeps a copy of the limits (`client/src/lib/statusModel.ts`), and a test holds it equal to the script's, so it gets the same line. Between the deploy and the end of the first run the source still shows its old success, so run the check again after the first tick.
+- **What changes on the site.** The Gnosis tab's "Last successful read of this chain" moves each day, and a registration that appears is listed, under the listing rules, within a day. Nothing else changes.
+- **The migration number.** The boot runner refuses to start when a version is recorded under another file's name, so the number was checked against production's migration log on 2026-11-06, read over ssh: versions 57 down to 52 recorded under the same file names as the repo (57 is `0057_gnosis_erc8004_protocol.sql`, applied at 21:08Z) and nothing at 58. No other pull request was open.
+- **Rolling back.** Set the source back to operator-paced with `UPDATE ingestion_sources SET executionPolicy = 'manual_only' WHERE sourceKey = 'gnosis-erc8004-identity-registry';`. The cursor is not touched.
+- **Chosen by Claude, so the operator can say no.** Once a day, as Arc's (until 2 November), Ethereum's and Monad's are, and the 36-hour allowance the other daily sources get.
diff --git a/apps/nooscape-relay/docs/gnosis-lights-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-lights-2026-11-06.md
new file mode 100644
index 0000000..78816a6
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-lights-2026-11-06.md
@@ -0,0 +1,58 @@
+# Gnosis lights on the home map
+
+Front end and the words around them. No migration, no new table, no worker step and no new read: the lights are the groups of the Gnosis page (`liveData.registryFleets`, [the Gnosis page](./gnosis-world-2026-11-06.md)), so the map and the page cannot disagree. It is [the Monad lights](./monad-lights-2026-11-01.md) done for one more chain.
+
+**Status.** Built on 2026-11-06 on branch `feat/gnosis-extras`, after the Gnosis page. It is live on the home map only once that pull request merges and deploys, behind `chain_gnosis`.
+
+**Decided:** 2026-11-06, by the operator, in chat: "lets go fully live with gnosos once you have all you need to do it", on the list of what Gnosis still lacked (a chain page, lights, a share card, a census report, claims). The shape of the answer is mine, chosen to follow the Monad lights, so the operator can say no to any of it.
+
+## What a visitor sees
+
+Gnosis appears on the home map as **large octagons**: one for each of the five largest groups on the Gnosis page, drawn in the chain's colour with its count written under it. A group is a registering wallet, a host or a profile link that 50 or more registrations on the chain share. The outline is the one on the Gnosis tab's icon, a regular octagon (a circle is BNB Chain's, a diamond Solana's, a hexagon Robinhood Chain's, a dome Arc's, a cross Base's, a pentagon Ethereum's, a star Monad's), so no chain is told apart from another by colour alone. The colour is `--ns-chain-gnosis` (#2DD4BF), and a test holds it to its design token.
+
+| | |
+|---|---|
+| The shared fact | one registering wallet, one host or one profile link that 50 or more registrations on the chain share |
+| The wording | "3,851 registrations on Gnosis point their profile link at marketplace.olas.network." The wallet and link sentences are Arc's, with the chain's name. |
+| What it does not show | a wallet is the address that sent the registrations, a host can serve many unrelated people, and none of it says who runs the agents or whether any of them works |
+
+**Why an octagon and not the hexagon the tab had.** Robinhood Chain's lights are hexagons (`fleetShape`), so a Gnosis hexagon would have been told from them by colour alone. The Gnosis tab's icon, its lights and its page plates are an octagon instead, and a test holds the shapes of every chain on the map's key apart.
+
+**Why five.** Base, Ethereum and Monad draw five each because eight each put 50 lights on the map and crowded it at 375 pixels. The limit is a constant of its own (`GNOSIS_LIGHTS_LIMIT` in `shared/mapFleets.ts`), so tuning it never moves another chain. On 2026-11-06 Gnosis had 2 groups (the host and one registering wallet), so the key reads "Gnosis groups · 2 of 2 drawn", and the line under the map says the same in a sentence. A light's size grows with the log of its count between 8 and 24 pixels.
+
+The card for an octagon is the Arc dome's card with the chain's words: the fact with its count, what it does not show, that a group is not an agent and is not reviewed (no tier, no evidence, no link to a record), the chain, the registering wallet where there is one, and "Open the Gnosis page". A light never opens the evidence read and the Owl is told nothing about one. A test fails on any grading word.
+
+**Overlap.** A registration can be counted in a wallet's light and in its host's light, so two lights can be nearly the same size. The card says groups are counted one by one and can overlap (`ARC_OVERLAP_NOTE`).
+
+**No hollow dots.** Only groups are drawn. The Gnosis page draws groups only, so the home map shows no more of the chain than its page does.
+
+## What is read
+
+Home asks `liveData.registryFleets({ chain: "gnosis" })` while `chain_gnosis` is in the build's switch list. The call is not waited for (the hero's status does not depend on it) and is not retried, so a failed or empty read leaves the map exactly as it was. It is the same cached read the page makes and answers nothing until a walk that reached the finalized head has published.
+
+## How it is drawn
+
+The Gnosis lights are placed after Monad's (`lightOrder` 7), so every other light and every dot is exactly where it was (a test), and a light starts where its id hashes and is pushed away from everything placed before it, as the others are. An octagon has a corner at the light's reach at each eighth of a turn, flat sides at the top, bottom, left and right, in the proportion of the tab's icon. Motion, hover, focus, pinning, the keyboard and the screen-reader summary ("Also 2 large octagons: each is a group of Gnosis registrations that share one wallet, host or profile link, with its count. An octagon is a group, not an agent ...") work as for the other lights.
+
+`recordChain` no longer sets Gnosis aside, so a record whose protocols name Gnosis's identity registry is a dot of that chain, listed in the key after Monad. There is none today. The map's chain type is now the whole list of listed chains (`MapChainKey` is `ListedChainKey`, with no exception).
+
+## Not here
+
+- **A census link under the caption.** Gnosis had no census report when the lights were built. The report followed ([the record](./gnosis-census-2026-11-06.md)), and the line under the map links it as it links the other chains' dated reports.
+- **The hero's Noosphere**, the background of sampled lights, for the reason the Arc lights give.
+- **Hollow dots** for the listed entries, as above.
+
+## Held by a test
+
+- `constellationModel.test.ts` (Gnosis is a fourth row of the table that holds Base, Ethereum and Monad): a group's record, its protocol and chain, the five largest in a fixed order with a tie broken by id, the order after the other lights, the placement that leaves every dot and every other light where it was, the scanner line, the screen-reader summary, the marker equal to the tab icon, the colour equal to the design token, the key's order, and that no two chains on the key share an outline.
+- `mapFleets.test.ts`: the caption's words, a count of one and of none, and no grading word or long dash; the eight shapes.
+- `landingHero.test.ts`: the read only while the switch is on, not waited for and not retried, the node kind, the outline, the card's words and link, and the key entry and the caption.
+- Planted bugs: 26 across the page and the lights, each caught by a test, listed in [the Gnosis page's record](./gnosis-world-2026-11-06.md).
+
+## Checked
+
+On a client build with production's switch list and `chain_gnosis`, served by a preview rig that forwards the live site's data (GET only) and answers Gnosis's groups with the real ones, in the built-in browser:
+
+- The key reads "Gnosis groups · 2 of 2 drawn" with an octagon beside the other chains', the caption under the map reads "Large octagons are Gnosis groups of registrations that share one wallet, host or profile link, 50 or more registrations each: 2 of 2 groups ...", and the map's accessible summary has the sentence about two large octagons.
+- The map's canvas holds teal pixels where the two octagons are (992 of them), and the heading reads "Robinhood, BNB, Solana, Ethereum, Base, Arc, Monad, Gnosis. Same Owl, eight skies." with eight tabs and the link "Open the Gnosis page". The document had no horizontal overflow and the console held no error.
+- Not checked: a clicked light's card in the browser (the pane would not paint the map after a scroll); its words are held by the landing hero test.
diff --git a/apps/nooscape-relay/docs/gnosis-ratings-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-ratings-2026-11-06.md
new file mode 100644
index 0000000..3d14388
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-ratings-2026-11-06.md
@@ -0,0 +1,31 @@
+# Ratings for Gnosis
+
+One line of configuration. The ratings step counts the ratings a chain's ERC-8004 reputation registry records; Gnosis's entry now names that registry, so the step counts Gnosis's too ([the step's record](./extra-chain-ratings-2026-10-21.md), and [Monad's](./monad-ratings-2026-11-01.md), which this follows). No migration, no new table, no setting and no change to what the site says a rating is.
+
+**Status.** Built on 2026-11-06 on branch `feat/gnosis-self-maintaining`. It takes effect once that pull request merges and deploys, behind `chain_gnosis`, which production has on.
+
+**Decided:** 2026-11-06, by the operator, in chat: "lets go fully live with gnosos once you have all you need to do it", on the list of what Gnosis still lacked (ratings among them, [section 7 of its record](./gnosis-erc8004-2026-11-06.md)). The registry is the other chains' and the window is the one the identity pass already uses on this plan, so the operator can say no to any of it.
+
+## What changes
+
+`GNOSIS_CHAIN` in `server/ingestion/erc8004Chains.ts` gets `reputation: { registry: ERC8004_REPUTATION_REGISTRY, window: 10_000 }`. The step reads a chain's history from its identity registry's deploy block, one window at a time, and counts the two events the registry writes for a rating (`NewFeedback`) and for taking one back (`FeedbackRevoked`). Nothing else in the step knows about chains by name: the tab's figure is looked up by chain key, so Gnosis needs no other code.
+
+## Measured on 2026-11-06
+
+- **The registry exists on Gnosis.** The canonical reputation registry (`0x8004BAa1...9b63`, the same address as on Ethereum, Base, Arc and Monad) is deployed there as a proxy, as the identity registry is.
+- **What it holds.** A walk of every window from the identity registry's deploy block (44,505,010) to the head, 465 windows of 10,000 blocks, through the keyed Alchemy endpoint found 4,346 events: 4,341 ratings, no revocation and 5 events of proxy administration that the step ignores. The first was at block 44,505,016 and the last at 45,211,168, within the first month; the registry has recorded none in the 30 days to 2026-11-06. 23 of the 465 windows hold an event, and the busiest holds 580.
+- **Why the window is 10,000 blocks.** The first attempt asked for 50,000, which this plan refuses (the identity pass records the same limit). 10,000 is the widest range it answers, and the entry's `maxLogRange` says so.
+- **What the step counts.** The step itself, run against a scratch database and the real chain at the share of the budget it gets in production (6 seconds: 30 seconds over the five chains that name a reputation registry), caught up in 14 runs and 465 windows, 83 seconds of runs in all, and counted 4,341 ratings and no revocation, the same as the walk. A run read between 19 and 39 windows, 25 in the slowest.
+
+## What a visitor sees
+
+The Gnosis tab says "4,341 ratings recorded" where it now says "Not measured". The figure appears only once the step has read the whole history (it is shown when `caughtUpAt` is set), so a half-read count is never shown. At one run every 30 minutes the catch-up takes about 14 runs, so about seven hours after the deploy, and the stats API's `ratings_recorded` for Gnosis moves from null to the count with it. The step runs on a tick that claimed sources, so a busy tick can make it later.
+
+## Cost
+
+During the catch-up a run adds up to 6 seconds to a tick that runs it, and the step does not start when its tick has already run 100 seconds. About 465 `eth_getLogs` calls are made in all on the keyed Alchemy plan. After it the step reads one window a run, three requests. A fifth chain lowers each chain's share of the 30-second budget from 7.5 to 6 seconds; the other four have caught up and read a window or two a run, so it costs them nothing.
+
+## Held by a test
+
+- `server/ingestion/erc8004Chains.test.ts` and `server/chainRatings.integration.test.ts`: the registry is named on Ethereum, Base, Arc, Monad and Gnosis, Gnosis's window is 10,000 blocks and no wider than the provider answers (`maxLogRange`), and the entries are sound (`validateErc8004Chains`). The integration test runs on MySQL 8.4 and on MariaDB 10.11.
+- Planted bugs: three, each caught. A window of 50,000 blocks, the identity registry's address in place of the reputation registry's, and no registry named.
diff --git a/apps/nooscape-relay/docs/gnosis-world-2026-11-06.md b/apps/nooscape-relay/docs/gnosis-world-2026-11-06.md
new file mode 100644
index 0000000..0562a9e
--- /dev/null
+++ b/apps/nooscape-relay/docs/gnosis-world-2026-11-06.md
@@ -0,0 +1,52 @@
+# The Gnosis page (Chain Worlds, stage G)
+
+Front end and one server read, from data that already exists. No migration, no new table, no worker step, no change to the listing rules or the gate.
+
+**Status.** Built on 2026-11-06 on branch `feat/gnosis-extras`, with the Gnosis lights that follow it in the same pull request. It is live only once that pull request merges and deploys, behind `chain_gnosis`, which production has on since the Gnosis go-live ([the record](./gnosis-erc8004-2026-11-06.md)). "Checked" below says what was seen on a built page.
+
+**Decided:** 2026-11-06, by the operator, in chat: "lets go fully live with gnosos once you have all you need to do it", after Gnosis went live (it had no page: `/chains/gnosis` answered 404). Read as the page the other chains have, and as groups only, the way BNB Chain's, Base's, Ethereum's and Monad's pages are ([stage A](./chain-worlds-2026-10-20.md), [stage D](./base-world-2026-10-21.md), [stage E](./ethereum-world-2026-10-27.md), [stage F](./monad-world-2026-11-01.md)), standing on the platforms of the shared fact.
+
+**Why groups only fits Gnosis.** The directory lists 1.0 percent of the registrations the registry holds (41 of 4,179), and one host name holds most of the rest: marketplace.olas.network has 3,851 of them (92 percent), 2,000 stored and 1,851 counted past the host cap ([the flood cap](./flood-host-cap-2026-10-21.md)). 10 of the 41 listed entries still show a number for a name until the names step reads the files their links name. A sample of listed entries would say little about the chain, and a page of groups says what the registry is.
+
+## What a visitor sees
+
+- **The page.** `/chains/gnosis`, World 08, "The teal lantern", "A quiet registry, read in groups." Teal (`#2DD4BF`, the token of its home tab, `--ns-chain-gnosis`) with a soft violet-pink (`#F0ABFC`) for the lines. A group is a stack of three plates in the shape of the Gnosis tab's icon, an octagon. Each platform has even rounded corners, a glow from the top and a faint diagonal lattice. The route exists only in a build that has the switch, the server answers 404 for it otherwise (`FLAGGED_CLIENT_ROUTES`), and its head and its place in the sitemap are written only while the switch is on. The home tab row gets "Open the Gnosis page" after Monad's.
+- **What it shows.** The three figures every chain has (ratings say "Not measured" until the ratings step reads Gnosis, [the record](./gnosis-ratings-2026-11-06.md)) and the sentence the Gnosis tab has ("The chain holds N registrations. The published listing rules put M of them in the directory; the rest are held out, not judged."). Then up to three platforms: same host, same profile link, same registering wallet, in the order the other group pages use; a platform with nothing on it is not drawn. Each platform draws up to eight groups, the ones that 50 or more registrations share (`FLEET_MIN`), largest first, counted over every registration the registry holds, listed or held out. A group's size grows with the log of its count and says nothing else.
+- **What the registry gives it today.** Two groups: the host (3,851 registrations) and one registering wallet (2,000, which are the registrations stored for it; the 1,851 counted past the host cap have no wallet recorded). No group of a shared profile link meets the rule. So the page draws two formations on two platforms.
+- **A group's card.** It says what the group counts ("3,851 registrations on Gnosis point their profile link at marketplace.olas.network"), what that does not show, that a group is not an agent and is not reviewed, and that groups overlap.
+- **No single registration is drawn.** `CHAIN_SHOWS_ACKNOWLEDGED.gnosis` is false, as BNB Chain's, Base's, Ethereum's and Monad's are. It is the one constant to change if the operator wants a sample of listed entries; Gnosis would then also need a sample read, and `chainSample` accepts Arc and AgenC only.
+- **The events.** Gnosis has no global feed. The rail says so and points at no census.
+- **The census report.** The inspector of a group links it (`CHAIN_GROUP_REPORT.gnosis`). It followed the operator's counts ([the record](./gnosis-census-2026-11-06.md)).
+- **The outline.** The Gnosis tab's icon was a hexagon when the chain went live. Robinhood Chain's lights and page plates are already hexagons (`fleetShape`), so on the map and on the pages two chains would have differed only by colour. Gnosis's icon, lights and plates are an octagon, which no other chain uses; a test holds the eight outlines apart.
+
+## What is read
+
+`liveData.chainStats` (the figures and the as-of line), `publicRecords` (the reviewed records, none for Gnosis today) and `liveData.registryFleets`, which now accepts `{ chain: "gnosis" }` as it accepts Arc, Base, Ethereum and Monad. It reads the registry rows the Gnosis pass stores and returns a shared fact, its kind and how many registrations share it, and nothing about any one registration. It answers nothing while `chain_gnosis` is off, while no Gnosis source is active, and until a walk that reached the finalized head has published. The answer is held in the directory cache like every aggregate.
+
+## What is held by a test
+
+- `client/src/lib/chainExplorerModel.test.ts`, "the Gnosis world": the page is on offer only while `chain_gnosis` is in the build's list, last when all five extra chains are on; it draws groups and reviewed records only, never an entry a feed or the directory lists, and nothing of another chain; the platforms stand host, link, wallet, with a plate of records after them only when one exists and no empty plate; it has no feed, sets its plates in columns, names its registry and links its census report; its colour is the token of Gnosis's tab; its words hold no score, rank or verdict. The worlds are numbered one to eight.
+- `server/mapFleets.test.ts`: a Gnosis group is an octagon, words its fact "on Gnosis", shares Arc's note that groups overlap and holds no verdict word. Eight chains, eight shapes.
+- `server/clientRoutes.test.ts`, `server/routeHead.test.ts` and `server/sitemap.test.ts`: the page is served, headed and listed only while its switch is on, and no other chain's switch opens it; eight chain pages carry a card and no other fixed page does; each card is a different 1200 by 630 PNG under 600 KB, and its alt text names the chain, says the formations are an illustration, carries the site's two promises and holds no figure.
+- `client/src/components/home/chainTabsModel.test.ts` and `client/src/components/chain/chainComponents.test.ts`: the page link follows the switch, and the event rail words Gnosis's missing feed as Gnosis's.
+- `server/registryFleets.integration.test.ts`, against a real MySQL and MariaDB: Gnosis's groups come from Gnosis's rows only, nothing is served while the switch is off, and Arc's, Base's, Ethereum's, Monad's and Gnosis's never mix. The test pastes migration 0057 by hand, as production has it, because the boot runner skips it.
+
+## Checked
+
+On a client build with production's switch list and `chain_gnosis`, served by a preview rig that forwards the live site's data and answers Gnosis's groups with the real ones (read once, with the pass's own code, from a scratch MariaDB 10.11 that holds the real first pass: 4,179 registrations recorded, 41 listed, 1,851 counted past the host cap), in the built-in browser at desktop width and at 375 pixels:
+
+- The page shows two platforms and two formations (the host and the wallet), both octagons, no overlap, no horizontal overflow at 375 pixels (the document is 375 pixels wide) and no console error. The figures read 41 acknowledged entries, 0 reviewed records and "Not measured" ratings, and the sentence "The chain holds 4,179 registrations. The published listing rules put 41 of them in the directory; the rest are held out, not judged." The numbered row has Gnosis as 08.
+- The share card is 1200 by 630 and 472,229 bytes, built with the site's own formation marks and its two typefaces.
+- Planted changes: 26 across this page and the lights, each caught by a test: a world left out of the build's list, a page that may draw single listed entries, a group filtered under Monad's protocol, an unnamed registry, a title or number of another page, the platforms in another order, a group drawn as a star, worded as Monad's, or without Arc's note, a page the server does not serve behind its switch, a sitemap line left out, Monad's card file or title, a home link to Monad's page, a rail with Monad's words, Monad's colour, and a groups read that refuses Gnosis.
+- Not run on a real server: the switch-off case (no page, no sitemap line, no head). The route, head, sitemap and fleets tests hold it.
+
+## Not in this stage
+
+- **A census report and claims.** The operator asked for both on 2026-11-06 ("do the census report and claims"). Claims are built behind their own switch, off ([the record](./gnosis-claims-2026-11-06.md)); the census report followed ([the record](./gnosis-census-2026-11-06.md)).
+- **A decision for the operator: names.** The page names the host and shortens the wallet, as the other group pages do: marketplace.olas.network (3,851) and 0x6e8f...d2f3 (2,000). The groups are described neutrally on every card, and the names are public facts, but it is the operator's call whether Gnosis's page should hold back what a census would.
+- **A decision for the operator: the title, the words, the colours and the outline.** "The teal lantern" and "A quiet registry, read in groups." are the page's name and line, chosen here in the manner of the other worlds. The teal is the tab's own token; the violet-pink, the lattice and the octagon are choices made here (the octagon replaces the hexagon the tab had, for the reason above). They are one constant each (`CHAIN_WORLDS.gnosis`, `chainWorld.css`, `EXTRA_ICON.gnosis`) and the card carries them.
+- **The listing rules** are Gnosis's own (`GNOSIS_LISTING_RULES`), set when the chain was added.
+
+## Files
+
+`client/src/pages/ChainExplorer.tsx` (the page, now reading `registryFleets` for Arc, Base, Ethereum, Monad and Gnosis), `client/src/lib/chainExplorerModel.ts` (what is drawn and the words), `client/src/components/chain/FormationMark.tsx` (the octagon), `chainWorld.css` (the plates), `ChainEventRail.tsx` (the feed note), `client/src/components/home/ChainTabs.tsx` (the link), `chainTabsModel.ts` (the icon), `client/src/App.tsx`, `server/clientRoutes.ts`, `server/routeHead.ts`, `server/sitemap.ts`, `client/public/nooscape-card-chain-gnosis.png`, `shared/mapFleets.ts`, `server/registryFleets.ts`, `server/routers/liveData.ts`, and the tests above.
diff --git a/apps/nooscape-relay/docs/move-to-vps-2026-11-04.md b/apps/nooscape-relay/docs/move-to-vps-2026-11-04.md
new file mode 100644
index 0000000..fdd3063
--- /dev/null
+++ b/apps/nooscape-relay/docs/move-to-vps-2026-11-04.md
@@ -0,0 +1,3 @@
+# Moving Nooscape to its own VPS: the kit, the day and the way back
+
+This record is withheld from the public tree. It is kept in the private archive.
diff --git a/apps/nooscape-relay/docs/naming-2026-10-18.md b/apps/nooscape-relay/docs/naming-2026-10-18.md
index c4ada84..c17efe9 100644
--- a/apps/nooscape-relay/docs/naming-2026-10-18.md
+++ b/apps/nooscape-relay/docs/naming-2026-10-18.md
@@ -27,7 +27,7 @@ Two rules from the draft were changed on purpose:
| `/checker` and `/developers`, and the page descriptions the server writes for them | "an open observatory of AI agents"; "the reviewed records" |
| Header | Unchanged: it already said "Open agent observatory" |
-On 2026-10-21 the chain list in the descriptions and in the hero subline went from three chains to five (Solana, Robinhood Chain, BNB Chain, Base and Arc), because Arc and Base are live. The static text in `client/index.html` and `HERO_COPY.subcopy` are tied together by `client/src/naming.test.ts`, so they change together. Unlike the region tabs they do not follow the chain switches: a build with Base and Arc off would still say five. On 2026-10-27 the list went from five to six with Ethereum (Solana, Robinhood Chain, BNB Chain, Ethereum, Base and Arc), the same two files changing together, because Ethereum is live. On 2026-11-01 it went from six to seven with Monad (Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc and Monad), the same two files again, because Monad is live: its source was staged, approved and run that day, and the directory lists 144 of its 10,420 registrations. The sentences on `/checker` and the sources page that say which registries the names step reads are not part of this list and still named six, because the names step did not read Monad yet. Update 2026-11-01 (later): the names step took Monad, and those sentences now name seven too.
+On 2026-10-21 the chain list in the descriptions and in the hero subline went from three chains to five (Solana, Robinhood Chain, BNB Chain, Base and Arc), because Arc and Base are live. The static text in `client/index.html` and `HERO_COPY.subcopy` are tied together by `client/src/naming.test.ts`, so they change together. Unlike the region tabs they do not follow the chain switches: a build with Base and Arc off would still say five. On 2026-10-27 the list went from five to six with Ethereum (Solana, Robinhood Chain, BNB Chain, Ethereum, Base and Arc), the same two files changing together, because Ethereum is live. On 2026-11-01 it went from six to seven with Monad (Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc and Monad), the same two files again, because Monad is live: its source was staged, approved and run that day, and the directory lists 144 of its 10,420 registrations. The sentences on `/checker` and the sources page that say which registries the names step reads are not part of this list and still named six, because the names step did not read Monad yet. Update 2026-11-01 (later): the names step took Monad, and those sentences now name seven too. Update 2026-11-06: the names step took Gnosis, and those sentences now name eight, while the hero sentence and the page descriptions still name seven because the operator said "seven skies works" when Gnosis went live.
No number appears in the hero copy. The counts move every day, and the honest state of most records is said in words ("Most records are listed only. A few are reviewed.").
diff --git a/apps/nooscape-relay/docs/worker-operations.md b/apps/nooscape-relay/docs/worker-operations.md
index 6c81820..ce15297 100644
--- a/apps/nooscape-relay/docs/worker-operations.md
+++ b/apps/nooscape-relay/docs/worker-operations.md
@@ -1,5 +1,7 @@
# Rate-limited ingestion worker operations
+> **Since 2026-11-06** the worker, the checks and the webhooks run from `/etc/cron.d/nooscape-jobs` on the VPS ([the move](./move-to-vps-2026-11-04.md)). What this page says about Hostinger's cron below (the 150-second limit, the CDN's 504, two processes of the app) describes the host they replaced.
+
> **Current status (2026-10-13):** The production worker is enabled but bounded. It processes up to two due approved sources per tick (raised from one by migration 0027) and supports seven scheduled protocols: `a2a`, `catalog`, `census`, the `erc8004` activity walk (scheduled by 0017), the Metaplex `solana_registry` chain pass (scheduled by 0021, 15-minute cadence), the `solana_8004` chain pass (scheduled by 0027, 30-minute cadence), and the `solana_said` identity pass (scheduled by 0031, 60-minute cadence). `erc8004_reputation` and `usdg_settlement` remain manual-only and are rejected by the worker.
## Production model
@@ -13,8 +15,8 @@ Nooscape uses a host-managed scheduled invocation of the authenticated worker-ti
| Host schedule | Every 15 minutes |
| Database global minimum interval | 15 minutes, less 30 seconds for a tick that arrives early (`CLAIM_EARLY_TOLERANCE_MS`) |
| Maximum sources per tick | 2 (migration 0027; was 1) |
-| Source cadence | `scheduleMinutes` per approved source (daily for metadata sources; from 5 minutes (Base) and every hour (Arc, since 2026-11-02) to once a day (Ethereum, Monad) for the chain passes) |
-| Scheduled protocols | `a2a`, `catalog`, `census`, `solana_registry` (Metaplex chain pass, 0021), `erc8004` (activity walk, 0017), `solana_8004` (chain pass, 0027), `solana_said` (identity pass, 0031), `erc8004_bsc` (BNB Chain identity pass, 0035), `erc8004_base` (Base identity pass, handed to the scheduler by hand on 2026-10-20), `erc8004_arc` (Arc identity pass, 0050; every hour since 0055), `erc8004_eth` (Ethereum identity pass, 0052), `erc8004_monad` (Monad identity pass, 0054) |
+| Source cadence | `scheduleMinutes` per approved source (daily for metadata sources; from 5 minutes (Base) and every hour (Arc, since 2026-11-02) to once a day (Ethereum, Monad, Gnosis) for the chain passes) |
+| Scheduled protocols | `a2a`, `catalog`, `census`, `solana_registry` (Metaplex chain pass, 0021), `erc8004` (activity walk, 0017), `solana_8004` (chain pass, 0027), `solana_said` (identity pass, 0031), `erc8004_bsc` (BNB Chain identity pass, 0035), `erc8004_base` (Base identity pass, handed to the scheduler by hand on 2026-10-20), `erc8004_arc` (Arc identity pass, 0050; every hour since 0055), `erc8004_eth` (Ethereum identity pass, 0052), `erc8004_monad` (Monad identity pass, 0054), `erc8004_gnosis` (Gnosis identity pass, 0058) |
| Manual-only protocols | `erc8004_reputation` and `usdg_settlement`, which the worker rejects. The AgenC (`solana_agenc`) source is active but manual-only: an operator runs it, and the worker cannot claim it until a reviewed flip |
| Request behavior | Approved source boundary only; bounded, metadata-only adapter behavior; no credentials, cookies, tool invocation, or payment flow |
@@ -39,6 +41,7 @@ The worker checks the database control plane first. When paused, it makes no ext
- **Arc identity pass (`erc8004_arc`, 0050, 0055):** scheduled once a day (1440 minutes) by 0050 after an operator ran the first passes, and every hour (60 minutes) by 0055 since the flood of 2 November 2026; 0050's WHERE requires the approved source key, an active manual-only source with an `arc:` cursor, a recorded success, and no failure (it does not name the protocol, because no SQL run at boot may name the by-hand migration 0046's values). It is the BNB Chain pass on another chain: chain facts from finalized blocks through the Arc node (`X402_RPC`), windows of 1,000 blocks applied in chain order, a run that the clock ends after 30 seconds (200 windows planned and an event ceiling of 1,000,000, neither of which the clock reaches), and it never fetches a URI. Arc finalizes instantly, so a run that reaches the head publishes the listing in the same run. Until 2 November 2026 the windows were 100,000 blocks and a run was bounded to 10 windows, 20 seconds and 1,000 events, sized for a day of Arc that was about two windows; a flood from one platform (about 100,000 registrations a day from 1 November) ended every run after one piece of the first window and the walk fell a day further behind each day ([the record](./arc-flood-pass-2026-11-02.md)). 0055's WHERE requires the approved source key, an active source on the scheduler that is still on the daily cadence, and an `arc:` cursor, so an operator's later cadence is never overwritten, and it sets the next run to now so the pass starts on the backlog at the next tick. A failed run is tried again an hour later (`finishIngestionRun` adds the cadence whatever the outcome), and until then the source shows a failure. The pass does not start while the `chain_arc` switch is off, and a scheduled run then records a failure. The live check expects a success within 12 hours.
- **Ethereum identity pass (`erc8004_eth`, 0052):** scheduled once a day (1440 minutes) after an operator ran the first pass; the flip's WHERE is the Arc flip's with the Ethereum source key and an `eth:` cursor, and it names no protocol. It is the BNB Chain pass on another chain: chain facts from finalized blocks through the keyed `ETH_RPC_URL` endpoint, windows of at most 2,000 blocks applied in chain order, a run bounded to 100 windows, 30 seconds and 5,000 events, and it never fetches a URI. A day of Ethereum is about 7,200 blocks, four windows, and the registry gains about 130 registrations a day, so one run a day has room; if Ethereum ever records more than 5,000 events a day the cadence has to shorten. A failed run is tried again a day later, and until then the source shows a failure and the live check fails. The pass does not start while the `chain_ethereum` switch is off, and a scheduled run then records a failure. The live check expects a success within 36 hours. See [the record](./ethereum-go-live-2026-10-27.md), section 9.
- **Monad identity pass (`erc8004_monad`, migration 0053 by hand, 0054 for the flip):** scheduled once a day (1440 minutes) after an operator ran the first pass (on 2026-11-01, ending at 03:27Z, 144 of 10,420 registrations listed); the flip's WHERE is the Arc flip's with the Monad source key and a `monad:` cursor, and it names no protocol. It is the BNB Chain pass on another chain: chain facts from finalized blocks through the keyed `MONAD_RPC_URL` endpoint, windows of at most 50,000 blocks, up to three at a time, a run bounded to 100 windows, 30 seconds and 10,000 events, and it does not start while the `chain_monad` switch is off. See [the record](./monad-erc8004-2026-11-01.md).
+- **Gnosis identity pass (`erc8004_gnosis`, migration 0057 by hand, 0058 for the flip):** scheduled once a day (1440 minutes) after an operator ran the first pass (on 2026-11-06, ending at 21:12Z, 41 of 4,179 registrations listed); the flip's WHERE is the Monad flip's with the Gnosis source key and a `gnosis:` cursor, and it names no protocol. It is the BNB Chain pass on another chain: chain facts from finalized blocks through the keyed `GNOSIS_RPC_URL` endpoint, windows of at most 10,000 blocks (the most the plan answers), up to three at a time, a run bounded to 100 windows, 30 seconds and 10,000 events, and it does not start while the `chain_gnosis` switch is off. See [the record](./gnosis-erc8004-2026-11-06.md).
- **8004-solana chain pass (0027):** scheduled at a 30-minute cadence — chain-facts-only diff with INSERT-IGNORE ledger writes, a 98%-of-prior-live enumeration floor, and per-closure confirmation reads.
- **BNB fleet and template clustering (0038):** a best-effort step after the sources and the Owl's Catch, only on a tick that claimed sources. It reads `tokenURI` for the listed entries without evidence through Multicall3 at 75 CU/s (at most 40 batches and 20 seconds a run), recomputes the registry's fleets every 6 hours and stores gate G1 on each listed entry. With the tables missing (migration 0038 not run) it does nothing and logs nothing; any other failure is one `nooscape_bsc_clusters_failed` line and never fails the tick. It also stores the endpoint-host groups (hosts that 50 or more listed entries declare as their agent address host) in `bsc_endpoint_host_groups` (migration 0040); with that table missing it skips that part alone. Nothing reads the table. See [bsc-clusters-2026-10-16](bsc-clusters-2026-10-16.md).
- **Robinhood names:** a best-effort step after the BNB steps, only on a tick that claimed sources. It reads the registration link that a reviewed Robinhood record's summary names, when the record's name is still "Agent #n", through the shared safe fetch (robots.txt first, a second between requests to a host, the configured IPFS gateway for ipfs links), at most 16 files a run and 6 from one host, nothing started after 20 seconds, only on a tick under 100 seconds old, a run at most every 30 minutes (the gate between two runs is 28 of them, `server/stepInterval.ts`: a step starts at a different time in each tick, and a gate of exactly 30 skipped every other tick once the rater fill ended), a link tried again no sooner than 6 hours after its last try and never past the Solana reader's tries. It also names the acknowledged Robinhood directory entries: for the entries that show "Agent #n" and have no recorded link it reads `tokenURI` from the chain in one Multicall3 `eth_call` of up to 16 reads (one attempt; a 403 or 429 pauses chain reads for 2 hours, any other failure for 30 minutes), records the hash of each link on the entry, queues the https and ipfs ones and writes a name that was read to the entries it belongs to, with a sentence in the entry's note. It keeps the answers in `agent_registration_resolutions` (no migration); a reviewed record's name is laid over the placeholder when the record is served. It never throws and a failure is one `nooscape_robinhood_names_failed` line. See [approvals/2026-10-17-robinhood-names](approvals/2026-10-17-robinhood-names.md) and [approvals/2026-10-17-robinhood-entry-names](approvals/2026-10-17-robinhood-entry-names.md).
diff --git a/apps/nooscape-relay/drizzle/0057_gnosis_erc8004_protocol.sql b/apps/nooscape-relay/drizzle/0057_gnosis_erc8004_protocol.sql
new file mode 100644
index 0000000..e8adcf1
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/0057_gnosis_erc8004_protocol.sql
@@ -0,0 +1,27 @@
+-- The Gnosis ERC-8004 identity pass (migration 0057): adds the protocol value erc8004_gnosis.
+-- The pass reads the identity registry's Registered, Transfer and URIUpdated events on Gnosis and writes directory entries and registry rows only
+-- (docs/gnosis-erc8004-2026-11-06.md), so the only schema change is the new protocol value on the tables that carry the list.
+--
+-- This migration is MANUAL: the boot runner skips it (MANUAL_MIGRATIONS in server/dbMigrations.ts). The owner applies it by pasting this file
+-- into the host's SQL console, when they choose. docs/gnosis-erc8004-2026-11-06.md has the order, the record to insert afterwards, the check and the
+-- rollback. It is manual, and not applied at boot, for the reason 0051 and 0053 give: every statement restates the whole list, and the list now ends with
+-- the Base, Ethereum and Arc values that migration 0046 keeps out of every boot, the AgenC value of 0051 and the Monad value of 0053, until the owner
+-- applies them. Nothing writes the new value until the source is staged, which needs the chain_gnosis switch on, so the value can exist with nothing using it.
+--
+-- Review notes:
+-- * Run 0046, 0051 and 0053 first. This file names their values too, because the list is restated whole, so on a database where any of them has not been
+-- run it would add those as well. Production has all three (0053 is recorded on 2026-11-01).
+-- * Four tables, as in 0046, 0051 and 0053: `agent_directory_entries`, `agent_directory_registry_rows`, `ingestion_sources` and `source_observations`. The
+-- pass writes directory entries and registry rows under a source row and never an observation, and all four are altered so that the four lists
+-- stay one list, as the schema holds it.
+-- * The value is APPENDED to the end of the list, as 0030, 0033, 0046, 0051 and 0053 did. MySQL can apply that as a metadata-only change, with no rebuild
+-- of the table and no copy of its rows (a value put mid-list renumbers the stored values and can force a rebuild). The tables are large, so run it
+-- at a quiet moment: even a metadata change waits for queries that are still reading the table.
+-- * Every statement writes the whole list, which is a superset of the live one, so running the file again, or after a crash part-way, changes nothing.
+-- * No data is written and no index changes.
+-- * Rolling back is the same four statements with the earlier list (the one in 0053), then deleting version 57 from `nooscape_schema_migrations`.
+-- MySQL cannot drop a value a row still holds, so check first that no row carries the new value (the check is in the doc).
+ALTER TABLE `agent_directory_entries` MODIFY COLUMN `protocol` enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis') NOT NULL;--> statement-breakpoint
+ALTER TABLE `agent_directory_registry_rows` MODIFY COLUMN `protocol` enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis') NOT NULL;--> statement-breakpoint
+ALTER TABLE `ingestion_sources` MODIFY COLUMN `protocol` enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis') NOT NULL;--> statement-breakpoint
+ALTER TABLE `source_observations` MODIFY COLUMN `protocol` enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis') NOT NULL;
\ No newline at end of file
diff --git a/apps/nooscape-relay/drizzle/0058_gnosis_scheduled_flip.sql b/apps/nooscape-relay/drizzle/0058_gnosis_scheduled_flip.sql
new file mode 100644
index 0000000..a704845
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/0058_gnosis_scheduled_flip.sql
@@ -0,0 +1,26 @@
+-- Gnosis identity registry scheduled flip (migration 0058). The same reviewed flip the Arc pass received from 0050, the Ethereum pass from
+-- 0052 and the Monad pass from 0054: the source moves from operator-paced to the scheduler, so the Gnosis registry refreshes by itself and no
+-- one has to press "Run chain pass". Once a day.
+--
+-- Preconditions, all encoded in the WHERE so a fresh or unhealthy deployment never wakes up to an unattended pass: the row is the approved
+-- Gnosis identity source (by its key), it is active, it is still manual_only (so running this file again is a no-op and an operator's later
+-- cadence change is never overwritten), it holds a `gnosis:` cursor (an operator staged and approved it and ran it, the last pass ending at
+-- 21:12Z on 2026-11-06), it has a recorded success, and it has no recorded failure. The protocol is not named, as in 0050, 0052 and 0054: this
+-- runs at every boot, including on a database that has not had the by-hand migration 0057 that adds Gnosis's protocol value, and
+-- dbMigrations.test.ts keeps those values out of every boot. The key is unique and the `gnosis:` cursor is written only by the Gnosis pass.
+--
+-- What the unattended pass is: the reviewed chain-facts-only posture of server/ingestion/erc8004Chains.ts. It reads windows of at most 10,000
+-- finalized blocks through the keyed Alchemy endpoint (GNOSIS_RPC_URL), up to three at a time, applies them in chain order and stops at a
+-- budget of 100 windows, 30 seconds and 10,000 events. It writes registry rows, ledger rows and URI updates, fetches no registration URI and
+-- adds no agent, snapshot or evidence event, so no run can add a reviewed record. A failed pass leaves the cursor untouched. Gnosis's
+-- finalized block sits about 40 blocks (under four minutes) behind the head, so a run lists what the chain had finalized when it started. The
+-- pass does not start while the `chain_gnosis` switch is off, and a scheduled run then records a failure.
+--
+-- Cadence 1440 minutes. finishIngestionRun sets nextRunAt to the finish time plus the cadence, whatever the outcome, and the cron fires on
+-- fixed 15-minute marks, so the pass runs about once every 24 hours and a run that fails is tried again a day later. A day of Gnosis is about
+-- 17,000 blocks (5.08 seconds a block), two windows. The registry has recorded 8,412 events of the three kinds in all, 5,304 in its busiest
+-- window (the launch), and none in the day to 21:00Z on 2026-11-06 (4 in the week, 48 in the month), so one run a day has room. Were Gnosis
+-- ever to record more than 10,000 events a day, a daily run would fall behind and the cadence would have to shorten.
+-- Until this runs, the chain's figures stay as of the last manual pass. nextRunAt uses NOW(), not UTC_TIMESTAMP(), for the reason migration
+-- 0031 records. The worker's maxSourcesPerTick and interval are not touched.
+UPDATE `ingestion_sources` SET `executionPolicy` = 'scheduled', `scheduleMinutes` = 1440, `nextRunAt` = NOW() WHERE `sourceKey` = 'gnosis-erc8004-identity-registry' AND `state` = 'active' AND `executionPolicy` = 'manual_only' AND `cursor` LIKE 'gnosis:%' AND `lastSuccessfulAt` IS NOT NULL AND `failureCount` = 0;
diff --git a/apps/nooscape-relay/drizzle/0059_catalog_party_host.sql b/apps/nooscape-relay/drizzle/0059_catalog_party_host.sql
new file mode 100644
index 0000000..53b0199
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/0059_catalog_party_host.sql
@@ -0,0 +1,14 @@
+-- The host a catalog entry points at, kept on its public snapshot (migration 0059, docs/catalog-party-rule-2026-11-07.md).
+-- A registry run leaves out a party that another source's public record already holds. It read that from the endpoint rows, and a catalog record
+-- carries none on purpose, so between catalog sources the rule saw nothing and the same agent was published once for each source that lists it.
+-- This adds one nullable column, `partyHost`, written for every catalog record from the host of its card and read by the lookup beside the endpoint
+-- rows. Nothing else reads it, and a null reads as "no host", so a row that has none changes nothing.
+-- The boot runner applies it before traffic, so the code that reads the column never ships ahead of it. The table holds hundreds of rows and the ALTER
+-- adds a nullable column, so it is quick.
+-- The second statement fills the column for the Agenstry feed's records, whose identity is `:`, so the rule holds for them
+-- from the first run after the deploy. The registries' records are left null: the host of their card is in the stored object and not in the database, so
+-- a registry's rows get their host the next time that source runs and an operator publishes the run (docs/catalog-party-rule-2026-11-07.md, "What is left").
+-- Rolling back is ALTER TABLE agent_public_snapshots DROP COLUMN partyHost and deleting version 59 from nooscape_schema_migrations; the lookup (the code
+-- before this change) then reads the endpoint rows alone.
+ALTER TABLE `agent_public_snapshots` ADD `partyHost` varchar(255);--> statement-breakpoint
+UPDATE `agent_public_snapshots` AS `p` INNER JOIN `source_observations` AS `o` ON `o`.`id` = `p`.`sourceObservationId` INNER JOIN `agent_identities` AS `i` ON `i`.`agentId` = `p`.`agentId` AND `i`.`identityType` = 'catalog_record' SET `p`.`partyHost` = LOWER(SUBSTRING(`i`.`externalId`, LOCATE(':', `i`.`externalId`) + 1)) WHERE `o`.`parserVersion` LIKE 'agenstry-catalog-%' AND `p`.`partyHost` IS NULL;
diff --git a/apps/nooscape-relay/drizzle/meta/0057_snapshot.json b/apps/nooscape-relay/drizzle/meta/0057_snapshot.json
new file mode 100644
index 0000000..893d191
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/meta/0057_snapshot.json
@@ -0,0 +1,5986 @@
+{
+ "version": "5",
+ "dialect": "mysql",
+ "id": "8d7baa3a-fbae-44aa-b852-d442ae930316",
+ "prevId": "435f458b-f14e-4cb4-8b44-e5a26a9a1ea8",
+ "tables": {
+ "agent_checks": {
+ "name": "agent_checks",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointId": {
+ "name": "endpointId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "checkedAt": {
+ "name": "checkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "statusCode": {
+ "name": "statusCode",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latencyMs": {
+ "name": "latencyMs",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bodySha256": {
+ "name": "bodySha256",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_checks_endpoint_idx": {
+ "name": "agent_checks_endpoint_idx",
+ "columns": [
+ "endpointId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_checks_agent_idx": {
+ "name": "agent_checks_agent_idx",
+ "columns": [
+ "agentId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_checks_id": {
+ "name": "agent_checks_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_edits": {
+ "name": "agent_claim_edits",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "claimId": {
+ "name": "claimId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "field": {
+ "name": "field",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "oldValue": {
+ "name": "oldValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "newValue": {
+ "name": "newValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "occurredAt": {
+ "name": "occurredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_claim_edits_seq_uq": {
+ "name": "agent_claim_edits_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_edits_entry_idx": {
+ "name": "agent_claim_edits_entry_idx",
+ "columns": [
+ "entryId",
+ "seq"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_edits_claim_idx": {
+ "name": "agent_claim_edits_claim_idx",
+ "columns": [
+ "claimId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_edits_id": {
+ "name": "agent_claim_edits_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_nonces": {
+ "name": "agent_claim_nonces",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonceHash": {
+ "name": "nonceHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "editText": {
+ "name": "editText",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "issuedAt": {
+ "name": "issuedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "usedAt": {
+ "name": "usedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claim_nonces_hash_uq": {
+ "name": "agent_claim_nonces_hash_uq",
+ "columns": [
+ "nonceHash"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_nonces_expiry_idx": {
+ "name": "agent_claim_nonces_expiry_idx",
+ "columns": [
+ "expiresAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_nonces_edits_idx": {
+ "name": "agent_claim_nonces_edits_idx",
+ "columns": [
+ "entryId",
+ "action",
+ "usedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_nonces_id": {
+ "name": "agent_claim_nonces_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claims": {
+ "name": "agent_claims",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "inForceEntryId": {
+ "name": "inForceEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "registry": {
+ "name": "registry",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenId": {
+ "name": "tokenId",
+ "type": "varchar(80)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "claimedAt": {
+ "name": "claimedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "statusChangedAt": {
+ "name": "statusChangedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastOwnerCheckAt": {
+ "name": "lastOwnerCheckAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar(120)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "varchar(1000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "links": {
+ "name": "links",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claims_in_force_uq": {
+ "name": "agent_claims_in_force_uq",
+ "columns": [
+ "inForceEntryId"
+ ],
+ "isUnique": true
+ },
+ "agent_claims_entry_idx": {
+ "name": "agent_claims_entry_idx",
+ "columns": [
+ "entryId",
+ "claimedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_wallet_idx": {
+ "name": "agent_claims_wallet_idx",
+ "columns": [
+ "wallet",
+ "inForceEntryId"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_check_idx": {
+ "name": "agent_claims_check_idx",
+ "columns": [
+ "status",
+ "lastOwnerCheckAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claims_id": {
+ "name": "agent_claims_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_activity": {
+ "name": "agent_directory_chain_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('mint','secondary','uri_update')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_activity_event_uq": {
+ "name": "agent_directory_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_activity_entry_idx": {
+ "name": "agent_directory_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_activity_block_idx": {
+ "name": "agent_directory_activity_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_activity",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_activity_id": {
+ "name": "agent_directory_chain_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_links": {
+ "name": "agent_directory_chain_links",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "metadataKey": {
+ "name": "metadataKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedProtocol": {
+ "name": "linkedProtocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','other')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedExternalKey": {
+ "name": "linkedExternalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedEntryId": {
+ "name": "linkedEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "metadataValueHash": {
+ "name": "metadataValueHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "discoveredAt": {
+ "name": "discoveredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_chain_link_uq": {
+ "name": "agent_directory_chain_link_uq",
+ "columns": [
+ "sourceId",
+ "externalKey",
+ "metadataKey",
+ "linkedExternalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_chain_link_linked_idx": {
+ "name": "agent_directory_chain_link_linked_idx",
+ "columns": [
+ "linkedExternalKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_links_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_links_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_links",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_links_id": {
+ "name": "agent_directory_chain_links_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_entries": {
+ "name": "agent_directory_entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_source_external_uq": {
+ "name": "agent_directory_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_display_name_idx": {
+ "name": "agent_directory_display_name_idx",
+ "columns": [
+ "displayName"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_last_seen_idx": {
+ "name": "agent_directory_last_seen_idx",
+ "columns": [
+ "lastSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_first_seen_idx": {
+ "name": "agent_directory_first_seen_idx",
+ "columns": [
+ "firstSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_registrant_idx": {
+ "name": "agent_directory_registrant_idx",
+ "columns": [
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_hidden_idx": {
+ "name": "agent_directory_hidden_idx",
+ "columns": [
+ "hidden"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_entries_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_entries_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_entries",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_entries_id": {
+ "name": "agent_directory_entries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_listing_pins": {
+ "name": "agent_directory_listing_pins",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "note": {
+ "name": "note",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pinnedAt": {
+ "name": "pinnedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_listing_pins_pk": {
+ "name": "agent_directory_listing_pins_pk",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_overflow": {
+ "name": "agent_directory_registry_overflow",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "overflowCount": {
+ "name": "overflowCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastBlock": {
+ "name": "lastBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_registry_overflow_key_uq": {
+ "name": "agent_registry_overflow_key_uq",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_registry_overflow_id": {
+ "name": "agent_directory_registry_overflow_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_rows": {
+ "name": "agent_directory_registry_rows",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "listing": {
+ "name": "listing",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 3
+ }
+ },
+ "indexes": {
+ "agent_registry_rows_source_external_uq": {
+ "name": "agent_registry_rows_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_registry_rows_registrant_idx": {
+ "name": "agent_registry_rows_registrant_idx",
+ "columns": [
+ "sourceId",
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_host_idx": {
+ "name": "agent_registry_rows_host_idx",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_profile_idx": {
+ "name": "agent_registry_rows_profile_idx",
+ "columns": [
+ "sourceId",
+ "profileUriHash"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_listing_idx": {
+ "name": "agent_registry_rows_listing_idx",
+ "columns": [
+ "sourceId",
+ "listing"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_registry_rows",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_registry_rows_id": {
+ "name": "agent_directory_registry_rows_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_usdg_settlements": {
+ "name": "agent_directory_usdg_settlements",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payerAddress": {
+ "name": "payerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payeeAddress": {
+ "name": "payeeAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "relayerAddress": {
+ "name": "relayerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(30,0)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_usdg_settlement_uq": {
+ "name": "agent_directory_usdg_settlement_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_usdg_settlement_block_idx": {
+ "name": "agent_directory_usdg_settlement_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_usdg_settlements",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_usdg_settlements_id": {
+ "name": "agent_directory_usdg_settlements_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_endpoints": {
+ "name": "agent_endpoints",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','catalog','census')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointUrl": {
+ "name": "endpointUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointHash": {
+ "name": "endpointHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "authentication": {
+ "name": "authentication",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "domainVerification": {
+ "name": "domainVerification",
+ "type": "enum('unverified','verified','mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "lastHealth": {
+ "name": "lastHealth",
+ "type": "enum('unknown','healthy','unreachable')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_endpoints_url_uq": {
+ "name": "agent_endpoints_url_uq",
+ "columns": [
+ "agentId",
+ "endpointHash"
+ ],
+ "isUnique": true
+ },
+ "agent_endpoints_agent_idx": {
+ "name": "agent_endpoints_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_endpoints_agentId_agents_id_fk": {
+ "name": "agent_endpoints_agentId_agents_id_fk",
+ "tableFrom": "agent_endpoints",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "agent_endpoints_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_endpoints_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_endpoints",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_endpoints_id": {
+ "name": "agent_endpoints_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_identities": {
+ "name": "agent_identities",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalId": {
+ "name": "externalId",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationState": {
+ "name": "verificationState",
+ "type": "enum('asserted','verified','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'asserted'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_identities_external_uq": {
+ "name": "agent_identities_external_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash"
+ ],
+ "isUnique": true
+ },
+ "agent_identities_agent_idx": {
+ "name": "agent_identities_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_identities_agentId_agents_id_fk": {
+ "name": "agent_identities_agentId_agents_id_fk",
+ "tableFrom": "agent_identities",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "agent_identities_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_identities_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_identities",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_identities_id": {
+ "name": "agent_identities_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_public_snapshots": {
+ "name": "agent_public_snapshots",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayHandle": {
+ "name": "displayHandle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "untrustedSelfDescription": {
+ "name": "untrustedSelfDescription",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_public_snapshots_source_observation_uq": {
+ "name": "agent_public_snapshots_source_observation_uq",
+ "columns": [
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "agent_public_snapshots_agent_observed_idx": {
+ "name": "agent_public_snapshots_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_public_snapshots_source_observed_idx": {
+ "name": "agent_public_snapshots_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "aps_agent_fk": {
+ "name": "aps_agent_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "aps_source_fk": {
+ "name": "aps_source_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "aps_observation_fk": {
+ "name": "aps_observation_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_public_snapshots_id": {
+ "name": "agent_public_snapshots_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_read_model": {
+ "name": "agent_read_model",
+ "columns": {
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "evidenceSummary": {
+ "name": "evidenceSummary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verifiedCardHash": {
+ "name": "verifiedCardHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "publisherExpiresAt": {
+ "name": "publisherExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_read_model_freshness_idx": {
+ "name": "agent_read_model_freshness_idx",
+ "columns": [
+ "lastObservedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_read_model_agentId_agents_id_fk": {
+ "name": "agent_read_model_agentId_agents_id_fk",
+ "tableFrom": "agent_read_model",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_read_model_agentId": {
+ "name": "agent_read_model_agentId",
+ "columns": [
+ "agentId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_record_withdrawals": {
+ "name": "agent_record_withdrawals",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "enum('withdraw','reinstate')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_record_withdrawals_agent_decided_idx": {
+ "name": "agent_record_withdrawals_agent_decided_idx",
+ "columns": [
+ "agentId",
+ "decidedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_record_withdrawals_decidedByUserId_users_id_fk": {
+ "name": "agent_record_withdrawals_decidedByUserId_users_id_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "arw_agent_fk": {
+ "name": "arw_agent_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_record_withdrawals_id": {
+ "name": "agent_record_withdrawals_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_registration_resolutions": {
+ "name": "agent_registration_resolutions",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriHash": {
+ "name": "uriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriKind": {
+ "name": "uriKind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uri": {
+ "name": "uri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('resolved','no_name','failed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "failReason": {
+ "name": "failReason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "resolvedName": {
+ "name": "resolvedName",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastAttemptAt": {
+ "name": "lastAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fetchedAt": {
+ "name": "fetchedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_registration_resolution_uq": {
+ "name": "agent_registration_resolution_uq",
+ "columns": [
+ "sourceId",
+ "uriHash"
+ ],
+ "isUnique": true
+ },
+ "agent_registration_resolution_status_idx": {
+ "name": "agent_registration_resolution_status_idx",
+ "columns": [
+ "sourceId",
+ "status"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_registration_resolutions_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_registration_resolutions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_registration_resolutions",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_registration_resolutions_id": {
+ "name": "agent_registration_resolutions_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_reputation_events": {
+ "name": "agent_reputation_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('new_feedback','feedback_revoked','response_appended')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(39,0)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag1": {
+ "name": "tag1",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag2": {
+ "name": "tag2",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackUri": {
+ "name": "feedbackUri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackHash": {
+ "name": "feedbackHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "responderAddress": {
+ "name": "responderAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pairOrdinal": {
+ "name": "pairOrdinal",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_reputation_event_uq": {
+ "name": "agent_reputation_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_reputation_agent_idx": {
+ "name": "agent_reputation_agent_idx",
+ "columns": [
+ "sourceId",
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_pair_idx": {
+ "name": "agent_reputation_pair_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "blockNumber",
+ "logIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_feedback_idx": {
+ "name": "agent_reputation_feedback_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "feedbackIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_block_idx": {
+ "name": "agent_reputation_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_reputation_events_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_reputation_events_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_reputation_events",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_reputation_events_id": {
+ "name": "agent_reputation_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_solana_activity": {
+ "name": "agent_solana_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionSignature": {
+ "name": "transactionSignature",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "slot": {
+ "name": "slot",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('register','transfer','profile_update','asset_closed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromOwner": {
+ "name": "fromOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toOwner": {
+ "name": "toOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_solana_activity_event_uq": {
+ "name": "agent_solana_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionSignature",
+ "externalKey",
+ "kind"
+ ],
+ "isUnique": true
+ },
+ "agent_solana_activity_entry_idx": {
+ "name": "agent_solana_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_solana_activity_slot_idx": {
+ "name": "agent_solana_activity_slot_idx",
+ "columns": [
+ "sourceId",
+ "slot"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_solana_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_solana_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_solana_activity",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_solana_activity_id": {
+ "name": "agent_solana_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agents": {
+ "name": "agents",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lifecycle": {
+ "name": "lifecycle",
+ "type": "enum('active','inactive','unknown','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "mapX": {
+ "name": "mapX",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mapY": {
+ "name": "mapY",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agents_handle_uq": {
+ "name": "agents_handle_uq",
+ "columns": [
+ "handle"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agents_id": {
+ "name": "agents_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_deliveries": {
+ "name": "api_deliveries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventRef": {
+ "name": "eventRef",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "body": {
+ "name": "body",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextAttemptAt": {
+ "name": "nextAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastStatus": {
+ "name": "lastStatus",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "sentAt": {
+ "name": "sentAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_deliveries_seq_uq": {
+ "name": "api_deliveries_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_event_uq": {
+ "name": "api_deliveries_event_uq",
+ "columns": [
+ "keyId",
+ "eventRef"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_due_idx": {
+ "name": "api_deliveries_due_idx",
+ "columns": [
+ "status",
+ "nextAttemptAt"
+ ],
+ "isUnique": false
+ },
+ "api_deliveries_key_idx": {
+ "name": "api_deliveries_key_idx",
+ "columns": [
+ "keyId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_deliveries_id": {
+ "name": "api_deliveries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_event_cursors": {
+ "name": "api_event_cursors",
+ "columns": {
+ "name": {
+ "name": "name",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "position": {
+ "name": "position",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_event_cursors_name": {
+ "name": "api_event_cursors_name",
+ "columns": [
+ "name"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_keys": {
+ "name": "api_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyHash": {
+ "name": "keyHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyPrefix": {
+ "name": "keyPrefix",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerEmail": {
+ "name": "ownerEmail",
+ "type": "varchar(254)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tier": {
+ "name": "tier",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'free'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_keys_hash_uq": {
+ "name": "api_keys_hash_uq",
+ "columns": [
+ "keyHash"
+ ],
+ "isUnique": true
+ },
+ "api_keys_email_idx": {
+ "name": "api_keys_email_idx",
+ "columns": [
+ "ownerEmail",
+ "revokedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_keys_id": {
+ "name": "api_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_payments": {
+ "name": "api_payments",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "paymentId": {
+ "name": "paymentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "network": {
+ "name": "network",
+ "type": "varchar(20)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payer": {
+ "name": "payer",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonce": {
+ "name": "nonce",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "amount": {
+ "name": "amount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validBefore": {
+ "name": "validBefore",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectHash": {
+ "name": "subjectHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transaction": {
+ "name": "transaction",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sends": {
+ "name": "sends",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "serves": {
+ "name": "serves",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_payments_seq_uq": {
+ "name": "api_payments_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_payments_authorization_uq": {
+ "name": "api_payments_authorization_uq",
+ "columns": [
+ "network",
+ "payer",
+ "nonce"
+ ],
+ "isUnique": true
+ },
+ "api_payments_status_idx": {
+ "name": "api_payments_status_idx",
+ "columns": [
+ "status",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_payments_id": {
+ "name": "api_payments_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_usage": {
+ "name": "api_usage",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "day": {
+ "name": "day",
+ "type": "date",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_usage_pk": {
+ "name": "api_usage_pk",
+ "columns": [
+ "keyId",
+ "day",
+ "endpoint"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_watches": {
+ "name": "api_watches",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "visible": {
+ "name": "visible",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_watches_entry_idx": {
+ "name": "api_watches_entry_idx",
+ "columns": [
+ "entryId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_watches_pk": {
+ "name": "api_watches_pk",
+ "columns": [
+ "keyId",
+ "entryId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_webhooks": {
+ "name": "api_webhooks",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "varchar(500)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "secretVersion": {
+ "name": "secretVersion",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "failures": {
+ "name": "failures",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "disabledAt": {
+ "name": "disabledAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_webhooks_keyId": {
+ "name": "api_webhooks_keyId",
+ "columns": [
+ "keyId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_clusters": {
+ "name": "bsc_clusters",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clusterKey": {
+ "name": "clusterKey",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "memberCount": {
+ "name": "memberCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_clusters_key_uq": {
+ "name": "bsc_clusters_key_uq",
+ "columns": [
+ "sourceId",
+ "kind",
+ "clusterKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_clusters_size_idx": {
+ "name": "bsc_clusters_size_idx",
+ "columns": [
+ "sourceId",
+ "kind",
+ "memberCount"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_clusters_id": {
+ "name": "bsc_clusters_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_endpoint_host_groups": {
+ "name": "bsc_endpoint_host_groups",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "host": {
+ "name": "host",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleVersion": {
+ "name": "ruleVersion",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleDate": {
+ "name": "ruleDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_endpoint_host_groups_key_uq": {
+ "name": "bsc_endpoint_host_groups_key_uq",
+ "columns": [
+ "sourceId",
+ "host"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_endpoint_host_groups_id": {
+ "name": "bsc_endpoint_host_groups_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_entry_evidence": {
+ "name": "bsc_entry_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readStatus": {
+ "name": "readStatus",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateKey": {
+ "name": "templateKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpointHost": {
+ "name": "endpointHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "g1": {
+ "name": "g1",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateSize": {
+ "name": "templateSize",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletRegistrations": {
+ "name": "walletRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readAt": {
+ "name": "readAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_entry_evidence_key_uq": {
+ "name": "bsc_entry_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_entry_evidence_template_idx": {
+ "name": "bsc_entry_evidence_template_idx",
+ "columns": [
+ "sourceId",
+ "templateKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_entry_evidence_id": {
+ "name": "bsc_entry_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_feedback_events": {
+ "name": "bsc_feedback_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_feedback_event_uq": {
+ "name": "bsc_feedback_event_uq",
+ "columns": [
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "bsc_feedback_agent_idx": {
+ "name": "bsc_feedback_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "bsc_feedback_client_idx": {
+ "name": "bsc_feedback_client_idx",
+ "columns": [
+ "clientAddress"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_feedback_events_id": {
+ "name": "bsc_feedback_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_rater_evidence": {
+ "name": "bsc_rater_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawEvents": {
+ "name": "rawEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawRaters": {
+ "name": "rawRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "concentratedRaters": {
+ "name": "concentratedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uniformRaters": {
+ "name": "uniformRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedRaters": {
+ "name": "linkedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "independentRaters": {
+ "name": "independentRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "weightedEvents": {
+ "name": "weightedEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerRegistrations": {
+ "name": "ownerRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerFleet": {
+ "name": "ownerFleet",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "qualifies": {
+ "name": "qualifies",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_rater_evidence_key_uq": {
+ "name": "bsc_rater_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_rater_evidence_qualifies_idx": {
+ "name": "bsc_rater_evidence_qualifies_idx",
+ "columns": [
+ "sourceId",
+ "qualifies"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_rater_evidence_id": {
+ "name": "bsc_rater_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_reputation_state": {
+ "name": "bsc_reputation_state",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "finalizedBlock": {
+ "name": "finalizedBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "implementation": {
+ "name": "implementation",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "evaluatedAt": {
+ "name": "evaluatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_reputation_state_id": {
+ "name": "bsc_reputation_state_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "chain_reputation_counts": {
+ "name": "chain_reputation_counts",
+ "columns": {
+ "chainKey": {
+ "name": "chainKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ratings": {
+ "name": "ratings",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "revocations": {
+ "name": "revocations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "caughtUpAt": {
+ "name": "caughtUpAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastRunAt": {
+ "name": "lastRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "chain_reputation_counts_chainKey": {
+ "name": "chain_reputation_counts_chainKey",
+ "columns": [
+ "chainKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "domain_verification_challenges": {
+ "name": "domain_verification_challenges",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenHash": {
+ "name": "tokenHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofUrl": {
+ "name": "proofUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','verified','failed','expired')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verifiedAt": {
+ "name": "verifiedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "recheckedAt": {
+ "name": "recheckedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofObjectKey": {
+ "name": "proofObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofHash": {
+ "name": "proofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "domain_verification_challenges_token_uq": {
+ "name": "domain_verification_challenges_token_uq",
+ "columns": [
+ "tokenHash"
+ ],
+ "isUnique": true
+ },
+ "domain_verification_challenges_agent_state_idx": {
+ "name": "domain_verification_challenges_agent_state_idx",
+ "columns": [
+ "agentId",
+ "state"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "domain_verification_challenges_agentId_agents_id_fk": {
+ "name": "domain_verification_challenges_agentId_agents_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "domain_verification_challenges_createdByUserId_users_id_fk": {
+ "name": "domain_verification_challenges_createdByUserId_users_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "domain_verification_challenges_id": {
+ "name": "domain_verification_challenges_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "evidence_events": {
+ "name": "evidence_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventType": {
+ "name": "eventType",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofReference": {
+ "name": "proofReference",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "payloadHash": {
+ "name": "payloadHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "evidence_events_agent_observed_idx": {
+ "name": "evidence_events_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "evidence_events_agentId_agents_id_fk": {
+ "name": "evidence_events_agentId_agents_id_fk",
+ "tableFrom": "evidence_events",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "evidence_events_sourceObservationId_source_observations_id_fk": {
+ "name": "evidence_events_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "evidence_events",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "evidence_events_id": {
+ "name": "evidence_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "identity_merge_reviews": {
+ "name": "identity_merge_reviews",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "existingAgentId": {
+ "name": "existingAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proposedAgentId": {
+ "name": "proposedAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','merged','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "resolvedAt": {
+ "name": "resolvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "identity_merge_reviews_identity_observation_uq": {
+ "name": "identity_merge_reviews_identity_observation_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash",
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "identity_merge_reviews_state_idx": {
+ "name": "identity_merge_reviews_state_idx",
+ "columns": [
+ "state",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "imr_existing_agent_fk": {
+ "name": "imr_existing_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "existingAgentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "imr_proposed_agent_fk": {
+ "name": "imr_proposed_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "proposedAgentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "imr_observation_fk": {
+ "name": "imr_observation_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "identity_merge_reviews_id": {
+ "name": "identity_merge_reviews_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_runs": {
+ "name": "ingestion_runs",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "trigger": {
+ "name": "trigger",
+ "type": "enum('manual','scheduled','replay')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('running','completed','failed','skipped')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "cursorBefore": {
+ "name": "cursorBefore",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "cursorAfter": {
+ "name": "cursorAfter",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "requestCount": {
+ "name": "requestCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "discoveredCount": {
+ "name": "discoveredCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "acceptedCount": {
+ "name": "acceptedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "rejectedCount": {
+ "name": "rejectedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "errorSummary": {
+ "name": "errorSummary",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ingestion_runs_source_started_idx": {
+ "name": "ingestion_runs_source_started_idx",
+ "columns": [
+ "sourceId",
+ "startedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_runs_sourceId_ingestion_sources_id_fk": {
+ "name": "ingestion_runs_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "ingestion_runs",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_runs_id": {
+ "name": "ingestion_runs_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_sources": {
+ "name": "ingestion_sources",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceKey": {
+ "name": "sourceKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rootUrl": {
+ "name": "rootUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "allowedHostname": {
+ "name": "allowedHostname",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','active','paused','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "executionPolicy": {
+ "name": "executionPolicy",
+ "type": "enum('scheduled','manual_only')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'scheduled'"
+ },
+ "scheduleMinutes": {
+ "name": "scheduleMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "cursor": {
+ "name": "cursor",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "nextRunAt": {
+ "name": "nextRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastSuccessfulAt": {
+ "name": "lastSuccessfulAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "failureCount": {
+ "name": "failureCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "ingestion_sources_source_key_uq": {
+ "name": "ingestion_sources_source_key_uq",
+ "columns": [
+ "sourceKey"
+ ],
+ "isUnique": true
+ },
+ "ingestion_sources_state_next_run_idx": {
+ "name": "ingestion_sources_state_next_run_idx",
+ "columns": [
+ "state",
+ "nextRunAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_sources_createdByUserId_users_id_fk": {
+ "name": "ingestion_sources_createdByUserId_users_id_fk",
+ "tableFrom": "ingestion_sources",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_sources_id": {
+ "name": "ingestion_sources_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_worker_config": {
+ "name": "ingestion_worker_config",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('paused','enabled')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'paused'"
+ },
+ "maxSourcesPerTick": {
+ "name": "maxSourcesPerTick",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "minGlobalIntervalMinutes": {
+ "name": "minGlobalIntervalMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "lastStartedAt": {
+ "name": "lastStartedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastCompletedAt": {
+ "name": "lastCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedByUserId": {
+ "name": "updatedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ingestion_worker_config_updatedByUserId_users_id_fk": {
+ "name": "ingestion_worker_config_updatedByUserId_users_id_fk",
+ "tableFrom": "ingestion_worker_config",
+ "tableTo": "users",
+ "columnsFrom": [
+ "updatedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_worker_config_id": {
+ "name": "ingestion_worker_config_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "owls_catch": {
+ "name": "owls_catch",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "catchDate": {
+ "name": "catchDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rule": {
+ "name": "rule",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "facts": {
+ "name": "facts",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceQuery": {
+ "name": "sourceQuery",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIds": {
+ "name": "agentIds",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "selectedAt": {
+ "name": "selectedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "owls_catch_date_uq": {
+ "name": "owls_catch_date_uq",
+ "columns": [
+ "catchDate"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "owls_catch_id": {
+ "name": "owls_catch_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_bindings": {
+ "name": "publisher_bindings",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIdentityId": {
+ "name": "agentIdentityId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationMethod": {
+ "name": "validationMethod",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validatedAt": {
+ "name": "validatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_bindings_identity_key_uq": {
+ "name": "publisher_bindings_identity_key_uq",
+ "columns": [
+ "agentIdentityId",
+ "publisherKeyId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_bindings_agentIdentityId_agent_identities_id_fk": {
+ "name": "publisher_bindings_agentIdentityId_agent_identities_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "agent_identities",
+ "columnsFrom": [
+ "agentIdentityId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_bindings_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_bindings_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "publisher_keys",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_bindings_sourceObservationId_source_observations_id_fk": {
+ "name": "publisher_bindings_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_bindings_id": {
+ "name": "publisher_bindings_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_key_history": {
+ "name": "publisher_key_history",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "changedByUserId": {
+ "name": "changedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "changedAt": {
+ "name": "changedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_key_history_key_changed_idx": {
+ "name": "publisher_key_history_key_changed_idx",
+ "columns": [
+ "publisherKeyId",
+ "changedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "publisher_key_history_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_key_history_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_key_history",
+ "tableTo": "publisher_keys",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_key_history_changedByUserId_users_id_fk": {
+ "name": "publisher_key_history_changedByUserId_users_id_fk",
+ "tableFrom": "publisher_key_history",
+ "tableTo": "users",
+ "columnsFrom": [
+ "changedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_key_history_id": {
+ "name": "publisher_key_history_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_keys": {
+ "name": "publisher_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "issuerName": {
+ "name": "issuerName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyFingerprint": {
+ "name": "publicKeyFingerprint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyPem": {
+ "name": "publicKeyPem",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "permittedDomains": {
+ "name": "permittedDomains",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "permittedProtocols": {
+ "name": "permittedProtocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "policyVersion": {
+ "name": "policyVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "attestationObjectKey": {
+ "name": "attestationObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationHash": {
+ "name": "attestationHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationSignature": {
+ "name": "attestationSignature",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationOfKeyId": {
+ "name": "rotationOfKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationProofHash": {
+ "name": "rotationProofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedByUserId": {
+ "name": "approvedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedAt": {
+ "name": "approvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_keys_fingerprint_uq": {
+ "name": "publisher_keys_fingerprint_uq",
+ "columns": [
+ "publicKeyFingerprint"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_keys_approvedByUserId_users_id_fk": {
+ "name": "publisher_keys_approvedByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "tableTo": "users",
+ "columnsFrom": [
+ "approvedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_keys_createdByUserId_users_id_fk": {
+ "name": "publisher_keys_createdByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_keys_id": {
+ "name": "publisher_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "review_items": {
+ "name": "review_items",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "enum('source','identity_collision','publisher_key','endpoint_mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('pending','approved','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "subjectType": {
+ "name": "subjectType",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectId": {
+ "name": "subjectId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "review_items_status_created_idx": {
+ "name": "review_items_status_created_idx",
+ "columns": [
+ "status",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "review_items_createdByUserId_users_id_fk": {
+ "name": "review_items_createdByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "review_items_decidedByUserId_users_id_fk": {
+ "name": "review_items_decidedByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "review_items_id": {
+ "name": "review_items_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observation_runs": {
+ "name": "source_observation_runs",
+ "columns": {
+ "runId": {
+ "name": "runId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observationId": {
+ "name": "observationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedAt": {
+ "name": "linkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observation_runs_uq": {
+ "name": "source_observation_runs_uq",
+ "columns": [
+ "runId",
+ "observationId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "source_observation_runs_runId_ingestion_runs_id_fk": {
+ "name": "source_observation_runs_runId_ingestion_runs_id_fk",
+ "tableFrom": "source_observation_runs",
+ "tableTo": "ingestion_runs",
+ "columnsFrom": [
+ "runId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "source_observation_runs_observationId_source_observations_id_fk": {
+ "name": "source_observation_runs_observationId_source_observations_id_fk",
+ "tableFrom": "source_observation_runs",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "observationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observations": {
+ "name": "source_observations",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "canonicalLocator": {
+ "name": "canonicalLocator",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHash": {
+ "name": "locatorHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentHash": {
+ "name": "contentHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawObjectKey": {
+ "name": "rawObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentType": {
+ "name": "contentType",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "httpStatus": {
+ "name": "httpStatus",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "parserVersion": {
+ "name": "parserVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationStatus": {
+ "name": "validationStatus",
+ "type": "enum('valid','invalid','partial')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationFindings": {
+ "name": "validationFindings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observations_content_uq": {
+ "name": "source_observations_content_uq",
+ "columns": [
+ "sourceId",
+ "locatorHash",
+ "contentHash"
+ ],
+ "isUnique": true
+ },
+ "source_observations_source_observed_idx": {
+ "name": "source_observations_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "source_observations_sourceId_ingestion_sources_id_fk": {
+ "name": "source_observations_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_observations",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_observations_id": {
+ "name": "source_observations_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_projection_decisions": {
+ "name": "source_projection_decisions",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','public','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "approvedRunId": {
+ "name": "approvedRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "source_projection_decisions_sourceId_ingestion_sources_id_fk": {
+ "name": "source_projection_decisions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "source_projection_decisions_decidedByUserId_users_id_fk": {
+ "name": "source_projection_decisions_decidedByUserId_users_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "spd_approved_run_fk": {
+ "name": "spd_approved_run_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "ingestion_runs",
+ "columnsFrom": [
+ "approvedRunId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_projection_decisions_sourceId": {
+ "name": "source_projection_decisions_sourceId",
+ "columns": [
+ "sourceId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "openId": {
+ "name": "openId",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "varchar(320)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "loginMethod": {
+ "name": "loginMethod",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "role": {
+ "name": "role",
+ "type": "enum('user','admin')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'user'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "lastSignedIn": {
+ "name": "lastSignedIn",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "users_id": {
+ "name": "users_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {
+ "users_openId_unique": {
+ "name": "users_openId_unique",
+ "columns": [
+ "openId"
+ ]
+ }
+ },
+ "checkConstraint": {}
+ }
+ },
+ "views": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "tables": {},
+ "indexes": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/nooscape-relay/drizzle/meta/0058_snapshot.json b/apps/nooscape-relay/drizzle/meta/0058_snapshot.json
new file mode 100644
index 0000000..be1bade
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/meta/0058_snapshot.json
@@ -0,0 +1,5986 @@
+{
+ "id": "49ab6d94-8931-4aab-846a-31e8acc209c0",
+ "prevId": "8d7baa3a-fbae-44aa-b852-d442ae930316",
+ "version": "5",
+ "dialect": "mysql",
+ "tables": {
+ "agent_checks": {
+ "name": "agent_checks",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointId": {
+ "name": "endpointId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "checkedAt": {
+ "name": "checkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "statusCode": {
+ "name": "statusCode",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latencyMs": {
+ "name": "latencyMs",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bodySha256": {
+ "name": "bodySha256",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_checks_endpoint_idx": {
+ "name": "agent_checks_endpoint_idx",
+ "columns": [
+ "endpointId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_checks_agent_idx": {
+ "name": "agent_checks_agent_idx",
+ "columns": [
+ "agentId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_checks_id": {
+ "name": "agent_checks_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_edits": {
+ "name": "agent_claim_edits",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "claimId": {
+ "name": "claimId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "field": {
+ "name": "field",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "oldValue": {
+ "name": "oldValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "newValue": {
+ "name": "newValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "occurredAt": {
+ "name": "occurredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_claim_edits_seq_uq": {
+ "name": "agent_claim_edits_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_edits_entry_idx": {
+ "name": "agent_claim_edits_entry_idx",
+ "columns": [
+ "entryId",
+ "seq"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_edits_claim_idx": {
+ "name": "agent_claim_edits_claim_idx",
+ "columns": [
+ "claimId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_edits_id": {
+ "name": "agent_claim_edits_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_nonces": {
+ "name": "agent_claim_nonces",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonceHash": {
+ "name": "nonceHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "editText": {
+ "name": "editText",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "issuedAt": {
+ "name": "issuedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "usedAt": {
+ "name": "usedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claim_nonces_hash_uq": {
+ "name": "agent_claim_nonces_hash_uq",
+ "columns": [
+ "nonceHash"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_nonces_expiry_idx": {
+ "name": "agent_claim_nonces_expiry_idx",
+ "columns": [
+ "expiresAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_nonces_edits_idx": {
+ "name": "agent_claim_nonces_edits_idx",
+ "columns": [
+ "entryId",
+ "action",
+ "usedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_nonces_id": {
+ "name": "agent_claim_nonces_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claims": {
+ "name": "agent_claims",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "inForceEntryId": {
+ "name": "inForceEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "registry": {
+ "name": "registry",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenId": {
+ "name": "tokenId",
+ "type": "varchar(80)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "claimedAt": {
+ "name": "claimedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "statusChangedAt": {
+ "name": "statusChangedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastOwnerCheckAt": {
+ "name": "lastOwnerCheckAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar(120)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "varchar(1000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "links": {
+ "name": "links",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claims_in_force_uq": {
+ "name": "agent_claims_in_force_uq",
+ "columns": [
+ "inForceEntryId"
+ ],
+ "isUnique": true
+ },
+ "agent_claims_entry_idx": {
+ "name": "agent_claims_entry_idx",
+ "columns": [
+ "entryId",
+ "claimedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_wallet_idx": {
+ "name": "agent_claims_wallet_idx",
+ "columns": [
+ "wallet",
+ "inForceEntryId"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_check_idx": {
+ "name": "agent_claims_check_idx",
+ "columns": [
+ "status",
+ "lastOwnerCheckAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claims_id": {
+ "name": "agent_claims_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_activity": {
+ "name": "agent_directory_chain_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('mint','secondary','uri_update')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_activity_event_uq": {
+ "name": "agent_directory_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_activity_entry_idx": {
+ "name": "agent_directory_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_activity_block_idx": {
+ "name": "agent_directory_activity_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_activity",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_activity_id": {
+ "name": "agent_directory_chain_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_links": {
+ "name": "agent_directory_chain_links",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "metadataKey": {
+ "name": "metadataKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedProtocol": {
+ "name": "linkedProtocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','other')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedExternalKey": {
+ "name": "linkedExternalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedEntryId": {
+ "name": "linkedEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "metadataValueHash": {
+ "name": "metadataValueHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "discoveredAt": {
+ "name": "discoveredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_chain_link_uq": {
+ "name": "agent_directory_chain_link_uq",
+ "columns": [
+ "sourceId",
+ "externalKey",
+ "metadataKey",
+ "linkedExternalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_chain_link_linked_idx": {
+ "name": "agent_directory_chain_link_linked_idx",
+ "columns": [
+ "linkedExternalKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_links_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_links_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_links",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_links_id": {
+ "name": "agent_directory_chain_links_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_entries": {
+ "name": "agent_directory_entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_directory_source_external_uq": {
+ "name": "agent_directory_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_display_name_idx": {
+ "name": "agent_directory_display_name_idx",
+ "columns": [
+ "displayName"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_last_seen_idx": {
+ "name": "agent_directory_last_seen_idx",
+ "columns": [
+ "lastSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_first_seen_idx": {
+ "name": "agent_directory_first_seen_idx",
+ "columns": [
+ "firstSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_registrant_idx": {
+ "name": "agent_directory_registrant_idx",
+ "columns": [
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_hidden_idx": {
+ "name": "agent_directory_hidden_idx",
+ "columns": [
+ "hidden"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_entries_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_entries_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_entries",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_entries_id": {
+ "name": "agent_directory_entries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_listing_pins": {
+ "name": "agent_directory_listing_pins",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "note": {
+ "name": "note",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pinnedAt": {
+ "name": "pinnedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_listing_pins_pk": {
+ "name": "agent_directory_listing_pins_pk",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_overflow": {
+ "name": "agent_directory_registry_overflow",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "overflowCount": {
+ "name": "overflowCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastBlock": {
+ "name": "lastBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_registry_overflow_key_uq": {
+ "name": "agent_registry_overflow_key_uq",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_registry_overflow_id": {
+ "name": "agent_directory_registry_overflow_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_rows": {
+ "name": "agent_directory_registry_rows",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ },
+ "listing": {
+ "name": "listing",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 3
+ }
+ },
+ "indexes": {
+ "agent_registry_rows_source_external_uq": {
+ "name": "agent_registry_rows_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_registry_rows_registrant_idx": {
+ "name": "agent_registry_rows_registrant_idx",
+ "columns": [
+ "sourceId",
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_host_idx": {
+ "name": "agent_registry_rows_host_idx",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_profile_idx": {
+ "name": "agent_registry_rows_profile_idx",
+ "columns": [
+ "sourceId",
+ "profileUriHash"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_listing_idx": {
+ "name": "agent_registry_rows_listing_idx",
+ "columns": [
+ "sourceId",
+ "listing"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_registry_rows",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_registry_rows_id": {
+ "name": "agent_directory_registry_rows_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_usdg_settlements": {
+ "name": "agent_directory_usdg_settlements",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payerAddress": {
+ "name": "payerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payeeAddress": {
+ "name": "payeeAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "relayerAddress": {
+ "name": "relayerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(30,0)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_usdg_settlement_uq": {
+ "name": "agent_directory_usdg_settlement_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_usdg_settlement_block_idx": {
+ "name": "agent_directory_usdg_settlement_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_usdg_settlements",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_usdg_settlements_id": {
+ "name": "agent_directory_usdg_settlements_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_endpoints": {
+ "name": "agent_endpoints",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','catalog','census')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointUrl": {
+ "name": "endpointUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointHash": {
+ "name": "endpointHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "authentication": {
+ "name": "authentication",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "domainVerification": {
+ "name": "domainVerification",
+ "type": "enum('unverified','verified','mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "lastHealth": {
+ "name": "lastHealth",
+ "type": "enum('unknown','healthy','unreachable')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_endpoints_url_uq": {
+ "name": "agent_endpoints_url_uq",
+ "columns": [
+ "agentId",
+ "endpointHash"
+ ],
+ "isUnique": true
+ },
+ "agent_endpoints_agent_idx": {
+ "name": "agent_endpoints_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_endpoints_agentId_agents_id_fk": {
+ "name": "agent_endpoints_agentId_agents_id_fk",
+ "tableFrom": "agent_endpoints",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "agent_endpoints_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_endpoints_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_endpoints",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_endpoints_id": {
+ "name": "agent_endpoints_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_identities": {
+ "name": "agent_identities",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalId": {
+ "name": "externalId",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationState": {
+ "name": "verificationState",
+ "type": "enum('asserted','verified','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'asserted'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_identities_external_uq": {
+ "name": "agent_identities_external_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash"
+ ],
+ "isUnique": true
+ },
+ "agent_identities_agent_idx": {
+ "name": "agent_identities_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_identities_agentId_agents_id_fk": {
+ "name": "agent_identities_agentId_agents_id_fk",
+ "tableFrom": "agent_identities",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "agent_identities_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_identities_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_identities",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_identities_id": {
+ "name": "agent_identities_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_public_snapshots": {
+ "name": "agent_public_snapshots",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayHandle": {
+ "name": "displayHandle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "untrustedSelfDescription": {
+ "name": "untrustedSelfDescription",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_public_snapshots_source_observation_uq": {
+ "name": "agent_public_snapshots_source_observation_uq",
+ "columns": [
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "agent_public_snapshots_agent_observed_idx": {
+ "name": "agent_public_snapshots_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_public_snapshots_source_observed_idx": {
+ "name": "agent_public_snapshots_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "aps_agent_fk": {
+ "name": "aps_agent_fk",
+ "tableFrom": "agent_public_snapshots",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "aps_source_fk": {
+ "name": "aps_source_fk",
+ "tableFrom": "agent_public_snapshots",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "aps_observation_fk": {
+ "name": "aps_observation_fk",
+ "tableFrom": "agent_public_snapshots",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_public_snapshots_id": {
+ "name": "agent_public_snapshots_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_read_model": {
+ "name": "agent_read_model",
+ "columns": {
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "evidenceSummary": {
+ "name": "evidenceSummary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verifiedCardHash": {
+ "name": "verifiedCardHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "publisherExpiresAt": {
+ "name": "publisherExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agent_read_model_freshness_idx": {
+ "name": "agent_read_model_freshness_idx",
+ "columns": [
+ "lastObservedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_read_model_agentId_agents_id_fk": {
+ "name": "agent_read_model_agentId_agents_id_fk",
+ "tableFrom": "agent_read_model",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_read_model_agentId": {
+ "name": "agent_read_model_agentId",
+ "columns": [
+ "agentId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_record_withdrawals": {
+ "name": "agent_record_withdrawals",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "enum('withdraw','reinstate')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_record_withdrawals_agent_decided_idx": {
+ "name": "agent_record_withdrawals_agent_decided_idx",
+ "columns": [
+ "agentId",
+ "decidedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_record_withdrawals_decidedByUserId_users_id_fk": {
+ "name": "agent_record_withdrawals_decidedByUserId_users_id_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "arw_agent_fk": {
+ "name": "arw_agent_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_record_withdrawals_id": {
+ "name": "agent_record_withdrawals_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_registration_resolutions": {
+ "name": "agent_registration_resolutions",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriHash": {
+ "name": "uriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriKind": {
+ "name": "uriKind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uri": {
+ "name": "uri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('resolved','no_name','failed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "failReason": {
+ "name": "failReason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "resolvedName": {
+ "name": "resolvedName",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastAttemptAt": {
+ "name": "lastAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fetchedAt": {
+ "name": "fetchedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_registration_resolution_uq": {
+ "name": "agent_registration_resolution_uq",
+ "columns": [
+ "sourceId",
+ "uriHash"
+ ],
+ "isUnique": true
+ },
+ "agent_registration_resolution_status_idx": {
+ "name": "agent_registration_resolution_status_idx",
+ "columns": [
+ "sourceId",
+ "status"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_registration_resolutions_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_registration_resolutions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_registration_resolutions",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_registration_resolutions_id": {
+ "name": "agent_registration_resolutions_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_reputation_events": {
+ "name": "agent_reputation_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('new_feedback','feedback_revoked','response_appended')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(39,0)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag1": {
+ "name": "tag1",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag2": {
+ "name": "tag2",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackUri": {
+ "name": "feedbackUri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackHash": {
+ "name": "feedbackHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "responderAddress": {
+ "name": "responderAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pairOrdinal": {
+ "name": "pairOrdinal",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_reputation_event_uq": {
+ "name": "agent_reputation_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_reputation_agent_idx": {
+ "name": "agent_reputation_agent_idx",
+ "columns": [
+ "sourceId",
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_pair_idx": {
+ "name": "agent_reputation_pair_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "blockNumber",
+ "logIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_feedback_idx": {
+ "name": "agent_reputation_feedback_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "feedbackIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_block_idx": {
+ "name": "agent_reputation_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_reputation_events_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_reputation_events_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_reputation_events",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_reputation_events_id": {
+ "name": "agent_reputation_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_solana_activity": {
+ "name": "agent_solana_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionSignature": {
+ "name": "transactionSignature",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "slot": {
+ "name": "slot",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('register','transfer','profile_update','asset_closed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromOwner": {
+ "name": "fromOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toOwner": {
+ "name": "toOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_solana_activity_event_uq": {
+ "name": "agent_solana_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionSignature",
+ "externalKey",
+ "kind"
+ ],
+ "isUnique": true
+ },
+ "agent_solana_activity_entry_idx": {
+ "name": "agent_solana_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_solana_activity_slot_idx": {
+ "name": "agent_solana_activity_slot_idx",
+ "columns": [
+ "sourceId",
+ "slot"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_solana_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_solana_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_solana_activity",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_solana_activity_id": {
+ "name": "agent_solana_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agents": {
+ "name": "agents",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lifecycle": {
+ "name": "lifecycle",
+ "type": "enum('active','inactive','unknown','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "mapX": {
+ "name": "mapX",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mapY": {
+ "name": "mapY",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "agents_handle_uq": {
+ "name": "agents_handle_uq",
+ "columns": [
+ "handle"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agents_id": {
+ "name": "agents_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_deliveries": {
+ "name": "api_deliveries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventRef": {
+ "name": "eventRef",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "body": {
+ "name": "body",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextAttemptAt": {
+ "name": "nextAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastStatus": {
+ "name": "lastStatus",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "sentAt": {
+ "name": "sentAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_deliveries_seq_uq": {
+ "name": "api_deliveries_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_event_uq": {
+ "name": "api_deliveries_event_uq",
+ "columns": [
+ "keyId",
+ "eventRef"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_due_idx": {
+ "name": "api_deliveries_due_idx",
+ "columns": [
+ "status",
+ "nextAttemptAt"
+ ],
+ "isUnique": false
+ },
+ "api_deliveries_key_idx": {
+ "name": "api_deliveries_key_idx",
+ "columns": [
+ "keyId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_deliveries_id": {
+ "name": "api_deliveries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_event_cursors": {
+ "name": "api_event_cursors",
+ "columns": {
+ "name": {
+ "name": "name",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "position": {
+ "name": "position",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_event_cursors_name": {
+ "name": "api_event_cursors_name",
+ "columns": [
+ "name"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_keys": {
+ "name": "api_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyHash": {
+ "name": "keyHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyPrefix": {
+ "name": "keyPrefix",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerEmail": {
+ "name": "ownerEmail",
+ "type": "varchar(254)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tier": {
+ "name": "tier",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'free'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_keys_hash_uq": {
+ "name": "api_keys_hash_uq",
+ "columns": [
+ "keyHash"
+ ],
+ "isUnique": true
+ },
+ "api_keys_email_idx": {
+ "name": "api_keys_email_idx",
+ "columns": [
+ "ownerEmail",
+ "revokedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_keys_id": {
+ "name": "api_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_payments": {
+ "name": "api_payments",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "paymentId": {
+ "name": "paymentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "network": {
+ "name": "network",
+ "type": "varchar(20)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payer": {
+ "name": "payer",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonce": {
+ "name": "nonce",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "amount": {
+ "name": "amount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validBefore": {
+ "name": "validBefore",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectHash": {
+ "name": "subjectHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transaction": {
+ "name": "transaction",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sends": {
+ "name": "sends",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "serves": {
+ "name": "serves",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_payments_seq_uq": {
+ "name": "api_payments_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_payments_authorization_uq": {
+ "name": "api_payments_authorization_uq",
+ "columns": [
+ "network",
+ "payer",
+ "nonce"
+ ],
+ "isUnique": true
+ },
+ "api_payments_status_idx": {
+ "name": "api_payments_status_idx",
+ "columns": [
+ "status",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_payments_id": {
+ "name": "api_payments_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_usage": {
+ "name": "api_usage",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "day": {
+ "name": "day",
+ "type": "date",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_usage_pk": {
+ "name": "api_usage_pk",
+ "columns": [
+ "keyId",
+ "day",
+ "endpoint"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_watches": {
+ "name": "api_watches",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "visible": {
+ "name": "visible",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_watches_entry_idx": {
+ "name": "api_watches_entry_idx",
+ "columns": [
+ "entryId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_watches_pk": {
+ "name": "api_watches_pk",
+ "columns": [
+ "keyId",
+ "entryId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_webhooks": {
+ "name": "api_webhooks",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "varchar(500)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "secretVersion": {
+ "name": "secretVersion",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "failures": {
+ "name": "failures",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "disabledAt": {
+ "name": "disabledAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_webhooks_keyId": {
+ "name": "api_webhooks_keyId",
+ "columns": [
+ "keyId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_clusters": {
+ "name": "bsc_clusters",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clusterKey": {
+ "name": "clusterKey",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "memberCount": {
+ "name": "memberCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_clusters_key_uq": {
+ "name": "bsc_clusters_key_uq",
+ "columns": [
+ "sourceId",
+ "kind",
+ "clusterKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_clusters_size_idx": {
+ "name": "bsc_clusters_size_idx",
+ "columns": [
+ "sourceId",
+ "kind",
+ "memberCount"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_clusters_id": {
+ "name": "bsc_clusters_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_endpoint_host_groups": {
+ "name": "bsc_endpoint_host_groups",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "host": {
+ "name": "host",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleVersion": {
+ "name": "ruleVersion",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleDate": {
+ "name": "ruleDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_endpoint_host_groups_key_uq": {
+ "name": "bsc_endpoint_host_groups_key_uq",
+ "columns": [
+ "sourceId",
+ "host"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_endpoint_host_groups_id": {
+ "name": "bsc_endpoint_host_groups_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_entry_evidence": {
+ "name": "bsc_entry_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readStatus": {
+ "name": "readStatus",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateKey": {
+ "name": "templateKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpointHost": {
+ "name": "endpointHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "g1": {
+ "name": "g1",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateSize": {
+ "name": "templateSize",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletRegistrations": {
+ "name": "walletRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readAt": {
+ "name": "readAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_entry_evidence_key_uq": {
+ "name": "bsc_entry_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_entry_evidence_template_idx": {
+ "name": "bsc_entry_evidence_template_idx",
+ "columns": [
+ "sourceId",
+ "templateKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_entry_evidence_id": {
+ "name": "bsc_entry_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_feedback_events": {
+ "name": "bsc_feedback_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_feedback_event_uq": {
+ "name": "bsc_feedback_event_uq",
+ "columns": [
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "bsc_feedback_agent_idx": {
+ "name": "bsc_feedback_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "bsc_feedback_client_idx": {
+ "name": "bsc_feedback_client_idx",
+ "columns": [
+ "clientAddress"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_feedback_events_id": {
+ "name": "bsc_feedback_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_rater_evidence": {
+ "name": "bsc_rater_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawEvents": {
+ "name": "rawEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawRaters": {
+ "name": "rawRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "concentratedRaters": {
+ "name": "concentratedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uniformRaters": {
+ "name": "uniformRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedRaters": {
+ "name": "linkedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "independentRaters": {
+ "name": "independentRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "weightedEvents": {
+ "name": "weightedEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerRegistrations": {
+ "name": "ownerRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerFleet": {
+ "name": "ownerFleet",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "qualifies": {
+ "name": "qualifies",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_rater_evidence_key_uq": {
+ "name": "bsc_rater_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_rater_evidence_qualifies_idx": {
+ "name": "bsc_rater_evidence_qualifies_idx",
+ "columns": [
+ "sourceId",
+ "qualifies"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_rater_evidence_id": {
+ "name": "bsc_rater_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_reputation_state": {
+ "name": "bsc_reputation_state",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "finalizedBlock": {
+ "name": "finalizedBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "implementation": {
+ "name": "implementation",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "evaluatedAt": {
+ "name": "evaluatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_reputation_state_id": {
+ "name": "bsc_reputation_state_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "chain_reputation_counts": {
+ "name": "chain_reputation_counts",
+ "columns": {
+ "chainKey": {
+ "name": "chainKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ratings": {
+ "name": "ratings",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "revocations": {
+ "name": "revocations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "caughtUpAt": {
+ "name": "caughtUpAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastRunAt": {
+ "name": "lastRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "chain_reputation_counts_chainKey": {
+ "name": "chain_reputation_counts_chainKey",
+ "columns": [
+ "chainKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "domain_verification_challenges": {
+ "name": "domain_verification_challenges",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenHash": {
+ "name": "tokenHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofUrl": {
+ "name": "proofUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','verified','failed','expired')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verifiedAt": {
+ "name": "verifiedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "recheckedAt": {
+ "name": "recheckedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofObjectKey": {
+ "name": "proofObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofHash": {
+ "name": "proofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "domain_verification_challenges_token_uq": {
+ "name": "domain_verification_challenges_token_uq",
+ "columns": [
+ "tokenHash"
+ ],
+ "isUnique": true
+ },
+ "domain_verification_challenges_agent_state_idx": {
+ "name": "domain_verification_challenges_agent_state_idx",
+ "columns": [
+ "agentId",
+ "state"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "domain_verification_challenges_agentId_agents_id_fk": {
+ "name": "domain_verification_challenges_agentId_agents_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "domain_verification_challenges_createdByUserId_users_id_fk": {
+ "name": "domain_verification_challenges_createdByUserId_users_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "domain_verification_challenges_id": {
+ "name": "domain_verification_challenges_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "evidence_events": {
+ "name": "evidence_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventType": {
+ "name": "eventType",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofReference": {
+ "name": "proofReference",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "payloadHash": {
+ "name": "payloadHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "evidence_events_agent_observed_idx": {
+ "name": "evidence_events_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "evidence_events_agentId_agents_id_fk": {
+ "name": "evidence_events_agentId_agents_id_fk",
+ "tableFrom": "evidence_events",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "evidence_events_sourceObservationId_source_observations_id_fk": {
+ "name": "evidence_events_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "evidence_events",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "evidence_events_id": {
+ "name": "evidence_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "identity_merge_reviews": {
+ "name": "identity_merge_reviews",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "existingAgentId": {
+ "name": "existingAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proposedAgentId": {
+ "name": "proposedAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','merged','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "resolvedAt": {
+ "name": "resolvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "identity_merge_reviews_identity_observation_uq": {
+ "name": "identity_merge_reviews_identity_observation_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash",
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "identity_merge_reviews_state_idx": {
+ "name": "identity_merge_reviews_state_idx",
+ "columns": [
+ "state",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "imr_existing_agent_fk": {
+ "name": "imr_existing_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "columnsFrom": [
+ "existingAgentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "imr_proposed_agent_fk": {
+ "name": "imr_proposed_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "columnsFrom": [
+ "proposedAgentId"
+ ],
+ "tableTo": "agents",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "imr_observation_fk": {
+ "name": "imr_observation_fk",
+ "tableFrom": "identity_merge_reviews",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "identity_merge_reviews_id": {
+ "name": "identity_merge_reviews_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_runs": {
+ "name": "ingestion_runs",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "trigger": {
+ "name": "trigger",
+ "type": "enum('manual','scheduled','replay')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('running','completed','failed','skipped')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "cursorBefore": {
+ "name": "cursorBefore",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "cursorAfter": {
+ "name": "cursorAfter",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "requestCount": {
+ "name": "requestCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "discoveredCount": {
+ "name": "discoveredCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "acceptedCount": {
+ "name": "acceptedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "rejectedCount": {
+ "name": "rejectedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "errorSummary": {
+ "name": "errorSummary",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ingestion_runs_source_started_idx": {
+ "name": "ingestion_runs_source_started_idx",
+ "columns": [
+ "sourceId",
+ "startedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_runs_sourceId_ingestion_sources_id_fk": {
+ "name": "ingestion_runs_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "ingestion_runs",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_runs_id": {
+ "name": "ingestion_runs_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_sources": {
+ "name": "ingestion_sources",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceKey": {
+ "name": "sourceKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rootUrl": {
+ "name": "rootUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "allowedHostname": {
+ "name": "allowedHostname",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','active','paused','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "executionPolicy": {
+ "name": "executionPolicy",
+ "type": "enum('scheduled','manual_only')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'scheduled'"
+ },
+ "scheduleMinutes": {
+ "name": "scheduleMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "cursor": {
+ "name": "cursor",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "nextRunAt": {
+ "name": "nextRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastSuccessfulAt": {
+ "name": "lastSuccessfulAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "failureCount": {
+ "name": "failureCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "ingestion_sources_source_key_uq": {
+ "name": "ingestion_sources_source_key_uq",
+ "columns": [
+ "sourceKey"
+ ],
+ "isUnique": true
+ },
+ "ingestion_sources_state_next_run_idx": {
+ "name": "ingestion_sources_state_next_run_idx",
+ "columns": [
+ "state",
+ "nextRunAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_sources_createdByUserId_users_id_fk": {
+ "name": "ingestion_sources_createdByUserId_users_id_fk",
+ "tableFrom": "ingestion_sources",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_sources_id": {
+ "name": "ingestion_sources_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_worker_config": {
+ "name": "ingestion_worker_config",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('paused','enabled')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'paused'"
+ },
+ "maxSourcesPerTick": {
+ "name": "maxSourcesPerTick",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "minGlobalIntervalMinutes": {
+ "name": "minGlobalIntervalMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "lastStartedAt": {
+ "name": "lastStartedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastCompletedAt": {
+ "name": "lastCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedByUserId": {
+ "name": "updatedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ingestion_worker_config_updatedByUserId_users_id_fk": {
+ "name": "ingestion_worker_config_updatedByUserId_users_id_fk",
+ "tableFrom": "ingestion_worker_config",
+ "columnsFrom": [
+ "updatedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_worker_config_id": {
+ "name": "ingestion_worker_config_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "owls_catch": {
+ "name": "owls_catch",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "catchDate": {
+ "name": "catchDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rule": {
+ "name": "rule",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "facts": {
+ "name": "facts",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceQuery": {
+ "name": "sourceQuery",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIds": {
+ "name": "agentIds",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "selectedAt": {
+ "name": "selectedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "owls_catch_date_uq": {
+ "name": "owls_catch_date_uq",
+ "columns": [
+ "catchDate"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "owls_catch_id": {
+ "name": "owls_catch_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_bindings": {
+ "name": "publisher_bindings",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIdentityId": {
+ "name": "agentIdentityId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationMethod": {
+ "name": "validationMethod",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validatedAt": {
+ "name": "validatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_bindings_identity_key_uq": {
+ "name": "publisher_bindings_identity_key_uq",
+ "columns": [
+ "agentIdentityId",
+ "publisherKeyId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_bindings_agentIdentityId_agent_identities_id_fk": {
+ "name": "publisher_bindings_agentIdentityId_agent_identities_id_fk",
+ "tableFrom": "publisher_bindings",
+ "columnsFrom": [
+ "agentIdentityId"
+ ],
+ "tableTo": "agent_identities",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "publisher_bindings_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_bindings_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_bindings",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "tableTo": "publisher_keys",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "publisher_bindings_sourceObservationId_source_observations_id_fk": {
+ "name": "publisher_bindings_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "publisher_bindings",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_bindings_id": {
+ "name": "publisher_bindings_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_key_history": {
+ "name": "publisher_key_history",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "changedByUserId": {
+ "name": "changedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "changedAt": {
+ "name": "changedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_key_history_key_changed_idx": {
+ "name": "publisher_key_history_key_changed_idx",
+ "columns": [
+ "publisherKeyId",
+ "changedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "publisher_key_history_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_key_history_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_key_history",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "tableTo": "publisher_keys",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "publisher_key_history_changedByUserId_users_id_fk": {
+ "name": "publisher_key_history_changedByUserId_users_id_fk",
+ "tableFrom": "publisher_key_history",
+ "columnsFrom": [
+ "changedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_key_history_id": {
+ "name": "publisher_key_history_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_keys": {
+ "name": "publisher_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "issuerName": {
+ "name": "issuerName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyFingerprint": {
+ "name": "publicKeyFingerprint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyPem": {
+ "name": "publicKeyPem",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "permittedDomains": {
+ "name": "permittedDomains",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "permittedProtocols": {
+ "name": "permittedProtocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "policyVersion": {
+ "name": "policyVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "attestationObjectKey": {
+ "name": "attestationObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationHash": {
+ "name": "attestationHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationSignature": {
+ "name": "attestationSignature",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationOfKeyId": {
+ "name": "rotationOfKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationProofHash": {
+ "name": "rotationProofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedByUserId": {
+ "name": "approvedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedAt": {
+ "name": "approvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "publisher_keys_fingerprint_uq": {
+ "name": "publisher_keys_fingerprint_uq",
+ "columns": [
+ "publicKeyFingerprint"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_keys_approvedByUserId_users_id_fk": {
+ "name": "publisher_keys_approvedByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "columnsFrom": [
+ "approvedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "publisher_keys_createdByUserId_users_id_fk": {
+ "name": "publisher_keys_createdByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_keys_id": {
+ "name": "publisher_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "review_items": {
+ "name": "review_items",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "enum('source','identity_collision','publisher_key','endpoint_mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('pending','approved','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "subjectType": {
+ "name": "subjectType",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectId": {
+ "name": "subjectId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ }
+ },
+ "indexes": {
+ "review_items_status_created_idx": {
+ "name": "review_items_status_created_idx",
+ "columns": [
+ "status",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "review_items_createdByUserId_users_id_fk": {
+ "name": "review_items_createdByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "review_items_decidedByUserId_users_id_fk": {
+ "name": "review_items_decidedByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "review_items_id": {
+ "name": "review_items_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observation_runs": {
+ "name": "source_observation_runs",
+ "columns": {
+ "runId": {
+ "name": "runId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observationId": {
+ "name": "observationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedAt": {
+ "name": "linkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observation_runs_uq": {
+ "name": "source_observation_runs_uq",
+ "columns": [
+ "runId",
+ "observationId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "source_observation_runs_runId_ingestion_runs_id_fk": {
+ "name": "source_observation_runs_runId_ingestion_runs_id_fk",
+ "tableFrom": "source_observation_runs",
+ "columnsFrom": [
+ "runId"
+ ],
+ "tableTo": "ingestion_runs",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "source_observation_runs_observationId_source_observations_id_fk": {
+ "name": "source_observation_runs_observationId_source_observations_id_fk",
+ "tableFrom": "source_observation_runs",
+ "columnsFrom": [
+ "observationId"
+ ],
+ "tableTo": "source_observations",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observations": {
+ "name": "source_observations",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "canonicalLocator": {
+ "name": "canonicalLocator",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHash": {
+ "name": "locatorHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentHash": {
+ "name": "contentHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawObjectKey": {
+ "name": "rawObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentType": {
+ "name": "contentType",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "httpStatus": {
+ "name": "httpStatus",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "parserVersion": {
+ "name": "parserVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationStatus": {
+ "name": "validationStatus",
+ "type": "enum('valid','invalid','partial')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationFindings": {
+ "name": "validationFindings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observations_content_uq": {
+ "name": "source_observations_content_uq",
+ "columns": [
+ "sourceId",
+ "locatorHash",
+ "contentHash"
+ ],
+ "isUnique": true
+ },
+ "source_observations_source_observed_idx": {
+ "name": "source_observations_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "source_observations_sourceId_ingestion_sources_id_fk": {
+ "name": "source_observations_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_observations",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_observations_id": {
+ "name": "source_observations_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_projection_decisions": {
+ "name": "source_projection_decisions",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','public','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ },
+ "approvedRunId": {
+ "name": "approvedRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "source_projection_decisions_sourceId_ingestion_sources_id_fk": {
+ "name": "source_projection_decisions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "tableTo": "ingestion_sources",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "source_projection_decisions_decidedByUserId_users_id_fk": {
+ "name": "source_projection_decisions_decidedByUserId_users_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "tableTo": "users",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ },
+ "spd_approved_run_fk": {
+ "name": "spd_approved_run_fk",
+ "tableFrom": "source_projection_decisions",
+ "columnsFrom": [
+ "approvedRunId"
+ ],
+ "tableTo": "ingestion_runs",
+ "columnsTo": [
+ "id"
+ ],
+ "onUpdate": "no action",
+ "onDelete": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_projection_decisions_sourceId": {
+ "name": "source_projection_decisions_sourceId",
+ "columns": [
+ "sourceId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "openId": {
+ "name": "openId",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "varchar(320)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "loginMethod": {
+ "name": "loginMethod",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "role": {
+ "name": "role",
+ "type": "enum('user','admin')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'user'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())",
+ "onUpdate": true
+ },
+ "lastSignedIn": {
+ "name": "lastSignedIn",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "users_id": {
+ "name": "users_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {
+ "users_openId_unique": {
+ "name": "users_openId_unique",
+ "columns": [
+ "openId"
+ ]
+ }
+ },
+ "checkConstraint": {}
+ }
+ },
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ },
+ "internal": {
+ "tables": {},
+ "indexes": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/nooscape-relay/drizzle/meta/0059_snapshot.json b/apps/nooscape-relay/drizzle/meta/0059_snapshot.json
new file mode 100644
index 0000000..d1f4ae7
--- /dev/null
+++ b/apps/nooscape-relay/drizzle/meta/0059_snapshot.json
@@ -0,0 +1,5993 @@
+{
+ "version": "5",
+ "dialect": "mysql",
+ "id": "9c69755e-22d9-4e54-91d7-7c2352f4608b",
+ "prevId": "49ab6d94-8931-4aab-846a-31e8acc209c0",
+ "tables": {
+ "agent_checks": {
+ "name": "agent_checks",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointId": {
+ "name": "endpointId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "checkedAt": {
+ "name": "checkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "statusCode": {
+ "name": "statusCode",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latencyMs": {
+ "name": "latencyMs",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bodySha256": {
+ "name": "bodySha256",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_checks_endpoint_idx": {
+ "name": "agent_checks_endpoint_idx",
+ "columns": [
+ "endpointId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_checks_agent_idx": {
+ "name": "agent_checks_agent_idx",
+ "columns": [
+ "agentId",
+ "kind",
+ "checkedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_checks_id": {
+ "name": "agent_checks_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_edits": {
+ "name": "agent_claim_edits",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "claimId": {
+ "name": "claimId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "field": {
+ "name": "field",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "oldValue": {
+ "name": "oldValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "newValue": {
+ "name": "newValue",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "occurredAt": {
+ "name": "occurredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_claim_edits_seq_uq": {
+ "name": "agent_claim_edits_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_edits_entry_idx": {
+ "name": "agent_claim_edits_entry_idx",
+ "columns": [
+ "entryId",
+ "seq"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_edits_claim_idx": {
+ "name": "agent_claim_edits_claim_idx",
+ "columns": [
+ "claimId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_edits_id": {
+ "name": "agent_claim_edits_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claim_nonces": {
+ "name": "agent_claim_nonces",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonceHash": {
+ "name": "nonceHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "editText": {
+ "name": "editText",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "issuedAt": {
+ "name": "issuedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "usedAt": {
+ "name": "usedAt",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claim_nonces_hash_uq": {
+ "name": "agent_claim_nonces_hash_uq",
+ "columns": [
+ "nonceHash"
+ ],
+ "isUnique": true
+ },
+ "agent_claim_nonces_expiry_idx": {
+ "name": "agent_claim_nonces_expiry_idx",
+ "columns": [
+ "expiresAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claim_nonces_edits_idx": {
+ "name": "agent_claim_nonces_edits_idx",
+ "columns": [
+ "entryId",
+ "action",
+ "usedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claim_nonces_id": {
+ "name": "agent_claim_nonces_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_claims": {
+ "name": "agent_claims",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "inForceEntryId": {
+ "name": "inForceEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "chainId": {
+ "name": "chainId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "registry": {
+ "name": "registry",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenId": {
+ "name": "tokenId",
+ "type": "varchar(80)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "wallet": {
+ "name": "wallet",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "claimedAt": {
+ "name": "claimedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "statusChangedAt": {
+ "name": "statusChangedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastOwnerCheckAt": {
+ "name": "lastOwnerCheckAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "signatureDigest": {
+ "name": "signatureDigest",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar(120)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "varchar(1000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "links": {
+ "name": "links",
+ "type": "varchar(2000)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_claims_in_force_uq": {
+ "name": "agent_claims_in_force_uq",
+ "columns": [
+ "inForceEntryId"
+ ],
+ "isUnique": true
+ },
+ "agent_claims_entry_idx": {
+ "name": "agent_claims_entry_idx",
+ "columns": [
+ "entryId",
+ "claimedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_wallet_idx": {
+ "name": "agent_claims_wallet_idx",
+ "columns": [
+ "wallet",
+ "inForceEntryId"
+ ],
+ "isUnique": false
+ },
+ "agent_claims_check_idx": {
+ "name": "agent_claims_check_idx",
+ "columns": [
+ "status",
+ "lastOwnerCheckAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_claims_id": {
+ "name": "agent_claims_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_activity": {
+ "name": "agent_directory_chain_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('mint','secondary','uri_update')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_activity_event_uq": {
+ "name": "agent_directory_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_activity_entry_idx": {
+ "name": "agent_directory_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_activity_block_idx": {
+ "name": "agent_directory_activity_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_activity",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_activity_id": {
+ "name": "agent_directory_chain_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_chain_links": {
+ "name": "agent_directory_chain_links",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "metadataKey": {
+ "name": "metadataKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedProtocol": {
+ "name": "linkedProtocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','other')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedExternalKey": {
+ "name": "linkedExternalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedEntryId": {
+ "name": "linkedEntryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "metadataValueHash": {
+ "name": "metadataValueHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "discoveredAt": {
+ "name": "discoveredAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_chain_link_uq": {
+ "name": "agent_directory_chain_link_uq",
+ "columns": [
+ "sourceId",
+ "externalKey",
+ "metadataKey",
+ "linkedExternalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_chain_link_linked_idx": {
+ "name": "agent_directory_chain_link_linked_idx",
+ "columns": [
+ "linkedExternalKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_chain_links_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_chain_links_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_chain_links",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_chain_links_id": {
+ "name": "agent_directory_chain_links_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_entries": {
+ "name": "agent_directory_entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_source_external_uq": {
+ "name": "agent_directory_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_display_name_idx": {
+ "name": "agent_directory_display_name_idx",
+ "columns": [
+ "displayName"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_last_seen_idx": {
+ "name": "agent_directory_last_seen_idx",
+ "columns": [
+ "lastSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_first_seen_idx": {
+ "name": "agent_directory_first_seen_idx",
+ "columns": [
+ "firstSeenAt"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_registrant_idx": {
+ "name": "agent_directory_registrant_idx",
+ "columns": [
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_directory_hidden_idx": {
+ "name": "agent_directory_hidden_idx",
+ "columns": [
+ "hidden"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_entries_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_entries_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_entries",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_entries_id": {
+ "name": "agent_directory_entries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_listing_pins": {
+ "name": "agent_directory_listing_pins",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "note": {
+ "name": "note",
+ "type": "varchar(300)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pinnedAt": {
+ "name": "pinnedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_listing_pins_pk": {
+ "name": "agent_directory_listing_pins_pk",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_overflow": {
+ "name": "agent_directory_registry_overflow",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "overflowCount": {
+ "name": "overflowCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastBlock": {
+ "name": "lastBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_registry_overflow_key_uq": {
+ "name": "agent_registry_overflow_key_uq",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agent_directory_registry_overflow_id": {
+ "name": "agent_directory_registry_overflow_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_registry_rows": {
+ "name": "agent_directory_registry_rows",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHost": {
+ "name": "locatorHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceSignalNote": {
+ "name": "sourceSignalNote",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "registrant": {
+ "name": "registrant",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mintBlock": {
+ "name": "mintBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secondaryTransferCount": {
+ "name": "secondaryTransferCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handoutCount": {
+ "name": "handoutCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "uriUpdateCount": {
+ "name": "uriUpdateCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "accountPubkey": {
+ "name": "accountPubkey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackCount": {
+ "name": "feedbackCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "hidden": {
+ "name": "hidden",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
+ "assetClosedAt": {
+ "name": "assetClosedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastRunId": {
+ "name": "lastRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "listing": {
+ "name": "listing",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 3
+ }
+ },
+ "indexes": {
+ "agent_registry_rows_source_external_uq": {
+ "name": "agent_registry_rows_source_external_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "agent_registry_rows_registrant_idx": {
+ "name": "agent_registry_rows_registrant_idx",
+ "columns": [
+ "sourceId",
+ "registrant"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_host_idx": {
+ "name": "agent_registry_rows_host_idx",
+ "columns": [
+ "sourceId",
+ "locatorHost"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_profile_idx": {
+ "name": "agent_registry_rows_profile_idx",
+ "columns": [
+ "sourceId",
+ "profileUriHash"
+ ],
+ "isUnique": false
+ },
+ "agent_registry_rows_listing_idx": {
+ "name": "agent_registry_rows_listing_idx",
+ "columns": [
+ "sourceId",
+ "listing"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_registry_rows_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_registry_rows",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_registry_rows_id": {
+ "name": "agent_directory_registry_rows_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_directory_usdg_settlements": {
+ "name": "agent_directory_usdg_settlements",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payerAddress": {
+ "name": "payerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payeeAddress": {
+ "name": "payeeAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "relayerAddress": {
+ "name": "relayerAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(30,0)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_directory_usdg_settlement_uq": {
+ "name": "agent_directory_usdg_settlement_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_directory_usdg_settlement_block_idx": {
+ "name": "agent_directory_usdg_settlement_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_directory_usdg_settlements_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_directory_usdg_settlements",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_directory_usdg_settlements_id": {
+ "name": "agent_directory_usdg_settlements_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_endpoints": {
+ "name": "agent_endpoints",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','catalog','census')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointUrl": {
+ "name": "endpointUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpointHash": {
+ "name": "endpointHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "authentication": {
+ "name": "authentication",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "domainVerification": {
+ "name": "domainVerification",
+ "type": "enum('unverified','verified','mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "lastHealth": {
+ "name": "lastHealth",
+ "type": "enum('unknown','healthy','unreachable')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_endpoints_url_uq": {
+ "name": "agent_endpoints_url_uq",
+ "columns": [
+ "agentId",
+ "endpointHash"
+ ],
+ "isUnique": true
+ },
+ "agent_endpoints_agent_idx": {
+ "name": "agent_endpoints_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_endpoints_agentId_agents_id_fk": {
+ "name": "agent_endpoints_agentId_agents_id_fk",
+ "tableFrom": "agent_endpoints",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "agent_endpoints_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_endpoints_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_endpoints",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_endpoints_id": {
+ "name": "agent_endpoints_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_identities": {
+ "name": "agent_identities",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalId": {
+ "name": "externalId",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationState": {
+ "name": "verificationState",
+ "type": "enum('asserted','verified','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'asserted'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_identities_external_uq": {
+ "name": "agent_identities_external_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash"
+ ],
+ "isUnique": true
+ },
+ "agent_identities_agent_idx": {
+ "name": "agent_identities_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_identities_agentId_agents_id_fk": {
+ "name": "agent_identities_agentId_agents_id_fk",
+ "tableFrom": "agent_identities",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "agent_identities_sourceObservationId_source_observations_id_fk": {
+ "name": "agent_identities_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "agent_identities",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_identities_id": {
+ "name": "agent_identities_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_public_snapshots": {
+ "name": "agent_public_snapshots",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayHandle": {
+ "name": "displayHandle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "untrustedSelfDescription": {
+ "name": "untrustedSelfDescription",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "partyHost": {
+ "name": "partyHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "agent_public_snapshots_source_observation_uq": {
+ "name": "agent_public_snapshots_source_observation_uq",
+ "columns": [
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "agent_public_snapshots_agent_observed_idx": {
+ "name": "agent_public_snapshots_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ },
+ "agent_public_snapshots_source_observed_idx": {
+ "name": "agent_public_snapshots_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "aps_agent_fk": {
+ "name": "aps_agent_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "aps_source_fk": {
+ "name": "aps_source_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "aps_observation_fk": {
+ "name": "aps_observation_fk",
+ "tableFrom": "agent_public_snapshots",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_public_snapshots_id": {
+ "name": "agent_public_snapshots_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_read_model": {
+ "name": "agent_read_model",
+ "columns": {
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "protocols": {
+ "name": "protocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherState": {
+ "name": "publisherState",
+ "type": "enum('allowlisted','expired','revoked','unverified')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unverified'"
+ },
+ "evidenceTier": {
+ "name": "evidenceTier",
+ "type": "enum('tier_0','tier_1','tier_2','tier_3','tier_4')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'tier_2'"
+ },
+ "sourceCount": {
+ "name": "sourceCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastObservedAt": {
+ "name": "lastObservedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "evidenceSummary": {
+ "name": "evidenceSummary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verifiedCardHash": {
+ "name": "verifiedCardHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "publisherExpiresAt": {
+ "name": "publisherExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_read_model_freshness_idx": {
+ "name": "agent_read_model_freshness_idx",
+ "columns": [
+ "lastObservedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_read_model_agentId_agents_id_fk": {
+ "name": "agent_read_model_agentId_agents_id_fk",
+ "tableFrom": "agent_read_model",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_read_model_agentId": {
+ "name": "agent_read_model_agentId",
+ "columns": [
+ "agentId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_record_withdrawals": {
+ "name": "agent_record_withdrawals",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "action": {
+ "name": "action",
+ "type": "enum('withdraw','reinstate')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_record_withdrawals_agent_decided_idx": {
+ "name": "agent_record_withdrawals_agent_decided_idx",
+ "columns": [
+ "agentId",
+ "decidedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_record_withdrawals_decidedByUserId_users_id_fk": {
+ "name": "agent_record_withdrawals_decidedByUserId_users_id_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "arw_agent_fk": {
+ "name": "arw_agent_fk",
+ "tableFrom": "agent_record_withdrawals",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_record_withdrawals_id": {
+ "name": "agent_record_withdrawals_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_registration_resolutions": {
+ "name": "agent_registration_resolutions",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriHash": {
+ "name": "uriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uriKind": {
+ "name": "uriKind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uri": {
+ "name": "uri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('resolved','no_name','failed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "failReason": {
+ "name": "failReason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "resolvedName": {
+ "name": "resolvedName",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastAttemptAt": {
+ "name": "lastAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fetchedAt": {
+ "name": "fetchedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_registration_resolution_uq": {
+ "name": "agent_registration_resolution_uq",
+ "columns": [
+ "sourceId",
+ "uriHash"
+ ],
+ "isUnique": true
+ },
+ "agent_registration_resolution_status_idx": {
+ "name": "agent_registration_resolution_status_idx",
+ "columns": [
+ "sourceId",
+ "status"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_registration_resolutions_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_registration_resolutions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_registration_resolutions",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_registration_resolutions_id": {
+ "name": "agent_registration_resolutions_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_reputation_events": {
+ "name": "agent_reputation_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('new_feedback','feedback_revoked','response_appended')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "decimal(39,0)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag1": {
+ "name": "tag1",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tag2": {
+ "name": "tag2",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackUri": {
+ "name": "feedbackUri",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feedbackHash": {
+ "name": "feedbackHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "responderAddress": {
+ "name": "responderAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "pairOrdinal": {
+ "name": "pairOrdinal",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_reputation_event_uq": {
+ "name": "agent_reputation_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "agent_reputation_agent_idx": {
+ "name": "agent_reputation_agent_idx",
+ "columns": [
+ "sourceId",
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_pair_idx": {
+ "name": "agent_reputation_pair_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "blockNumber",
+ "logIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_feedback_idx": {
+ "name": "agent_reputation_feedback_idx",
+ "columns": [
+ "sourceId",
+ "agentId",
+ "clientAddress",
+ "feedbackIndex"
+ ],
+ "isUnique": false
+ },
+ "agent_reputation_block_idx": {
+ "name": "agent_reputation_block_idx",
+ "columns": [
+ "sourceId",
+ "blockNumber"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_reputation_events_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_reputation_events_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_reputation_events",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_reputation_events_id": {
+ "name": "agent_reputation_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agent_solana_activity": {
+ "name": "agent_solana_activity",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionSignature": {
+ "name": "transactionSignature",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "slot": {
+ "name": "slot",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "enum('register','transfer','profile_update','asset_closed')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "fromOwner": {
+ "name": "fromOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "toOwner": {
+ "name": "toOwner",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agent_solana_activity_event_uq": {
+ "name": "agent_solana_activity_event_uq",
+ "columns": [
+ "sourceId",
+ "transactionSignature",
+ "externalKey",
+ "kind"
+ ],
+ "isUnique": true
+ },
+ "agent_solana_activity_entry_idx": {
+ "name": "agent_solana_activity_entry_idx",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": false
+ },
+ "agent_solana_activity_slot_idx": {
+ "name": "agent_solana_activity_slot_idx",
+ "columns": [
+ "sourceId",
+ "slot"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "agent_solana_activity_sourceId_ingestion_sources_id_fk": {
+ "name": "agent_solana_activity_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "agent_solana_activity",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "agent_solana_activity_id": {
+ "name": "agent_solana_activity_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "agents": {
+ "name": "agents",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "displayName": {
+ "name": "displayName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "primaryCapability": {
+ "name": "primaryCapability",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lifecycle": {
+ "name": "lifecycle",
+ "type": "enum('active','inactive','unknown','conflicted')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'unknown'"
+ },
+ "mapX": {
+ "name": "mapX",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "mapY": {
+ "name": "mapY",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "firstSeenAt": {
+ "name": "firstSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastSeenAt": {
+ "name": "lastSeenAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "agents_handle_uq": {
+ "name": "agents_handle_uq",
+ "columns": [
+ "handle"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "agents_id": {
+ "name": "agents_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_deliveries": {
+ "name": "api_deliveries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventRef": {
+ "name": "eventRef",
+ "type": "varchar(96)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "body": {
+ "name": "body",
+ "type": "varchar(4000)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(8)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "attempts": {
+ "name": "attempts",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextAttemptAt": {
+ "name": "nextAttemptAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "lastStatus": {
+ "name": "lastStatus",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "sentAt": {
+ "name": "sentAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_deliveries_seq_uq": {
+ "name": "api_deliveries_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_event_uq": {
+ "name": "api_deliveries_event_uq",
+ "columns": [
+ "keyId",
+ "eventRef"
+ ],
+ "isUnique": true
+ },
+ "api_deliveries_due_idx": {
+ "name": "api_deliveries_due_idx",
+ "columns": [
+ "status",
+ "nextAttemptAt"
+ ],
+ "isUnique": false
+ },
+ "api_deliveries_key_idx": {
+ "name": "api_deliveries_key_idx",
+ "columns": [
+ "keyId",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_deliveries_id": {
+ "name": "api_deliveries_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_event_cursors": {
+ "name": "api_event_cursors",
+ "columns": {
+ "name": {
+ "name": "name",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "position": {
+ "name": "position",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_event_cursors_name": {
+ "name": "api_event_cursors_name",
+ "columns": [
+ "name"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_keys": {
+ "name": "api_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyHash": {
+ "name": "keyHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "keyPrefix": {
+ "name": "keyPrefix",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerEmail": {
+ "name": "ownerEmail",
+ "type": "varchar(254)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tier": {
+ "name": "tier",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'free'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "api_keys_hash_uq": {
+ "name": "api_keys_hash_uq",
+ "columns": [
+ "keyHash"
+ ],
+ "isUnique": true
+ },
+ "api_keys_email_idx": {
+ "name": "api_keys_email_idx",
+ "columns": [
+ "ownerEmail",
+ "revokedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_keys_id": {
+ "name": "api_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_payments": {
+ "name": "api_payments",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "seq": {
+ "name": "seq",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "paymentId": {
+ "name": "paymentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "network": {
+ "name": "network",
+ "type": "varchar(20)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(12)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "payer": {
+ "name": "payer",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nonce": {
+ "name": "nonce",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "amount": {
+ "name": "amount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validBefore": {
+ "name": "validBefore",
+ "type": "bigint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectHash": {
+ "name": "subjectHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transaction": {
+ "name": "transaction",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sends": {
+ "name": "sends",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "serves": {
+ "name": "serves",
+ "type": "tinyint unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_payments_seq_uq": {
+ "name": "api_payments_seq_uq",
+ "columns": [
+ "seq"
+ ],
+ "isUnique": true
+ },
+ "api_payments_authorization_uq": {
+ "name": "api_payments_authorization_uq",
+ "columns": [
+ "network",
+ "payer",
+ "nonce"
+ ],
+ "isUnique": true
+ },
+ "api_payments_status_idx": {
+ "name": "api_payments_status_idx",
+ "columns": [
+ "status",
+ "seq"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_payments_id": {
+ "name": "api_payments_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_usage": {
+ "name": "api_usage",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "day": {
+ "name": "day",
+ "type": "date",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_usage_pk": {
+ "name": "api_usage_pk",
+ "columns": [
+ "keyId",
+ "day",
+ "endpoint"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_watches": {
+ "name": "api_watches",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "entryId": {
+ "name": "entryId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "visible": {
+ "name": "visible",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "api_watches_entry_idx": {
+ "name": "api_watches_entry_idx",
+ "columns": [
+ "entryId"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_watches_pk": {
+ "name": "api_watches_pk",
+ "columns": [
+ "keyId",
+ "entryId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "api_webhooks": {
+ "name": "api_webhooks",
+ "columns": {
+ "keyId": {
+ "name": "keyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "varchar(500)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "secretVersion": {
+ "name": "secretVersion",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "failures": {
+ "name": "failures",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "disabledAt": {
+ "name": "disabledAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "api_webhooks_keyId": {
+ "name": "api_webhooks_keyId",
+ "columns": [
+ "keyId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_clusters": {
+ "name": "bsc_clusters",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clusterKey": {
+ "name": "clusterKey",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(200)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "memberCount": {
+ "name": "memberCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_clusters_key_uq": {
+ "name": "bsc_clusters_key_uq",
+ "columns": [
+ "sourceId",
+ "kind",
+ "clusterKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_clusters_size_idx": {
+ "name": "bsc_clusters_size_idx",
+ "columns": [
+ "sourceId",
+ "kind",
+ "memberCount"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_clusters_id": {
+ "name": "bsc_clusters_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_endpoint_host_groups": {
+ "name": "bsc_endpoint_host_groups",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "host": {
+ "name": "host",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "listedCount": {
+ "name": "listedCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletCount": {
+ "name": "walletCount",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleVersion": {
+ "name": "ruleVersion",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ruleDate": {
+ "name": "ruleDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_endpoint_host_groups_key_uq": {
+ "name": "bsc_endpoint_host_groups_key_uq",
+ "columns": [
+ "sourceId",
+ "host"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_endpoint_host_groups_id": {
+ "name": "bsc_endpoint_host_groups_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_entry_evidence": {
+ "name": "bsc_entry_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "profileUriHash": {
+ "name": "profileUriHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readStatus": {
+ "name": "readStatus",
+ "type": "varchar(24)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateKey": {
+ "name": "templateKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "endpointHost": {
+ "name": "endpointHost",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "g1": {
+ "name": "g1",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "templateSize": {
+ "name": "templateSize",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "walletRegistrations": {
+ "name": "walletRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readAt": {
+ "name": "readAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_entry_evidence_key_uq": {
+ "name": "bsc_entry_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_entry_evidence_template_idx": {
+ "name": "bsc_entry_evidence_template_idx",
+ "columns": [
+ "sourceId",
+ "templateKey"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_entry_evidence_id": {
+ "name": "bsc_entry_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_feedback_events": {
+ "name": "bsc_feedback_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "transactionHash": {
+ "name": "transactionHash",
+ "type": "varchar(66)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "logIndex": {
+ "name": "logIndex",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "kind": {
+ "name": "kind",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "blockNumber": {
+ "name": "blockNumber",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "clientAddress": {
+ "name": "clientAddress",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feedbackIndex": {
+ "name": "feedbackIndex",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueRaw": {
+ "name": "valueRaw",
+ "type": "varchar(40)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "valueDecimals": {
+ "name": "valueDecimals",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_feedback_event_uq": {
+ "name": "bsc_feedback_event_uq",
+ "columns": [
+ "transactionHash",
+ "logIndex"
+ ],
+ "isUnique": true
+ },
+ "bsc_feedback_agent_idx": {
+ "name": "bsc_feedback_agent_idx",
+ "columns": [
+ "agentId"
+ ],
+ "isUnique": false
+ },
+ "bsc_feedback_client_idx": {
+ "name": "bsc_feedback_client_idx",
+ "columns": [
+ "clientAddress"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_feedback_events_id": {
+ "name": "bsc_feedback_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_rater_evidence": {
+ "name": "bsc_rater_evidence",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalKey": {
+ "name": "externalKey",
+ "type": "varchar(128)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawEvents": {
+ "name": "rawEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawRaters": {
+ "name": "rawRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "concentratedRaters": {
+ "name": "concentratedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "uniformRaters": {
+ "name": "uniformRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedRaters": {
+ "name": "linkedRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "independentRaters": {
+ "name": "independentRaters",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "weightedEvents": {
+ "name": "weightedEvents",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerRegistrations": {
+ "name": "ownerRegistrations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ownerFleet": {
+ "name": "ownerFleet",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "qualifies": {
+ "name": "qualifies",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "computedAt": {
+ "name": "computedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "bsc_rater_evidence_key_uq": {
+ "name": "bsc_rater_evidence_key_uq",
+ "columns": [
+ "sourceId",
+ "externalKey"
+ ],
+ "isUnique": true
+ },
+ "bsc_rater_evidence_qualifies_idx": {
+ "name": "bsc_rater_evidence_qualifies_idx",
+ "columns": [
+ "sourceId",
+ "qualifies"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_rater_evidence_id": {
+ "name": "bsc_rater_evidence_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "bsc_reputation_state": {
+ "name": "bsc_reputation_state",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "finalizedBlock": {
+ "name": "finalizedBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "implementation": {
+ "name": "implementation",
+ "type": "varchar(42)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "evaluatedAt": {
+ "name": "evaluatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "bsc_reputation_state_id": {
+ "name": "bsc_reputation_state_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "chain_reputation_counts": {
+ "name": "chain_reputation_counts",
+ "columns": {
+ "chainKey": {
+ "name": "chainKey",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "ratings": {
+ "name": "ratings",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "revocations": {
+ "name": "revocations",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "nextBlock": {
+ "name": "nextBlock",
+ "type": "int unsigned",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "caughtUpAt": {
+ "name": "caughtUpAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastRunAt": {
+ "name": "lastRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "chain_reputation_counts_chainKey": {
+ "name": "chain_reputation_counts_chainKey",
+ "columns": [
+ "chainKey"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "domain_verification_challenges": {
+ "name": "domain_verification_challenges",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "tokenHash": {
+ "name": "tokenHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofUrl": {
+ "name": "proofUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','verified','failed','expired')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "verifiedAt": {
+ "name": "verifiedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "verificationExpiresAt": {
+ "name": "verificationExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "recheckedAt": {
+ "name": "recheckedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofObjectKey": {
+ "name": "proofObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "proofHash": {
+ "name": "proofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "domain_verification_challenges_token_uq": {
+ "name": "domain_verification_challenges_token_uq",
+ "columns": [
+ "tokenHash"
+ ],
+ "isUnique": true
+ },
+ "domain_verification_challenges_agent_state_idx": {
+ "name": "domain_verification_challenges_agent_state_idx",
+ "columns": [
+ "agentId",
+ "state"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "domain_verification_challenges_agentId_agents_id_fk": {
+ "name": "domain_verification_challenges_agentId_agents_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "domain_verification_challenges_createdByUserId_users_id_fk": {
+ "name": "domain_verification_challenges_createdByUserId_users_id_fk",
+ "tableFrom": "domain_verification_challenges",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "domain_verification_challenges_id": {
+ "name": "domain_verification_challenges_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "evidence_events": {
+ "name": "evidence_events",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentId": {
+ "name": "agentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "eventType": {
+ "name": "eventType",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proofReference": {
+ "name": "proofReference",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "payloadHash": {
+ "name": "payloadHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "evidence_events_agent_observed_idx": {
+ "name": "evidence_events_agent_observed_idx",
+ "columns": [
+ "agentId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "evidence_events_agentId_agents_id_fk": {
+ "name": "evidence_events_agentId_agents_id_fk",
+ "tableFrom": "evidence_events",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "evidence_events_sourceObservationId_source_observations_id_fk": {
+ "name": "evidence_events_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "evidence_events",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "evidence_events_id": {
+ "name": "evidence_events_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "identity_merge_reviews": {
+ "name": "identity_merge_reviews",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "identityType": {
+ "name": "identityType",
+ "type": "enum('a2a_url','anp_url','erc8004','did','domain','wallet','solana_mint','catalog_record')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "externalIdHash": {
+ "name": "externalIdHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "existingAgentId": {
+ "name": "existingAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "proposedAgentId": {
+ "name": "proposedAgentId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','merged','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "resolvedAt": {
+ "name": "resolvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "identity_merge_reviews_identity_observation_uq": {
+ "name": "identity_merge_reviews_identity_observation_uq",
+ "columns": [
+ "identityType",
+ "externalIdHash",
+ "sourceObservationId"
+ ],
+ "isUnique": true
+ },
+ "identity_merge_reviews_state_idx": {
+ "name": "identity_merge_reviews_state_idx",
+ "columns": [
+ "state",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "imr_existing_agent_fk": {
+ "name": "imr_existing_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "existingAgentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "imr_proposed_agent_fk": {
+ "name": "imr_proposed_agent_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "proposedAgentId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "imr_observation_fk": {
+ "name": "imr_observation_fk",
+ "tableFrom": "identity_merge_reviews",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "identity_merge_reviews_id": {
+ "name": "identity_merge_reviews_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_runs": {
+ "name": "ingestion_runs",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "trigger": {
+ "name": "trigger",
+ "type": "enum('manual','scheduled','replay')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('running','completed','failed','skipped')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "cursorBefore": {
+ "name": "cursorBefore",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "cursorAfter": {
+ "name": "cursorAfter",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "requestCount": {
+ "name": "requestCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "discoveredCount": {
+ "name": "discoveredCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "acceptedCount": {
+ "name": "acceptedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "rejectedCount": {
+ "name": "rejectedCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "errorSummary": {
+ "name": "errorSummary",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ingestion_runs_source_started_idx": {
+ "name": "ingestion_runs_source_started_idx",
+ "columns": [
+ "sourceId",
+ "startedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_runs_sourceId_ingestion_sources_id_fk": {
+ "name": "ingestion_runs_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "ingestion_runs",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_runs_id": {
+ "name": "ingestion_runs_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_sources": {
+ "name": "ingestion_sources",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceKey": {
+ "name": "sourceKey",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "label": {
+ "name": "label",
+ "type": "varchar(160)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rootUrl": {
+ "name": "rootUrl",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "allowedHostname": {
+ "name": "allowedHostname",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','active','paused','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "executionPolicy": {
+ "name": "executionPolicy",
+ "type": "enum('scheduled','manual_only')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'scheduled'"
+ },
+ "scheduleMinutes": {
+ "name": "scheduleMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "cursor": {
+ "name": "cursor",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "nextRunAt": {
+ "name": "nextRunAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastSuccessfulAt": {
+ "name": "lastSuccessfulAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "failureCount": {
+ "name": "failureCount",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 0
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "ingestion_sources_source_key_uq": {
+ "name": "ingestion_sources_source_key_uq",
+ "columns": [
+ "sourceKey"
+ ],
+ "isUnique": true
+ },
+ "ingestion_sources_state_next_run_idx": {
+ "name": "ingestion_sources_state_next_run_idx",
+ "columns": [
+ "state",
+ "nextRunAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "ingestion_sources_createdByUserId_users_id_fk": {
+ "name": "ingestion_sources_createdByUserId_users_id_fk",
+ "tableFrom": "ingestion_sources",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_sources_id": {
+ "name": "ingestion_sources_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "ingestion_worker_config": {
+ "name": "ingestion_worker_config",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(32)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('paused','enabled')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'paused'"
+ },
+ "maxSourcesPerTick": {
+ "name": "maxSourcesPerTick",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 1
+ },
+ "minGlobalIntervalMinutes": {
+ "name": "minGlobalIntervalMinutes",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": 15
+ },
+ "lastStartedAt": {
+ "name": "lastStartedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastCompletedAt": {
+ "name": "lastCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "lastError": {
+ "name": "lastError",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updatedByUserId": {
+ "name": "updatedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ingestion_worker_config_updatedByUserId_users_id_fk": {
+ "name": "ingestion_worker_config_updatedByUserId_users_id_fk",
+ "tableFrom": "ingestion_worker_config",
+ "tableTo": "users",
+ "columnsFrom": [
+ "updatedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "ingestion_worker_config_id": {
+ "name": "ingestion_worker_config_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "owls_catch": {
+ "name": "owls_catch",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "catchDate": {
+ "name": "catchDate",
+ "type": "varchar(10)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rule": {
+ "name": "rule",
+ "type": "varchar(16)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "facts": {
+ "name": "facts",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceQuery": {
+ "name": "sourceQuery",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIds": {
+ "name": "agentIds",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "selectedAt": {
+ "name": "selectedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "owls_catch_date_uq": {
+ "name": "owls_catch_date_uq",
+ "columns": [
+ "catchDate"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "owls_catch_id": {
+ "name": "owls_catch_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_bindings": {
+ "name": "publisher_bindings",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "agentIdentityId": {
+ "name": "agentIdentityId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationMethod": {
+ "name": "validationMethod",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceObservationId": {
+ "name": "sourceObservationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validatedAt": {
+ "name": "validatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_bindings_identity_key_uq": {
+ "name": "publisher_bindings_identity_key_uq",
+ "columns": [
+ "agentIdentityId",
+ "publisherKeyId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_bindings_agentIdentityId_agent_identities_id_fk": {
+ "name": "publisher_bindings_agentIdentityId_agent_identities_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "agent_identities",
+ "columnsFrom": [
+ "agentIdentityId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_bindings_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_bindings_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "publisher_keys",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_bindings_sourceObservationId_source_observations_id_fk": {
+ "name": "publisher_bindings_sourceObservationId_source_observations_id_fk",
+ "tableFrom": "publisher_bindings",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "sourceObservationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_bindings_id": {
+ "name": "publisher_bindings_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_key_history": {
+ "name": "publisher_key_history",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publisherKeyId": {
+ "name": "publisherKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "reason": {
+ "name": "reason",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "changedByUserId": {
+ "name": "changedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "changedAt": {
+ "name": "changedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_key_history_key_changed_idx": {
+ "name": "publisher_key_history_key_changed_idx",
+ "columns": [
+ "publisherKeyId",
+ "changedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "publisher_key_history_publisherKeyId_publisher_keys_id_fk": {
+ "name": "publisher_key_history_publisherKeyId_publisher_keys_id_fk",
+ "tableFrom": "publisher_key_history",
+ "tableTo": "publisher_keys",
+ "columnsFrom": [
+ "publisherKeyId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_key_history_changedByUserId_users_id_fk": {
+ "name": "publisher_key_history_changedByUserId_users_id_fk",
+ "tableFrom": "publisher_key_history",
+ "tableTo": "users",
+ "columnsFrom": [
+ "changedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_key_history_id": {
+ "name": "publisher_key_history_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "publisher_keys": {
+ "name": "publisher_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "issuerName": {
+ "name": "issuerName",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyFingerprint": {
+ "name": "publicKeyFingerprint",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "publicKeyPem": {
+ "name": "publicKeyPem",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "permittedDomains": {
+ "name": "permittedDomains",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "permittedProtocols": {
+ "name": "permittedProtocols",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('pending','allowlisted','expired','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "revokedAt": {
+ "name": "revokedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "policyVersion": {
+ "name": "policyVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "attestationObjectKey": {
+ "name": "attestationObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationHash": {
+ "name": "attestationHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attestationSignature": {
+ "name": "attestationSignature",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationOfKeyId": {
+ "name": "rotationOfKeyId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "rotationProofHash": {
+ "name": "rotationProofHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedByUserId": {
+ "name": "approvedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "approvedAt": {
+ "name": "approvedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "publisher_keys_fingerprint_uq": {
+ "name": "publisher_keys_fingerprint_uq",
+ "columns": [
+ "publicKeyFingerprint"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "publisher_keys_approvedByUserId_users_id_fk": {
+ "name": "publisher_keys_approvedByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "tableTo": "users",
+ "columnsFrom": [
+ "approvedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "publisher_keys_createdByUserId_users_id_fk": {
+ "name": "publisher_keys_createdByUserId_users_id_fk",
+ "tableFrom": "publisher_keys",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "publisher_keys_id": {
+ "name": "publisher_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "review_items": {
+ "name": "review_items",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "enum('source','identity_collision','publisher_key','endpoint_mismatch')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "status": {
+ "name": "status",
+ "type": "enum('pending','approved','rejected')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'pending'"
+ },
+ "subjectType": {
+ "name": "subjectType",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "subjectId": {
+ "name": "subjectId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdByUserId": {
+ "name": "createdByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "review_items_status_created_idx": {
+ "name": "review_items_status_created_idx",
+ "columns": [
+ "status",
+ "createdAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "review_items_createdByUserId_users_id_fk": {
+ "name": "review_items_createdByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "tableTo": "users",
+ "columnsFrom": [
+ "createdByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "review_items_decidedByUserId_users_id_fk": {
+ "name": "review_items_decidedByUserId_users_id_fk",
+ "tableFrom": "review_items",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "review_items_id": {
+ "name": "review_items_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observation_runs": {
+ "name": "source_observation_runs",
+ "columns": {
+ "runId": {
+ "name": "runId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observationId": {
+ "name": "observationId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "linkedAt": {
+ "name": "linkedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observation_runs_uq": {
+ "name": "source_observation_runs_uq",
+ "columns": [
+ "runId",
+ "observationId"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "source_observation_runs_runId_ingestion_runs_id_fk": {
+ "name": "source_observation_runs_runId_ingestion_runs_id_fk",
+ "tableFrom": "source_observation_runs",
+ "tableTo": "ingestion_runs",
+ "columnsFrom": [
+ "runId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "source_observation_runs_observationId_source_observations_id_fk": {
+ "name": "source_observation_runs_observationId_source_observations_id_fk",
+ "tableFrom": "source_observation_runs",
+ "tableTo": "source_observations",
+ "columnsFrom": [
+ "observationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_observations": {
+ "name": "source_observations",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "enum('a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad','erc8004_gnosis')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "canonicalLocator": {
+ "name": "canonicalLocator",
+ "type": "varchar(2048)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "locatorHash": {
+ "name": "locatorHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentHash": {
+ "name": "contentHash",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "rawObjectKey": {
+ "name": "rawObjectKey",
+ "type": "varchar(512)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "contentType": {
+ "name": "contentType",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "httpStatus": {
+ "name": "httpStatus",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "parserVersion": {
+ "name": "parserVersion",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationStatus": {
+ "name": "validationStatus",
+ "type": "enum('valid','invalid','partial')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "validationFindings": {
+ "name": "validationFindings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "observedAt": {
+ "name": "observedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {
+ "source_observations_content_uq": {
+ "name": "source_observations_content_uq",
+ "columns": [
+ "sourceId",
+ "locatorHash",
+ "contentHash"
+ ],
+ "isUnique": true
+ },
+ "source_observations_source_observed_idx": {
+ "name": "source_observations_source_observed_idx",
+ "columns": [
+ "sourceId",
+ "observedAt"
+ ],
+ "isUnique": false
+ }
+ },
+ "foreignKeys": {
+ "source_observations_sourceId_ingestion_sources_id_fk": {
+ "name": "source_observations_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_observations",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_observations_id": {
+ "name": "source_observations_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "source_projection_decisions": {
+ "name": "source_projection_decisions",
+ "columns": {
+ "sourceId": {
+ "name": "sourceId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "state": {
+ "name": "state",
+ "type": "enum('review','public','revoked')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'review'"
+ },
+ "rationale": {
+ "name": "rationale",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedByUserId": {
+ "name": "decidedByUserId",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "decidedAt": {
+ "name": "decidedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "approvedRunId": {
+ "name": "approvedRunId",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "source_projection_decisions_sourceId_ingestion_sources_id_fk": {
+ "name": "source_projection_decisions_sourceId_ingestion_sources_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "ingestion_sources",
+ "columnsFrom": [
+ "sourceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "source_projection_decisions_decidedByUserId_users_id_fk": {
+ "name": "source_projection_decisions_decidedByUserId_users_id_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "users",
+ "columnsFrom": [
+ "decidedByUserId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "spd_approved_run_fk": {
+ "name": "spd_approved_run_fk",
+ "tableFrom": "source_projection_decisions",
+ "tableTo": "ingestion_runs",
+ "columnsFrom": [
+ "approvedRunId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "source_projection_decisions_sourceId": {
+ "name": "source_projection_decisions_sourceId",
+ "columns": [
+ "sourceId"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "checkConstraint": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "int",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "openId": {
+ "name": "openId",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "varchar(320)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "loginMethod": {
+ "name": "loginMethod",
+ "type": "varchar(64)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "role": {
+ "name": "role",
+ "type": "enum('user','admin')",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'user'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "onUpdate": true,
+ "default": "(now())"
+ },
+ "lastSignedIn": {
+ "name": "lastSignedIn",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "users_id": {
+ "name": "users_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {
+ "users_openId_unique": {
+ "name": "users_openId_unique",
+ "columns": [
+ "openId"
+ ]
+ }
+ },
+ "checkConstraint": {}
+ }
+ },
+ "views": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "tables": {},
+ "indexes": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/nooscape-relay/drizzle/meta/_journal.json b/apps/nooscape-relay/drizzle/meta/_journal.json
index 127b0e4..dda66b7 100644
--- a/apps/nooscape-relay/drizzle/meta/_journal.json
+++ b/apps/nooscape-relay/drizzle/meta/_journal.json
@@ -400,6 +400,27 @@
"when": 1793889259135,
"tag": "0056_listing_pins",
"breakpoints": true
+ },
+ {
+ "idx": 57,
+ "version": "5",
+ "when": 1793996487785,
+ "tag": "0057_gnosis_erc8004_protocol",
+ "breakpoints": true
+ },
+ {
+ "idx": 58,
+ "version": "5",
+ "when": 1794000805956,
+ "tag": "0058_gnosis_scheduled_flip",
+ "breakpoints": true
+ },
+ {
+ "idx": 59,
+ "version": "5",
+ "when": 1794106280089,
+ "tag": "0059_catalog_party_host",
+ "breakpoints": true
}
]
}
\ No newline at end of file
diff --git a/apps/nooscape-relay/drizzle/schema.ts b/apps/nooscape-relay/drizzle/schema.ts
index 09d94f1..800b43a 100644
--- a/apps/nooscape-relay/drizzle/schema.ts
+++ b/apps/nooscape-relay/drizzle/schema.ts
@@ -49,7 +49,7 @@ export const ingestionSources = mysqlTable(
id: varchar("id", { length: 36 }).primaryKey(),
sourceKey: varchar("sourceKey", { length: 64 }).notNull(),
label: varchar("label", { length: 160 }).notNull(),
- protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad"]).notNull(),
+ protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad", "erc8004_gnosis"]).notNull(),
rootUrl: varchar("rootUrl", { length: 2048 }).notNull(),
allowedHostname: varchar("allowedHostname", { length: 255 }).notNull(),
state: mysqlEnum("state", ["review", "active", "paused", "rejected"])
@@ -143,7 +143,7 @@ const directoryEntryColumns = {
externalKey: varchar("externalKey", { length: 512 }).notNull(),
displayName: varchar("displayName", { length: 255 }).notNull(),
locatorHost: varchar("locatorHost", { length: 255 }),
- protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad"]).notNull(),
+ protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad", "erc8004_gnosis"]).notNull(),
/** Why this entry is directory-only (e.g. no upstream signals, inline data: metadata). */
sourceSignalNote: varchar("sourceSignalNote", { length: 512 }),
/**
@@ -637,7 +637,7 @@ export const sourceObservations = mysqlTable(
sourceId: varchar("sourceId", { length: 36 })
.notNull()
.references(() => ingestionSources.id),
- protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad"]).notNull(),
+ protocol: mysqlEnum("protocol", ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad", "erc8004_gnosis"]).notNull(),
canonicalLocator: varchar("canonicalLocator", { length: 2048 }).notNull(),
locatorHash: varchar("locatorHash", { length: 64 }).notNull(),
contentHash: varchar("contentHash", { length: 64 }).notNull(),
@@ -982,6 +982,11 @@ export const agentPublicSnapshots = mysqlTable(
observedAt: timestamp("observedAt").defaultNow().notNull(),
createdAt: timestamp("createdAt").defaultNow().notNull(),
updatedAt: timestamp("updatedAt").defaultNow().onUpdateNow().notNull(),
+ /**
+ * The host a catalog entry's card is served from. A catalog record carries no endpoint row on purpose, so this is how a registry
+ * run knows which party a public record from another source already holds. Null where an endpoint row says it instead.
+ */
+ partyHost: varchar("partyHost", { length: 255 }),
},
table => [
uniqueIndex("agent_public_snapshots_source_observation_uq").on(table.sourceObservationId),
diff --git a/apps/nooscape-relay/scripts/ci-scope.mjs b/apps/nooscape-relay/scripts/ci-scope.mjs
index 7591bfe..966271a 100644
--- a/apps/nooscape-relay/scripts/ci-scope.mjs
+++ b/apps/nooscape-relay/scripts/ci-scope.mjs
@@ -27,6 +27,7 @@ export const READ_BY_TESTS = [
"apps/nooscape-relay/docs/bsc-clusters-2026-10-16.md",
"apps/nooscape-relay/docs/bsc-rater-credibility-2026-10-16.md",
"apps/nooscape-relay/docs/ethereum-census-2026-10-28.md",
+ "apps/nooscape-relay/docs/gnosis-census-2026-11-06.md",
"apps/nooscape-relay/docs/incident-2026-10-14-outage.md",
"apps/nooscape-relay/docs/incident-2026-11-01-outage.md",
"apps/nooscape-relay/docs/monad-census-2026-11-01.md",
diff --git a/apps/nooscape-relay/scripts/verify-live.mjs b/apps/nooscape-relay/scripts/verify-live.mjs
index f68e999..ef34c36 100644
--- a/apps/nooscape-relay/scripts/verify-live.mjs
+++ b/apps/nooscape-relay/scripts/verify-live.mjs
@@ -40,6 +40,8 @@ const FRESHNESS_HOURS = {
erc8004_eth: 36,
// And the Monad identity pass (migration 0054).
erc8004_monad: 36,
+ // And the Gnosis identity pass (migration 0058).
+ erc8004_gnosis: 36,
};
const results = [];
diff --git a/apps/nooscape-relay/server/_core/env.ts b/apps/nooscape-relay/server/_core/env.ts
index b5f6953..d1cb812 100644
--- a/apps/nooscape-relay/server/_core/env.ts
+++ b/apps/nooscape-relay/server/_core/env.ts
@@ -52,4 +52,10 @@ export const ENV = {
* others: environment only, never printed, unset means the Monad pass refuses to run.
*/
monadRpcUrl: process.env.MONAD_RPC_URL ?? "",
+ /**
+ * Gnosis mainnet endpoint for the ERC-8004 identity pass: an Alchemy endpoint whose path carries the key. The pass walks the registry's
+ * history from block 44,505,010 in windows of 10,000 blocks, the widest range the plan answers. Same rules as the others: environment
+ * only, never printed, unset means the Gnosis pass refuses to run.
+ */
+ gnosisRpcUrl: process.env.GNOSIS_RPC_URL ?? "",
};
diff --git a/apps/nooscape-relay/server/a2aRegistriesRoute.test.ts b/apps/nooscape-relay/server/a2aRegistriesRoute.test.ts
new file mode 100644
index 0000000..25187b2
--- /dev/null
+++ b/apps/nooscape-relay/server/a2aRegistriesRoute.test.ts
@@ -0,0 +1,137 @@
+import { TRPCError } from "@trpc/server";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import type { TrpcContext } from "./_core/context";
+
+/**
+ * The operator's side of the two A2A registries, through the real router: staging each source and running it. What is held: only the
+ * operator can do either; each staged source is made from its preset, in review, manual only, on the registry's own host; staging it
+ * twice makes one source; and a run goes to the registry runner for a registry and to the Agenstry runner for the Agenstry feed. The
+ * database and the runs are replaced, so nothing here reaches a database or a registry.
+ */
+const mocks = vi.hoisted(() => ({
+ getAuthenticatedOperator: vi.fn(),
+ listIngestionSources: vi.fn(async () => [] as unknown[]),
+ createIngestionSource: vi.fn(async (_input: unknown) => ({ sourceId: "00000000-0000-4000-8000-000000000001" })),
+ getIngestionSource: vi.fn(),
+ runApprovedA2aRegistrySource: vi.fn(async (..._args: unknown[]) => ({ requestCount: 7, discoveredCount: 649, acceptedCount: 96, rejectedCount: 553, nextCursor: null })),
+ runApprovedAgenstrySource: vi.fn(async (..._args: unknown[]) => ({ requestCount: 1, discoveredCount: 299073, acceptedCount: 99, rejectedCount: 23828, nextCursor: null })),
+}));
+const OPERATOR = { id: 7, name: "Test Operator", role: "admin" as const, openId: "test-operator" };
+const SOURCE_ID = "00000000-0000-4000-8000-0000000000bb";
+
+async function callerWith(operator: typeof OPERATOR | null) {
+ vi.doMock("./operatorAuth", async importOriginal => ({ ...(await importOriginal()), getAuthenticatedOperator: mocks.getAuthenticatedOperator }));
+ vi.doMock("./db", async importOriginal => ({
+ ...(await importOriginal()),
+ listIngestionSources: mocks.listIngestionSources,
+ createIngestionSource: mocks.createIngestionSource,
+ getIngestionSource: mocks.getIngestionSource,
+ }));
+ vi.doMock("./ingestion/runA2aRegistry", async importOriginal => ({ ...(await importOriginal()), runApprovedA2aRegistrySource: mocks.runApprovedA2aRegistrySource }));
+ vi.doMock("./ingestion/runAgenstry", async importOriginal => ({ ...(await importOriginal()), runApprovedAgenstrySource: mocks.runApprovedAgenstrySource }));
+ mocks.getAuthenticatedOperator.mockResolvedValue(operator);
+ const { appRouter } = await import("./routers");
+ return appRouter.createCaller({ user: operator, req: { protocol: "https", headers: {} }, res: {} } as unknown as TrpcContext);
+}
+
+const rejected = async (promise: Promise) => (await promise.catch((reason: unknown) => reason)) as TRPCError;
+
+const catalogSource = (sourceKey: string) => ({ id: SOURCE_ID, sourceKey, protocol: "catalog", state: "active", executionPolicy: "manual_only", cursor: null });
+
+const PRESETS = [
+ [
+ "a2aregistry",
+ {
+ sourceKey: "a2aregistry-public-api",
+ label: "a2aregistry.org community A2A registry",
+ protocol: "catalog",
+ rootUrl: "https://a2aregistry.org/api/agents",
+ allowedHostname: "a2aregistry.org",
+ scheduleMinutes: 1_440,
+ },
+ ],
+ [
+ "a2aRegistryApi",
+ {
+ sourceKey: "a2a-registry-org-public-api",
+ label: "A2A Registry public API (a2a-registry.org)",
+ protocol: "catalog",
+ rootUrl: "https://api.a2a-registry.org/public/agents",
+ allowedHostname: "api.a2a-registry.org",
+ scheduleMinutes: 10_080,
+ },
+ ],
+] as const;
+
+beforeEach(() => {
+ vi.resetModules();
+ vi.clearAllMocks();
+});
+afterEach(() => {
+ vi.doUnmock("./operatorAuth");
+ vi.doUnmock("./db");
+ vi.doUnmock("./ingestion/runA2aRegistry");
+ vi.doUnmock("./ingestion/runAgenstry");
+});
+
+// The first call imports the whole router graph, which can take a few seconds under a loaded full run.
+describe("staging an A2A registry", { timeout: 30_000 }, () => {
+ it.each(PRESETS)("is for the operator alone (%s)", async name => {
+ const caller = await callerWith(null);
+ const error = await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: name }));
+ expect(error.code).toBe("UNAUTHORIZED");
+ expect(mocks.createIngestionSource).not.toHaveBeenCalled();
+ });
+
+ it.each(PRESETS)("makes the %s source from its preset: in review, manual only, on the registry's own host", async (name, preset) => {
+ const caller = await callerWith(OPERATOR);
+ const staged = await caller.liveData.admin.registerApprovedPublicSource({ source: name });
+ expect(staged).toMatchObject({ created: true, state: "review" });
+ expect(mocks.createIngestionSource).toHaveBeenCalledTimes(1);
+ expect(mocks.createIngestionSource).toHaveBeenLastCalledWith({ ...preset, executionPolicy: "manual_only", state: "review", createdByUserId: OPERATOR.id });
+ });
+
+ it.each(PRESETS)("makes one source however many times %s is staged", async (name, preset) => {
+ mocks.listIngestionSources.mockResolvedValueOnce([{ id: "existing-id", state: "active", sourceKey: preset.sourceKey }]);
+ const caller = await callerWith(OPERATOR);
+ expect(await caller.liveData.admin.registerApprovedPublicSource({ source: name })).toEqual({ sourceId: "existing-id", state: "active", created: false });
+ expect(mocks.createIngestionSource).not.toHaveBeenCalled();
+ });
+});
+
+describe("running a catalog source", { timeout: 30_000 }, () => {
+ it("is for the operator alone", async () => {
+ mocks.getIngestionSource.mockResolvedValue(catalogSource("a2aregistry-public-api"));
+ const caller = await callerWith(null);
+ const error = await rejected(caller.liveData.admin.runSource({ sourceId: SOURCE_ID }));
+ expect(error.code).toBe("UNAUTHORIZED");
+ expect(mocks.runApprovedA2aRegistrySource).not.toHaveBeenCalled();
+ });
+
+ it.each(PRESETS)("sends the %s source to the registry runner as a manual run, and gives its answer back", async (_name, preset) => {
+ const source = catalogSource(preset.sourceKey);
+ mocks.getIngestionSource.mockResolvedValue(source);
+ const caller = await callerWith(OPERATOR);
+ const result = await caller.liveData.admin.runSource({ sourceId: SOURCE_ID });
+ expect(mocks.runApprovedA2aRegistrySource).toHaveBeenCalledWith(source, "manual");
+ expect(mocks.runApprovedAgenstrySource).not.toHaveBeenCalled();
+ expect(result).toMatchObject({ discoveredCount: 649, acceptedCount: 96 });
+ });
+
+ it("still sends the Agenstry feed to the Agenstry runner", async () => {
+ const source = catalogSource("agenstry-public-catalog");
+ mocks.getIngestionSource.mockResolvedValue(source);
+ const caller = await callerWith(OPERATOR);
+ await caller.liveData.admin.runSource({ sourceId: SOURCE_ID });
+ expect(mocks.runApprovedAgenstrySource).toHaveBeenCalledWith(source, "manual");
+ expect(mocks.runApprovedA2aRegistrySource).not.toHaveBeenCalled();
+ });
+
+ it("refuses to run a source that has not been approved active", async () => {
+ mocks.getIngestionSource.mockResolvedValue({ ...catalogSource("a2aregistry-public-api"), state: "review" });
+ const caller = await callerWith(OPERATOR);
+ const error = await rejected(caller.liveData.admin.runSource({ sourceId: SOURCE_ID }));
+ expect(error.code).toBe("PRECONDITION_FAILED");
+ expect(mocks.runApprovedA2aRegistrySource).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/nooscape-relay/server/apiChains.ts b/apps/nooscape-relay/server/apiChains.ts
index 02606b0..29af949 100644
--- a/apps/nooscape-relay/server/apiChains.ts
+++ b/apps/nooscape-relay/server/apiChains.ts
@@ -1,6 +1,6 @@
import { extraChainsOn, type ExtraChainKey } from "@shared/chains";
import { BSC_CHAIN_ID, BSC_IDENTITY_REGISTRY } from "./ingestion/bscChain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
import { ROBINHOOD_IDENTITY_REGISTRY, ROBINHOOD_REGISTRY_CHAIN } from "./ingestion/robinhood";
/**
@@ -47,6 +47,7 @@ export const API_CHAINS: Record = {
base: chainPassTable(BASE_CHAIN),
arc: chainPassTable(ARC_CHAIN),
monad: chainPassTable(MONAD_CHAIN),
+ gnosis: chainPassTable(GNOSIS_CHAIN),
};
/**
@@ -57,8 +58,8 @@ export const API_CHAINS: Record = {
export const CHAIN_KEYS: readonly ApiChain[] = ["robinhood", "bnb", "solana"];
/**
- * The chains the API serves under this switch list (shared/features.ts): the three above, then each of Ethereum, Base, Arc and Monad that
- * is on. The list is read as the server runs, so a request sees the switches as they are now; with all four off it is {@link CHAIN_KEYS}.
+ * The chains the API serves under this switch list (shared/features.ts): the three above, then each of Ethereum, Base, Arc, Monad and Gnosis
+ * that is on. The list is read as the server runs, so a request sees the switches as they are now; with all five off it is {@link CHAIN_KEYS}.
*/
export function servedChains(features: string | undefined = process.env.VITE_FEATURES): readonly ApiChain[] {
const extra = extraChainsOn(features);
diff --git a/apps/nooscape-relay/server/apiV1Chains.test.ts b/apps/nooscape-relay/server/apiV1Chains.test.ts
index 8c203b3..1b459f0 100644
--- a/apps/nooscape-relay/server/apiV1Chains.test.ts
+++ b/apps/nooscape-relay/server/apiV1Chains.test.ts
@@ -10,7 +10,7 @@ import { API_TIERS, type ApiKeyRecord, type UsageReport } from "./apiKeys";
import { problems, schemaOf } from "./apiV1Testing";
import { API_V1_SPEC, apiV1SpecFor } from "./apiV1Spec";
import { externalKey } from "./ingestion/erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
import { resetRateLimits } from "./rateLimit";
/**
@@ -24,9 +24,9 @@ const WALLET = "0x14791697260e4c9a71f18484c9f997b308e59325";
const KEY = `nsk_${"a".repeat(40)}`;
const ORIGINAL = ["robinhood", "bnb", "solana"];
-const CHAIN_OF = { ethereum: ETHEREUM_CHAIN, base: BASE_CHAIN, arc: ARC_CHAIN, monad: MONAD_CHAIN } as const;
-const idOf = { ethereum: "11", base: "12", arc: "13", monad: "14" } as const;
-const entryIdOf = (chain: keyof typeof CHAIN_OF) => `${{ ethereum: "e", base: "b", arc: "a", monad: "c" }[chain]}0000000-0000-4000-8000-000000000000`;
+const CHAIN_OF = { ethereum: ETHEREUM_CHAIN, base: BASE_CHAIN, arc: ARC_CHAIN, monad: MONAD_CHAIN, gnosis: GNOSIS_CHAIN } as const;
+const idOf = { ethereum: "11", base: "12", arc: "13", monad: "14", gnosis: "15" } as const;
+const entryIdOf = (chain: keyof typeof CHAIN_OF) => `${{ ethereum: "e", base: "b", arc: "a", monad: "c", gnosis: "d" }[chain]}0000000-0000-4000-8000-000000000000`;
const entry = (chain: keyof typeof CHAIN_OF, overrides: Record = {}) =>
({
@@ -60,7 +60,7 @@ const keys: ApiV1Deps["keys"] = {
*/
const STATS_AT = "2026-10-20T02:58:00.000Z";
const statRow = (chain: ChainStat["chain"], acknowledged: number, feedbackEvents: number | null, registries: ChainStat["registries"]): ChainStat => ({ chain, indexed: true, acknowledged, reviewed: 0, feedbackEvents, registries, asOf: "2026-10-20T02:30:00.000Z" });
-const ARRIVED = { robinhood: 5, solana: 6, bnb: 7, ethereum: 8, base: 9, arc: 10, monad: 11 } as const;
+const ARRIVED = { robinhood: 5, solana: 6, bnb: 7, ethereum: 8, base: 9, arc: 10, monad: 11, gnosis: 12 } as const;
const STATS_READ: StatsRead = {
readAt: STATS_AT,
chains: [statRow("robinhood", 300, 40, [{ protocol: "erc8004", count: 300 }]), statRow("solana", 200, 10, [{ protocol: "solana_said", count: 150 }, { protocol: "solana_8004", count: 50 }]), statRow("bnb", 100, null, [{ protocol: "erc8004_bsc", count: 100 }])],
@@ -149,22 +149,23 @@ describe("the chains the API serves", () => {
}
});
- it("gain each extra chain whose switch is on, after the three, in the order Ethereum, Base, Arc, Monad", () => {
+ it("gain each extra chain whose switch is on, after the three, in the order Ethereum, Base, Arc, Monad, Gnosis", () => {
expect([...servedChains("chain_base")]).toEqual([...ORIGINAL, "base"]);
expect([...servedChains("chain_arc,chain_ethereum")]).toEqual([...ORIGINAL, "ethereum", "arc"]);
expect([...servedChains("claims, CHAIN_BASE ,chain_ethereum,chain_arc,chain_monad")]).toEqual([...ORIGINAL, "ethereum", "base", "arc", "monad"]);
expect([...servedChains("chain_monad,chain_base")]).toEqual([...ORIGINAL, "base", "monad"]);
+ expect([...servedChains("chain_gnosis,chain_monad")]).toEqual([...ORIGINAL, "monad", "gnosis"]);
});
it("name an extra chain's protocol only among the chains given", () => {
for (const chain of EXTRA_CHAINS) {
expect(apiChainOfProtocol(CHAIN_OF[chain].protocol)).toBeNull();
- expect(apiChainOfProtocol(CHAIN_OF[chain].protocol, servedChains("chain_base,chain_ethereum,chain_arc,chain_monad"))).toBe(chain);
+ expect(apiChainOfProtocol(CHAIN_OF[chain].protocol, servedChains("chain_base,chain_ethereum,chain_arc,chain_monad,chain_gnosis"))).toBe(chain);
}
expect(apiChainOfProtocol("erc8004_bsc")).toBe("bnb");
expect(apiChainOfProtocol("erc8004_base", servedChains("chain_ethereum"))).toBeNull();
// With no list given it is the original three, whatever is switched on.
- process.env.VITE_FEATURES = "chain_ethereum,chain_base,chain_arc,chain_monad";
+ process.env.VITE_FEATURES = "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis";
for (const chain of EXTRA_CHAINS) expect(apiChainOfProtocol(CHAIN_OF[chain].protocol), chain).toBeNull();
});
@@ -320,12 +321,12 @@ describe("with one switch on", () => {
describe("with every switch on", () => {
it("lists all six chains in order and serves one agent on each with its own chain id and registry", async () => {
- await start("chain_ethereum,chain_base,chain_arc,chain_monad");
+ await start("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis");
const index = await body(await get("/api/v1"));
- expect(index.chains.map((chain: { chain: string }) => chain.chain)).toEqual([...ORIGINAL, "ethereum", "base", "arc", "monad"]);
- expect(index.chains.slice(3).map((chain: { label: string }) => chain.label)).toEqual(["Ethereum", "Base", "Arc", "Monad"]);
- const spec = apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad"));
- for (const [chain, chainId] of [["ethereum", 1], ["base", 8453], ["arc", 5042], ["monad", 143]] as const) {
+ expect(index.chains.map((chain: { chain: string }) => chain.chain)).toEqual([...ORIGINAL, "ethereum", "base", "arc", "monad", "gnosis"]);
+ expect(index.chains.slice(3).map((chain: { label: string }) => chain.label)).toEqual(["Ethereum", "Base", "Arc", "Monad", "Gnosis"]);
+ const spec = apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis"));
+ for (const [chain, chainId] of [["ethereum", 1], ["base", 8453], ["arc", 5042], ["monad", 143], ["gnosis", 100]] as const) {
const answer = await body(await get(`/api/v1/agents/${chain}/${idOf[chain]}`));
expect(answer.source).toMatchObject({ chain, chain_id: chainId, registry: CHAIN_OF[chain].protocol, registry_address: CHAIN_OF[chain].identityRegistry });
expect(problems(schemaOf("AgentResponse"), answer, "$", spec), chain).toEqual([]);
@@ -333,15 +334,15 @@ describe("with every switch on", () => {
});
it("is one document, whatever order the switches were written in", () => {
- expect(apiV1SpecFor(servedChains("chain_monad,chain_arc,chain_base,chain_ethereum"))).toBe(apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad")));
+ expect(apiV1SpecFor(servedChains("chain_gnosis,chain_monad,chain_arc,chain_base,chain_ethereum"))).toBe(apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis")));
});
it("looks up a batch across the chains for a caller with a key", async () => {
- await start("chain_ethereum,chain_base,chain_arc,chain_monad");
+ await start("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis");
const response = await post("/api/v1/agents/batch", { agents: EXTRA_CHAINS.map(chain => ({ chain, id: idOf[chain] })) });
expect(response.status).toBe(200);
const answer = await body(response);
- expect(answer.data.results.map((item: { chain: string; status: number }) => [item.chain, item.status])).toEqual([["ethereum", 200], ["base", 200], ["arc", 200], ["monad", 200]]);
+ expect(answer.data.results.map((item: { chain: string; status: number }) => [item.chain, item.status])).toEqual([["ethereum", 200], ["base", 200], ["arc", 200], ["monad", 200], ["gnosis", 200]]);
});
});
@@ -386,20 +387,20 @@ describe("the stats", () => {
expect(problems(schemaOf("StatsResponse"), answer).length).toBeGreaterThan(0);
});
- it("count all seven chains in the order the index gives them while every switch is on, each extra chain with its own chain id and registry", async () => {
- await start("chain_ethereum,chain_base,chain_arc,chain_monad");
+ it("count all eight chains in the order the index gives them while every switch is on, each extra chain with its own chain id and registry", async () => {
+ await start("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis");
const answer = await body(await get("/api/v1/stats"));
- expect(chainsOf(answer)).toEqual([...ORIGINAL, "ethereum", "base", "arc", "monad"]);
- expect(answer.data.totals).toEqual({ acknowledged: 300 + 100 + 200 + 1000 + 2000 + 3000 + 4000 });
- for (const [chain, chainId] of [["ethereum", 1], ["base", 8453], ["arc", 5042], ["monad", 143]] as const) {
+ expect(chainsOf(answer)).toEqual([...ORIGINAL, "ethereum", "base", "arc", "monad", "gnosis"]);
+ expect(answer.data.totals).toEqual({ acknowledged: 300 + 100 + 200 + 1000 + 2000 + 3000 + 4000 + 5000 });
+ for (const [chain, chainId] of [["ethereum", 1], ["base", 8453], ["arc", 5042], ["monad", 143], ["gnosis", 100]] as const) {
const row = rowsOf(answer)[chain]!;
expect(row, chain).toMatchObject({ chain_id: chainId });
expect(row.registries, chain).toEqual([{ registry: CHAIN_OF[chain].protocol, address: CHAIN_OF[chain].identityRegistry, acknowledged: row.acknowledged }]);
}
// The registrations of a registry come from its own count, and BNB Chain keeps the count of its registry read; Robinhood Chain and Solana have none.
- expect(Object.values(rowsOf(answer)).map(row => row.registrations_on_chain)).toEqual([null, 5000, null, 50_000, 100_000, 150_000, 200_000]);
- expect(Object.values(rowsOf(answer)).map(row => row.new_in_24h)).toEqual([5, 7, 6, 8, 9, 10, 11]);
- expect(problems(schemaOf("StatsResponse"), answer, "$", apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad")))).toEqual([]);
+ expect(Object.values(rowsOf(answer)).map(row => row.registrations_on_chain)).toEqual([null, 5000, null, 50_000, 100_000, 150_000, 200_000, 250_000]);
+ expect(Object.values(rowsOf(answer)).map(row => row.new_in_24h)).toEqual([5, 7, 6, 8, 9, 10, 11, 12]);
+ expect(problems(schemaOf("StatsResponse"), answer, "$", apiV1SpecFor(servedChains("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis")))).toEqual([]);
});
it("name a chain that is on in the lists of chains in the served document, and only that one", async () => {
@@ -412,7 +413,7 @@ describe("the stats", () => {
});
it("say what the counts are and are not in the same words whatever the switches", async () => {
- for (const features of [undefined, "chain_ethereum,chain_base,chain_arc,chain_monad"]) {
+ for (const features of [undefined, "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis"]) {
await start(features);
expect((await body(await get("/api/v1/stats"))).data.statement, String(features)).toBe(STATS_STATEMENT);
}
diff --git a/apps/nooscape-relay/server/censusToday.integration.test.ts b/apps/nooscape-relay/server/censusToday.integration.test.ts
new file mode 100644
index 0000000..fc7c1eb
--- /dev/null
+++ b/apps/nooscape-relay/server/censusToday.integration.test.ts
@@ -0,0 +1,224 @@
+import { eq } from "drizzle-orm";
+import { drizzle, type MySql2Database } from "drizzle-orm/mysql2";
+import { readFile } from "node:fs/promises";
+import { createConnection, createPool } from "mysql2/promise";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+import * as schema from "../drizzle/schema";
+
+/**
+ * Database-backed test of the Today block's counts: the figures of a registry census page's first table, read from the directory as it
+ * stands. A registry that keeps its registrations in rows is counted from the rows, the registrations a host's cap counted and did not
+ * store, the visible entries and the ratings; one that keeps entries is counted from the entries. Counts only: nothing read out is a
+ * name, a wallet, a host or a link. It runs against a throwaway local schema built with the project's own migration runner; the file
+ * skips when no database is reachable.
+ */
+
+const TEST_DB = "nooscape_census_today_test";
+const BASE_URL = process.env.GATE_TEST_DATABASE_URL ?? "mysql://root:nooscape@127.0.0.1:3307";
+/** The SHA-256 of the empty string: a registration that set no profile link records it, and the census counts it as one link. */
+const EMPTY_LINK = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
+
+const dbReachable = await (async () => {
+ try {
+ const probe = await createConnection(`${BASE_URL}/mysql`);
+ await probe.end();
+ return true;
+ } catch {
+ return false;
+ }
+})();
+
+describe.skipIf(!dbReachable)("the Today block's counts, against a real database", () => {
+ type Reader = typeof import("./censusToday");
+ let reader: Reader;
+ let writer: MySql2Database;
+ let closePool: () => Promise;
+ let operatorUserId: number;
+
+ async function source(key: string, protocol: schema.IngestionSource["protocol"], state: "active" | "paused", lastSuccessfulAt: Date | null) {
+ await writer.insert(schema.ingestionSources).values({
+ id: `src-${key}`,
+ sourceKey: `census-today-${key}`,
+ label: `Census today ${key}`,
+ protocol,
+ rootUrl: `https://census-today.example/${key}`,
+ allowedHostname: "census-today.example",
+ state,
+ lastSuccessfulAt,
+ createdByUserId: operatorUserId,
+ });
+ return `src-${key}`;
+ }
+
+ const row = (sourceId: string, n: number, values: { listing: number; registrant: string | null; host: string | null; link: string | null }) => ({
+ id: `${sourceId}-row-${n}`,
+ sourceId,
+ externalKey: `key-${n}`,
+ displayName: `Agent ${n}`,
+ protocol: "erc8004_base" as const,
+ registrant: values.registrant,
+ locatorHost: values.host,
+ profileUriHash: values.link,
+ listing: values.listing,
+ });
+
+ const entry = (sourceId: string, n: number, values: { registrant: string | null; host: string | null; hidden?: boolean; protocol?: "erc8004_base" | "erc8004" }) => ({
+ id: `${sourceId}-entry-${n}`,
+ sourceId,
+ externalKey: `entry-${n}`,
+ displayName: `Entry ${n}`,
+ protocol: values.protocol ?? ("erc8004_base" as const),
+ registrant: values.registrant,
+ locatorHost: values.host,
+ hidden: values.hidden ?? false,
+ });
+
+ beforeAll(async () => {
+ const admin = await createConnection(`${BASE_URL}/mysql`);
+ await admin.query(`DROP DATABASE IF EXISTS \`${TEST_DB}\``);
+ await admin.query(`CREATE DATABASE \`${TEST_DB}\``);
+ await admin.end();
+
+ process.env.DATABASE_URL = `${BASE_URL}/${TEST_DB}`;
+ const { applyPendingMigrations, collectMigrationFiles, splitMigrationStatements } = await import("./dbMigrations");
+ // The boot runner stamps baseline versions 0000-0014 without executing them, so a fresh schema replays those files by hand first.
+ const baselineReplay = await createConnection(process.env.DATABASE_URL);
+ for (const file of (await collectMigrationFiles("drizzle")).filter(f => f.version <= 14)) {
+ const content = await readFile(file.file, "utf8");
+ for (const statement of splitMigrationStatements(content)) {
+ await baselineReplay.query(statement);
+ }
+ }
+ await baselineReplay.end();
+ await applyPendingMigrations(process.env.DATABASE_URL);
+ // The boot runner skips the manual migrations; 0046 is pasted for the Base, Ethereum and Arc protocol values.
+ const manual = await createConnection(process.env.DATABASE_URL);
+ for (const statement of splitMigrationStatements(await readFile("drizzle/0046_multichain_erc8004_protocols.sql", "utf8"))) await manual.query(statement);
+ await manual.end();
+
+ reader = await import("./censusToday");
+ writer = drizzle(createPool(process.env.DATABASE_URL!));
+ closePool = async () => {
+ const client = (writer as unknown as { $client: { end(): Promise } }).$client;
+ await client.end();
+ };
+
+ await writer.insert(schema.users).values({ openId: "census-today-operator", role: "admin" });
+ const [operatorRow] = await writer.select({ id: schema.users.id }).from(schema.users).where(eq(schema.users.openId, "census-today-operator"));
+ operatorUserId = operatorRow.id;
+
+ // Base: a registry in rows. Six registrations in four states, two wallets (one registration without one), two hosts, links with the empty one.
+ const base = await source("base", "erc8004_base", "active", new Date("2026-11-07T01:30:00Z"));
+ await writer.insert(schema.agentDirectoryRegistryRows).values([
+ row(base, 1, { listing: 1, registrant: "wallet-a", host: "one.example", link: "link-a" }),
+ row(base, 2, { listing: 1, registrant: "wallet-a", host: "one.example", link: "link-b" }),
+ row(base, 3, { listing: 0, registrant: "wallet-a", host: null, link: EMPTY_LINK }),
+ row(base, 4, { listing: 2, registrant: "wallet-b", host: "two.example", link: "link-a" }),
+ row(base, 5, { listing: 2, registrant: "wallet-b", host: null, link: null }),
+ row(base, 6, { listing: 3, registrant: null, host: null, link: null }),
+ ]);
+ // Counted and not stored: two hosts past the cap.
+ await writer.insert(schema.agentDirectoryRegistryOverflow).values([
+ { id: "overflow-1", sourceId: base, locatorHost: "flood.example", overflowCount: 100, lastBlock: 10 },
+ { id: "overflow-2", sourceId: base, locatorHost: "flood2.example", overflowCount: 50, lastBlock: 11 },
+ ]);
+ // Two entries the directory shows and one an operator hid.
+ await writer.insert(schema.agentDirectoryEntries).values([
+ entry(base, 1, { registrant: "wallet-a", host: "one.example" }),
+ entry(base, 2, { registrant: "wallet-b", host: "two.example" }),
+ entry(base, 3, { registrant: "wallet-b", host: "two.example", hidden: true }),
+ ]);
+ await writer.insert(schema.chainReputationCounts).values({ chainKey: "base", ratings: 1_234, revocations: 2, nextBlock: 99, caughtUpAt: new Date("2026-10-21T00:00:00Z") });
+
+ // Arc: an active source that has not finished a pass and has no rows, whose ratings are only part read.
+ await source("arc", "erc8004_arc", "active", null);
+ await writer.insert(schema.chainReputationCounts).values({ chainKey: "arc", ratings: 77, revocations: 0, nextBlock: 5, caughtUpAt: null });
+
+ // Ethereum: a source an operator paused.
+ const ethereum = await source("ethereum", "erc8004_eth", "paused", new Date("2026-11-01T00:00:00Z"));
+ await writer.insert(schema.agentDirectoryRegistryRows).values(row(ethereum, 1, { listing: 1, registrant: "wallet-e", host: "e.example", link: "link-e" }));
+
+ // Robinhood Chain: a registry that keeps entries. Four shown (two wallets, one without; two hosts, two without) and one hidden.
+ const robinhood = await source("robinhood", "erc8004", "active", new Date("2026-11-06T22:00:00Z"));
+ await writer.insert(schema.agentDirectoryEntries).values([
+ entry(robinhood, 1, { registrant: "wallet-r1", host: "r1.example", protocol: "erc8004" }),
+ entry(robinhood, 2, { registrant: "wallet-r1", host: "r1.example", protocol: "erc8004" }),
+ entry(robinhood, 3, { registrant: "wallet-r2", host: "r2.example", protocol: "erc8004" }),
+ entry(robinhood, 4, { registrant: null, host: null, protocol: "erc8004" }),
+ entry(robinhood, 5, { registrant: "wallet-r3", host: "r3.example", hidden: true, protocol: "erc8004" }),
+ ]);
+ }, 120_000);
+
+ afterAll(async () => {
+ if (closePool) await closePool();
+ }, 30_000);
+
+ it("counts a registry in rows the way the census queries do: stored, counted past the cap, listed, wallets, hosts and links", async () => {
+ const today = await reader.readCensusToday("base");
+
+ expect(today).toEqual({
+ chain: "base",
+ asOf: "2026-11-07T01:30:00.000Z",
+ figures: {
+ onChain: 156,
+ stored: 6,
+ overflow: 150,
+ // The entries shown: the hidden one is not.
+ listed: 2,
+ wallets: 2,
+ withHttpsHost: 3,
+ hosts: 2,
+ // Three links and the empty one, which the census counts as a link of its own: link-a, link-b and the empty link.
+ profileLinks: 3,
+ },
+ heldOut: { noLink: 1, grouped: 2, numericName: 0, pending: 1 },
+ ratings: 1_234,
+ });
+ });
+
+ it("says nothing of a part-read ratings count, and counts an active source that has no rows as zeros, with no time", async () => {
+ const today = await reader.readCensusToday("arc");
+
+ expect(today).toEqual({
+ chain: "arc",
+ asOf: null,
+ figures: { onChain: 0, stored: 0, overflow: 0, listed: 0, wallets: 0, withHttpsHost: 0, hosts: 0, profileLinks: 0 },
+ heldOut: { noLink: 0, grouped: 0, numericName: 0, pending: 0 },
+ ratings: null,
+ });
+ });
+
+ it("counts a registry that keeps entries from the entries the directory shows", async () => {
+ const today = await reader.readCensusToday("robinhood");
+
+ expect(today).toEqual({
+ chain: "robinhood",
+ asOf: "2026-11-06T22:00:00.000Z",
+ figures: { listed: 4, wallets: 2, withHttpsHost: 3, hosts: 2 },
+ heldOut: null,
+ ratings: null,
+ });
+ });
+
+ it("has nothing for a chain whose source is paused, and nothing for a chain that has no source", async () => {
+ expect(await reader.readCensusToday("ethereum")).toBeNull();
+ expect(await reader.readCensusToday("bnb")).toBeNull();
+ });
+
+ it("holds counts only: no wallet, host or link is in what it returns", async () => {
+ const serialized = JSON.stringify([await reader.readCensusToday("base"), await reader.readCensusToday("robinhood")]);
+
+ for (const word of ["wallet-", "one.example", "two.example", "flood.example", "link-a", EMPTY_LINK, "r1.example"]) expect(serialized).not.toContain(word);
+ });
+
+ it("is read through the directory's cache, so a second read does not go back to the database", async () => {
+ const first = await reader.readCensusToday("base");
+ await writer.insert(schema.agentDirectoryRegistryOverflow).values({ id: "overflow-3", sourceId: "src-base", locatorHost: "flood3.example", overflowCount: 1_000, lastBlock: 12 });
+
+ expect(await reader.readCensusToday("base")).toEqual(first);
+
+ const { invalidateDirectoryReads } = await import("./readCache");
+ invalidateDirectoryReads();
+ expect((await reader.readCensusToday("base"))?.figures.overflow).toBe(1_150);
+ });
+});
diff --git a/apps/nooscape-relay/server/censusToday.ts b/apps/nooscape-relay/server/censusToday.ts
new file mode 100644
index 0000000..ef6d19e
--- /dev/null
+++ b/apps/nooscape-relay/server/censusToday.ts
@@ -0,0 +1,115 @@
+import { and, eq, sql } from "drizzle-orm";
+import { CENSUS_SOURCE, type CensusChain, type CensusToday } from "@shared/censusToday";
+import {
+ agentDirectoryEntries,
+ agentDirectoryRegistryOverflow,
+ agentDirectoryRegistryRows,
+ chainReputationCounts,
+ ingestionSources,
+ type IngestionSource,
+} from "../drizzle/schema";
+import { REGISTRY_LISTING } from "./agentRegistryRows";
+import { getDb, requireDb } from "./db";
+import { cachedDirectoryRead } from "./readCache";
+
+const count = (value: unknown) => Number(value ?? 0);
+
+/**
+ * The counts of a registry census page's first table, as the directory holds them now. Each is the count the report's queries make
+ * (docs/monad-census-queries-2026-11-01.sql, Q0, Q0b and Q1), so a figure here and the report's figure differ only because the
+ * registry has moved. Every one is a count over an indexed column of one source's rows: no name, wallet, host or link is read out.
+ * Null while the chain's source is not active. Cached like the other directory aggregates and dropped by every refresh.
+ */
+export function readCensusToday(chain: CensusChain): Promise {
+ return cachedDirectoryRead(`directory:census-today:${chain}`, async () => {
+ const { kind, protocol, ratingsKey } = CENSUS_SOURCE[chain];
+ const db = requireDb(await getDb());
+ const [source] = await db
+ .select({ id: ingestionSources.id, lastSuccessfulAt: ingestionSources.lastSuccessfulAt })
+ .from(ingestionSources)
+ .where(and(eq(ingestionSources.protocol, protocol as IngestionSource["protocol"]), eq(ingestionSources.state, "active")))
+ .limit(1);
+ if (!source) return null;
+ const asOf = source.lastSuccessfulAt ? source.lastSuccessfulAt.toISOString() : null;
+
+ const entries = agentDirectoryEntries;
+ const [listedRow] = await db
+ .select({ total: sql`count(*)` })
+ .from(entries)
+ .where(and(eq(entries.sourceId, source.id), eq(entries.hidden, false)));
+ const listed = count(listedRow?.total);
+
+ if (kind === "entries") {
+ const [shape] = await db
+ .select({
+ wallets: sql`count(distinct ${entries.registrant})`,
+ withHttpsHost: sql`count(${entries.locatorHost})`,
+ hosts: sql`count(distinct ${entries.locatorHost})`,
+ })
+ .from(entries)
+ .where(and(eq(entries.sourceId, source.id), eq(entries.hidden, false)));
+ return {
+ chain,
+ asOf,
+ figures: { listed, wallets: count(shape?.wallets), withHttpsHost: count(shape?.withHttpsHost), hosts: count(shape?.hosts) },
+ heldOut: null,
+ ratings: null,
+ };
+ }
+
+ const rows = agentDirectoryRegistryRows;
+ const states = await db.select({ listing: rows.listing, total: sql`count(*)` }).from(rows).where(eq(rows.sourceId, source.id)).groupBy(rows.listing);
+ const stateCount = (listing: number) => count(states.find(row => row.listing === listing)?.total);
+ const stored = states.reduce((sum, row) => sum + count(row.total), 0);
+ // One statement each, so each is a scan of one index of the source's rows.
+ const [wallets] = await db.select({ total: sql`count(distinct ${rows.registrant})` }).from(rows).where(eq(rows.sourceId, source.id));
+ const [hostCounts] = await db
+ .select({ withHttpsHost: sql`count(${rows.locatorHost})`, hosts: sql`count(distinct ${rows.locatorHost})` })
+ .from(rows)
+ .where(eq(rows.sourceId, source.id));
+ const [links] = await db.select({ total: sql`count(distinct ${rows.profileUriHash})` }).from(rows).where(eq(rows.sourceId, source.id));
+ // The registrations a host's cap counted and did not store.
+ const [overflowRow] = await db
+ .select({ total: sql`coalesce(sum(${agentDirectoryRegistryOverflow.overflowCount}), 0)` })
+ .from(agentDirectoryRegistryOverflow)
+ .where(eq(agentDirectoryRegistryOverflow.sourceId, source.id));
+ const overflow = count(overflowRow?.total);
+
+ let ratings: number | null = null;
+ if (ratingsKey) {
+ try {
+ const [counted] = await db
+ .select({ ratings: chainReputationCounts.ratings, caughtUpAt: chainReputationCounts.caughtUpAt })
+ .from(chainReputationCounts)
+ .where(eq(chainReputationCounts.chainKey, ratingsKey))
+ .limit(1);
+ // A count that has not read the whole history is a part of it, and a part is not shown.
+ ratings = counted?.caughtUpAt ? count(counted.ratings) : null;
+ } catch {
+ // The ratings are a line of the block, not the block.
+ }
+ }
+
+ return {
+ chain,
+ asOf,
+ figures: {
+ onChain: stored + overflow,
+ stored,
+ overflow,
+ listed,
+ wallets: count(wallets?.total),
+ withHttpsHost: count(hostCounts?.withHttpsHost),
+ hosts: count(hostCounts?.hosts),
+ profileLinks: count(links?.total),
+ },
+ heldOut: {
+ noLink: stateCount(REGISTRY_LISTING.NO_LINK),
+ grouped: stateCount(REGISTRY_LISTING.GROUPED),
+ numericName: stateCount(REGISTRY_LISTING.NUMERIC_NAME),
+ pending: stateCount(REGISTRY_LISTING.PENDING),
+ },
+ ratings,
+ };
+ });
+}
diff --git a/apps/nooscape-relay/server/censusTodayRoute.test.ts b/apps/nooscape-relay/server/censusTodayRoute.test.ts
new file mode 100644
index 0000000..cd15baa
--- /dev/null
+++ b/apps/nooscape-relay/server/censusTodayRoute.test.ts
@@ -0,0 +1,86 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import type { CensusToday } from "@shared/censusToday";
+import type { TrpcContext } from "./_core/context";
+
+/**
+ * The public read behind the Today block, through the real router: it answers for the chains with a census report, only while the chain's
+ * switch is on, and fails closed to nothing, never to zeros. The directory read is replaced.
+ */
+const mocks = vi.hoisted(() => ({ readCensusToday: vi.fn(async (_chain: string) => null as unknown) }));
+
+const TODAY: CensusToday = {
+ chain: "monad",
+ asOf: "2026-11-07T01:00:00.000Z",
+ figures: { stored: 4_400, listed: 150 },
+ heldOut: { noLink: 1, grouped: 2, numericName: 0, pending: 0 },
+ ratings: null,
+};
+
+async function caller() {
+ vi.doMock("./censusToday", () => ({ readCensusToday: mocks.readCensusToday }));
+ const { appRouter } = await import("./routers");
+ return appRouter.createCaller({ user: null, req: { protocol: "https", headers: {} }, res: {} } as unknown as TrpcContext);
+}
+
+const features = process.env.VITE_FEATURES;
+beforeEach(() => {
+ vi.resetModules();
+ mocks.readCensusToday.mockReset();
+ mocks.readCensusToday.mockResolvedValue(TODAY);
+});
+afterEach(() => {
+ vi.doUnmock("./censusToday");
+ vi.restoreAllMocks();
+ if (features === undefined) delete process.env.VITE_FEATURES;
+ else process.env.VITE_FEATURES = features;
+});
+
+// The first call imports the whole router graph, which can take a few seconds under a loaded full run.
+describe("the Today block's read", { timeout: 30_000 }, () => {
+ it("answers for a chain whose switch is on, to anyone", async () => {
+ process.env.VITE_FEATURES = "claims,chain_monad";
+
+ expect(await (await caller()).liveData.censusToday({ chain: "monad" })).toEqual({ today: TODAY });
+ expect(mocks.readCensusToday).toHaveBeenCalledWith("monad");
+ });
+
+ it("answers nothing for a chain whose switch is off, and does not read the directory for it", async () => {
+ process.env.VITE_FEATURES = "claims,chain_base";
+
+ expect(await (await caller()).liveData.censusToday({ chain: "monad" })).toEqual({ today: null });
+ expect(await (await caller()).liveData.censusToday({ chain: "gnosis" })).toEqual({ today: null });
+ expect(mocks.readCensusToday).not.toHaveBeenCalled();
+ });
+
+ it("answers for BNB Chain and Robinhood Chain whatever the switches say", async () => {
+ delete process.env.VITE_FEATURES;
+ const api = await caller();
+
+ await api.liveData.censusToday({ chain: "bnb" });
+ await api.liveData.censusToday({ chain: "robinhood" });
+
+ expect(mocks.readCensusToday.mock.calls).toEqual([["bnb"], ["robinhood"]]);
+ });
+
+ it("refuses a chain that has no census report", async () => {
+ await expect((await caller()).liveData.censusToday({ chain: "solana" as never })).rejects.toMatchObject({ code: "BAD_REQUEST" });
+ expect(mocks.readCensusToday).not.toHaveBeenCalled();
+ });
+
+ it("passes on nothing when the chain's source is not active", async () => {
+ process.env.VITE_FEATURES = "chain_arc";
+ mocks.readCensusToday.mockResolvedValueOnce(null);
+
+ expect(await (await caller()).liveData.censusToday({ chain: "arc" })).toEqual({ today: null });
+ });
+
+ it("fails closed to nothing, and says so once in the log, when the read fails", async () => {
+ process.env.VITE_FEATURES = "chain_base";
+ const warn = vi.spyOn(console, "warn").mockImplementation(() => {});
+ mocks.readCensusToday.mockRejectedValueOnce(new Error("connect ECONNREFUSED"));
+
+ expect(await (await caller()).liveData.censusToday({ chain: "base" })).toEqual({ today: null });
+ expect(warn).toHaveBeenCalledTimes(1);
+ expect(String(warn.mock.calls[0]![0])).toContain("Census today read failed");
+ });
+});
diff --git a/apps/nooscape-relay/server/chainNames.integration.test.ts b/apps/nooscape-relay/server/chainNames.integration.test.ts
index a491dcf..7e77758 100644
--- a/apps/nooscape-relay/server/chainNames.integration.test.ts
+++ b/apps/nooscape-relay/server/chainNames.integration.test.ts
@@ -5,13 +5,13 @@ import { createConnection, createPool } from "mysql2/promise";
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi, type MockInstance } from "vitest";
import * as schema from "../drizzle/schema";
import { externalKey } from "./ingestion/erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
import { Erc8004RpcBusyError, Erc8004RpcHttpError } from "./ingestion/erc8004Rpc";
import type { RegistrationNameResult } from "./ingestion/registrationFetch";
import { entryNameNote, uriHashOf } from "./robinhoodNamesCore";
/**
- * The Base, Arc, Ethereum and Monad name step against a real database (docs/approvals/2026-10-26-base-arc-names.md): the links read from the chain for
+ * The Base, Arc, Ethereum, Monad and Gnosis name step against a real database (docs/approvals/2026-10-26-base-arc-names.md): the links read from the chain for
* the entries that show the placeholder, newest first; the check that a link is the one the registry row recorded; the links queued,
* read and kept; the names written where the name is still the placeholder; the names laid back over an entry the listing published
* again; the pace of the reads; a node that limits its callers; and the gates of the step: the chain's switch, its source, its node and
@@ -39,6 +39,7 @@ const CID = "QmcsZip4oMCkS8UhrXDmG2Bo1WMaJzbQa35RX2h5QRn1xx";
const BOTH = "chain_base,chain_arc";
const ALL = "chain_base,chain_arc,chain_ethereum";
const WITH_MONAD = "chain_base,chain_arc,chain_ethereum,chain_monad";
+const WITH_GNOSIS = "chain_base,chain_arc,chain_ethereum,chain_monad,chain_gnosis";
const keyOf = (chain: Erc8004Chain, id: number) => externalKey(chain, String(id));
const linkOf = (host: string, id: number) => `https://${host}/agent/${id}.json`;
const inline = (record: Record) => `data:application/json;base64,${Buffer.from(JSON.stringify(record)).toString("base64")}`;
@@ -46,7 +47,7 @@ const NOTE = "Base ERC-8004 registration. The registry-recorded URI is a web lin
const ZERO_WIDTH = String.fromCharCode(0x200b);
const BELL = String.fromCharCode(7);
-describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step against a real database", { timeout: 60_000 }, () => {
+describe.skipIf(!dbReachable)("the Base, Arc, Ethereum, Monad and Gnosis name step against a real database", { timeout: 60_000 }, () => {
let names: typeof import("./chainNames");
let listing: typeof import("./agentRegistryRows");
let writer: MySql2Database;
@@ -56,6 +57,7 @@ describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step again
[ARC_CHAIN.chainKey, "src-arc"],
[ETHEREUM_CHAIN.chainKey, "src-ethereum"],
[MONAD_CHAIN.chainKey, "src-monad"],
+ [GNOSIS_CHAIN.chainKey, "src-gnosis"],
]);
const idOf = (chain: Erc8004Chain) => sourceIds.get(chain.chainKey)!;
@@ -88,7 +90,7 @@ describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step again
sourceId: idOf(chain),
externalKey: keyOf(chain, id),
displayName: over.name ?? `Agent #${id}`,
- protocol: chain.protocol as "erc8004_base" | "erc8004_arc" | "erc8004_eth" | "erc8004_monad",
+ protocol: chain.protocol as "erc8004_base" | "erc8004_arc" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis",
sourceSignalNote: over.note === undefined ? NOTE : over.note,
profileUriHash: recorded === null ? null : uriHashOf(recorded),
hidden: over.hidden ?? false,
@@ -119,10 +121,10 @@ describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step again
}
await baselineReplay.end();
await applyPendingMigrations(process.env.DATABASE_URL);
- // Migrations 0046, 0051 and 0053 are the owner's to paste (the boot runner skips them): 0046 adds the protocol values of Ethereum, Base and Arc,
- // and 0053, which restates 0051's list, adds Monad's.
+ // Migrations 0046, 0051, 0053 and 0057 are the owner's to paste (the boot runner skips them): 0046 adds the protocol values of Ethereum, Base and Arc,
+ // 0053, which restates 0051's list, adds Monad's, and 0057 adds Gnosis's.
const manual = await createConnection(process.env.DATABASE_URL);
- for (const file of ["0046_multichain_erc8004_protocols.sql", "0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql"]) {
+ for (const file of ["0046_multichain_erc8004_protocols.sql", "0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql", "0057_gnosis_erc8004_protocol.sql"]) {
for (const statement of splitMigrationStatements(await readFile(`drizzle/${file}`, "utf8"))) await manual.query(statement);
}
await manual.end();
@@ -136,13 +138,13 @@ describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step again
};
await writer.insert(schema.users).values({ openId: "chain-names-operator", role: "admin" });
const [operator] = await writer.select({ id: schema.users.id }).from(schema.users).where(eq(schema.users.openId, "chain-names-operator"));
- for (const chain of [BASE_CHAIN, ARC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN]) {
+ for (const chain of [BASE_CHAIN, ARC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN]) {
const host = chain.provider.kind === "pinned" ? chain.provider.allowedHostname : "arc-node.example";
await writer.insert(schema.ingestionSources).values({
id: idOf(chain),
sourceKey: chain.sourceKey,
label: `${chain.label} names test`,
- protocol: chain.protocol as "erc8004_base" | "erc8004_arc" | "erc8004_eth" | "erc8004_monad",
+ protocol: chain.protocol as "erc8004_base" | "erc8004_arc" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis",
rootUrl: `https://${host}`,
allowedHostname: host,
state: "active",
@@ -660,6 +662,44 @@ describe.skipIf(!dbReachable)("the Base, Arc, Ethereum and Monad name step again
expect(await run({ ...only(MONAD_CHAIN), features: WITH_MONAD })).toMatchObject({ chain: "monad", chainRead: "read", entriesNamed: 1 });
});
+ it("takes Gnosis in its turn after Monad, and only while its switch is on", async () => {
+ await seedLink(BASE_CHAIN, 1400, linkOf("hosta.example", 1400), "Base Fifth");
+ await seedLink(ARC_CHAIN, 1401, linkOf("arc-agents.example", 1401), "Arc Fifth");
+ await seedLink(ETHEREUM_CHAIN, 1402, linkOf("eth-agents.example", 1402), "Ethereum Fifth");
+ await seedLink(MONAD_CHAIN, 1403, linkOf("monad-agents.example", 1403), "Monad Fifth");
+ await seedLink(GNOSIS_CHAIN, 1404, linkOf("gnosis-agents.example", 1404), "Gnosis Fifth");
+ // Its switch is off: its entry is left alone however many runs there are, and the run it would have had goes unspent.
+ for (const chain of ["base", "arc", "ethereum", "monad"]) expect(await run({ features: WITH_MONAD })).toMatchObject({ chain, entriesNamed: 1 });
+ expect(await run({ features: WITH_MONAD })).toMatchObject({ chain: null, discovered: 0, read: 0 });
+ expect(chainCalls.map(call => call.chain)).toEqual(["base", "arc", "ethereum", "monad"]);
+ expect((await entry(GNOSIS_CHAIN, 1404)).displayName).toBe("Agent #1404");
+ // Switched on, it takes the turn that came round to it, and it is named from its own file.
+ expect(await run({ features: WITH_GNOSIS })).toMatchObject({ chain: "gnosis", chainRead: "read", discovered: 1, read: 1, entriesNamed: 1 });
+ expect((await entry(GNOSIS_CHAIN, 1404)).displayName).toBe("Gnosis Fifth");
+ expect(chainCalls.map(call => call.chain)).toEqual(["base", "arc", "ethereum", "monad", "gnosis"]);
+ expect(asked).toContain(linkOf("gnosis-agents.example", 1404));
+ });
+
+ it("names Gnosis's agent id 0, the first registration on the chain, from the link the chain gives back for it", async () => {
+ await seedLink(GNOSIS_CHAIN, 0, linkOf("gnosis-agents.example", 0), "Gnosis Zero");
+ expect(await run({ ...only(GNOSIS_CHAIN), features: WITH_GNOSIS })).toMatchObject({ chain: "gnosis", chainRead: "read", discovered: 1, read: 1, entriesNamed: 1 });
+ expect(chainCalls).toEqual([{ chain: "gnosis", ids: ["0"] }]);
+ expect((await entry(GNOSIS_CHAIN, 0)).displayName).toBe("Gnosis Zero");
+ });
+
+ it("holds a Gnosis source to Alchemy's host, and leaves the chain alone when the row records another", async () => {
+ await seedLink(GNOSIS_CHAIN, 1410, linkOf("gnosis-agents.example", 1410), "Gnosis Host");
+ await writer.update(schema.ingestionSources).set({ rootUrl: "https://elsewhere.example" }).where(eq(schema.ingestionSources.id, idOf(GNOSIS_CHAIN)));
+ try {
+ expect(await run({ ...only(GNOSIS_CHAIN), features: WITH_GNOSIS })).toMatchObject({ chainRead: "skipped", discovered: 0, read: 0 });
+ expect(chainCalls).toEqual([]);
+ } finally {
+ await writer.update(schema.ingestionSources).set({ rootUrl: "https://gnosis-mainnet.g.alchemy.com" }).where(eq(schema.ingestionSources.id, idOf(GNOSIS_CHAIN)));
+ }
+ names.resetChainNamesClock();
+ expect(await run({ ...only(GNOSIS_CHAIN), features: WITH_GNOSIS })).toMatchObject({ chain: "gnosis", chainRead: "read", entriesNamed: 1 });
+ });
+
it("never lays one chain's name on another chain's entry, even for the same link", async () => {
const shared = linkOf("both.example", 1);
await seed(BASE_CHAIN, 980, shared);
diff --git a/apps/nooscape-relay/server/chainNames.ts b/apps/nooscape-relay/server/chainNames.ts
index a73b00f..f2c78d8 100644
--- a/apps/nooscape-relay/server/chainNames.ts
+++ b/apps/nooscape-relay/server/chainNames.ts
@@ -20,8 +20,8 @@ import { ENTRY_PLACEHOLDER_PATTERN, entryNameNote, entryUriFacts, NAME_RETRY_AFT
import { stepIntervalGateMs } from "./stepInterval";
/**
- * The Base, Arc, Ethereum and Monad name step of the worker (docs/approvals/2026-10-26-base-arc-names.md, extended to Ethereum on 2026-10-27
- * and to Monad on 2026-11-01).
+ * The Base, Arc, Ethereum, Monad and Gnosis name step of the worker (docs/approvals/2026-10-26-base-arc-names.md, extended to Ethereum on
+ * 2026-10-27, to Monad on 2026-11-01 and to Gnosis on 2026-11-06).
* A registration on these chains whose link is a web address or an ipfs address carries no name on the chain, so its directory
* entry is called "Agent #". The step finds the name in the file the link names, in the same three parts as the Robinhood entry
* names (docs/approvals/2026-10-17-robinhood-entry-names.md), and takes one chain a run in turn:
diff --git a/apps/nooscape-relay/server/chainNamesCore.test.ts b/apps/nooscape-relay/server/chainNamesCore.test.ts
index ac469cc..ceb30b2 100644
--- a/apps/nooscape-relay/server/chainNamesCore.test.ts
+++ b/apps/nooscape-relay/server/chainNamesCore.test.ts
@@ -1,23 +1,24 @@
import { describe, expect, it } from "vitest";
import { agentIdOfKey, NAME_CHAINS, newestKeyFirst, usableName } from "./chainNamesCore";
import { directoryDraft } from "./ingestion/erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, BSC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, BSC_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
import { ENTRY_PLACEHOLDER_PATTERN } from "./robinhoodNamesCore";
/**
- * The pure rules of the Base, Arc, Ethereum and Monad name step (docs/approvals/2026-10-26-base-arc-names.md): which chains it names, how it reads the
+ * The pure rules of the Base, Arc, Ethereum, Monad and Gnosis name step (docs/approvals/2026-10-26-base-arc-names.md): which chains it names, how it reads the
* agent id out of a directory key, which registration it takes first, and which names it will not show. The step itself is held by
* chainNames.integration.test.ts and the chain read by chainNamesRead.test.ts.
*/
const registration = (agentId: string) => ({ agentId, owner: "0x00000000000000000000000000000000000000aa", uri: "ipfs://x", blockNumber: 1, transactionHash: "0x", logIndex: 0 });
describe("the chains the step names", () => {
- it("are Base, Arc, Ethereum and Monad, in that order, and neither Robinhood Chain nor BNB Chain, whose reads keep their own rules", () => {
- expect(NAME_CHAINS.map(chain => chain.chainKey)).toEqual(["base", "arc", "ethereum", "monad"]);
+ it("are Base, Arc, Ethereum, Monad and Gnosis, in that order, and neither Robinhood Chain nor BNB Chain, whose reads keep their own rules", () => {
+ expect(NAME_CHAINS.map(chain => chain.chainKey)).toEqual(["base", "arc", "ethereum", "monad", "gnosis"]);
expect(NAME_CHAINS).toContain(BASE_CHAIN);
expect(NAME_CHAINS).toContain(ARC_CHAIN);
expect(NAME_CHAINS).toContain(ETHEREUM_CHAIN);
expect(NAME_CHAINS).toContain(MONAD_CHAIN);
+ expect(NAME_CHAINS).toContain(GNOSIS_CHAIN);
expect(NAME_CHAINS).not.toContain(BSC_CHAIN);
});
@@ -34,9 +35,11 @@ describe("the agent id of a directory key", () => {
}
});
- it("reads agent id 0, which is the first registration on Monad, and puts it last among the newest first", () => {
- const first = directoryDraft(MONAD_CHAIN, registration("0")).externalKey;
- expect(agentIdOfKey(MONAD_CHAIN, first)).toBe("0");
+ it("reads agent id 0, which is the first registration on Monad and on Gnosis, and puts it last among the newest first", () => {
+ for (const chain of [MONAD_CHAIN, GNOSIS_CHAIN]) {
+ const first = directoryDraft(chain, registration("0")).externalKey;
+ expect(agentIdOfKey(chain, first), chain.chainKey).toBe("0");
+ }
expect(["a:0", "a:3", "a:10"].sort(newestKeyFirst)).toEqual(["a:10", "a:3", "a:0"]);
});
diff --git a/apps/nooscape-relay/server/chainNamesCore.ts b/apps/nooscape-relay/server/chainNamesCore.ts
index 7e9af56..316d860 100644
--- a/apps/nooscape-relay/server/chainNamesCore.ts
+++ b/apps/nooscape-relay/server/chainNamesCore.ts
@@ -1,11 +1,11 @@
import { externalKey } from "./ingestion/erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
import { sanitizePublicText } from "./publicText";
import { ENTRY_PLACEHOLDER_PATTERN, SHOWN_NAME_MAX_CHARS } from "./robinhoodNamesCore";
/**
- * The pure rules of the Base, Arc, Ethereum and Monad name step (docs/approvals/2026-10-26-base-arc-names.md, extended to Ethereum on
- * 2026-10-27 and to Monad on 2026-11-01). A registration on these chains that carries no name of its own inside its link is called "Agent #". The step reads
+ * The pure rules of the Base, Arc, Ethereum, Monad and Gnosis name step (docs/approvals/2026-10-26-base-arc-names.md, extended to Ethereum on
+ * 2026-10-27, to Monad on 2026-11-01 and to Gnosis on 2026-11-06). A registration on these chains that carries no name of its own inside its link is called "Agent #". The step reads
* the link from the chain, reads the file the link names, and lays the name it finds over the placeholder of the registration's
* directory entry. Nothing here touches the network or the database.
*/
@@ -14,7 +14,7 @@ import { ENTRY_PLACEHOLDER_PATTERN, SHOWN_NAME_MAX_CHARS } from "./robinhoodName
* The chains the step names, in the order it takes its turns. Robinhood Chain has a step of its own (robinhoodNames.ts), and the
* BNB Chain registration files keep no name (docs/approvals/2026-10-17-bnb-registration-files.md), so neither is here.
*/
-export const NAME_CHAINS: readonly Erc8004Chain[] = [BASE_CHAIN, ARC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN];
+export const NAME_CHAINS: readonly Erc8004Chain[] = [BASE_CHAIN, ARC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN];
/** The agent id in a directory key of this chain (`eip155:::`), or null for a key of any other shape. */
export function agentIdOfKey(chain: Erc8004Chain, key: string): string | null {
diff --git a/apps/nooscape-relay/server/chainNamesRead.test.ts b/apps/nooscape-relay/server/chainNamesRead.test.ts
index 080e009..0da6dbe 100644
--- a/apps/nooscape-relay/server/chainNamesRead.test.ts
+++ b/apps/nooscape-relay/server/chainNamesRead.test.ts
@@ -6,11 +6,11 @@ vi.mock("./ingestion/a2a", () => ({ assertPublicHostname: mocks.assertPublicHost
import { readTokenUrisFromChain } from "./chainNames";
import { MULTICALL3 } from "./ingestion/bscMulticall";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
import { Erc8004RpcHttpError, Erc8004RpcNotConfiguredError } from "./ingestion/erc8004Rpc";
/**
- * The chain read of the Base, Arc, Ethereum and Monad name step (docs/approvals/2026-10-26-base-arc-names.md): one `eth_call` through Multicall3 for the
+ * The chain read of the Base, Arc, Ethereum, Monad and Gnosis name step (docs/approvals/2026-10-26-base-arc-names.md): one `eth_call` through Multicall3 for the
* tokenURI of each id, on the chain's own node, at the finalized block, in one attempt. The request and the answer below are the real
* ones of NodeReal on 2026-10-16 for the ids 2, 1000 and 99999999 (server/ingestion/bscMulticall.test.ts): the registry is the same
* contract at the same address on every chain, so the same ids give the same request on Base and on Arc. The endpoints below are made up.
@@ -24,6 +24,7 @@ const BASE_URL = `https://base-mainnet.g.alchemy.com/v2/${KEY}`;
const ARC_URL = `https://arc-node.example/${KEY}/rpc`;
const ETHEREUM_URL = `https://eth-mainnet.nodereal.io/v1/${KEY}`;
const MONAD_URL = `https://monad-mainnet.g.alchemy.com/v2/${KEY}`;
+const GNOSIS_URL = `https://gnosis-mainnet.g.alchemy.com/v2/${KEY}`;
/** A real chain entry with its endpoint made up, so the test does not depend on the environment. */
const withEndpoint = (chain: Erc8004Chain, url: string): Erc8004Chain => ({ ...chain, readRpcUrl: () => url });
const sourceAt = (host: string) => ({ allowedHostname: host }) as IngestionSource;
@@ -46,6 +47,7 @@ describe.each([
["Arc", withEndpoint(ARC_CHAIN, ARC_URL), ARC_URL, "arc-node.example"],
["Ethereum", withEndpoint(ETHEREUM_CHAIN, ETHEREUM_URL), ETHEREUM_URL, "eth-mainnet.nodereal.io"],
["Monad", withEndpoint(MONAD_CHAIN, MONAD_URL), MONAD_URL, "monad-mainnet.g.alchemy.com"],
+ ["Gnosis", withEndpoint(GNOSIS_CHAIN, GNOSIS_URL), GNOSIS_URL, "gnosis-mainnet.g.alchemy.com"],
])("the %s chain read", (_name, chain, url, host) => {
it("asks the chain's own node once, through Multicall3, at the finalized block, and decodes the answer", async () => {
const { calls, call } = recorder(RESPONSE);
diff --git a/apps/nooscape-relay/server/chainRatings.integration.test.ts b/apps/nooscape-relay/server/chainRatings.integration.test.ts
index 428ca77..5022642 100644
--- a/apps/nooscape-relay/server/chainRatings.integration.test.ts
+++ b/apps/nooscape-relay/server/chainRatings.integration.test.ts
@@ -141,15 +141,18 @@ describe.skipIf(!dbReachable)("the ratings step, against a real database", { tim
await admin.end();
});
- it("names the reputation registry on Ethereum, Base, Arc and Monad, and the entries are sound", async () => {
- const { ETHEREUM_CHAIN, MONAD_CHAIN } = await import("./ingestion/erc8004Chains");
+ it("names the reputation registry on Ethereum, Base, Arc, Monad and Gnosis, and the entries are sound", async () => {
+ const { ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN } = await import("./ingestion/erc8004Chains");
const { ROBINHOOD_REPUTATION_REGISTRY } = await import("./ingestion/robinhoodReputation");
expect(ERC8004_REPUTATION_REGISTRY).toBe(ROBINHOOD_REPUTATION_REGISTRY);
- for (const chain of [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN]) expect(chain.reputation?.registry, chain.protocol).toBe(ERC8004_REPUTATION_REGISTRY);
+ for (const chain of [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN]) expect(chain.reputation?.registry, chain.protocol).toBe(ERC8004_REPUTATION_REGISTRY);
// Monad reads from its identity registry's deploy block in windows of 50,000 blocks, the most Alchemy answers for one request.
expect(MONAD_CHAIN.reputation?.window).toBe(50_000);
expect(MONAD_CHAIN.reputation!.window).toBeLessThanOrEqual(MONAD_CHAIN.maxLogRange);
- expect(validateErc8004Chains([ARC, BASE, MONAD_CHAIN])).toEqual([]);
+ // Gnosis reads from its identity registry's deploy block in windows of 10,000 blocks, the most Alchemy answers for one request there.
+ expect(GNOSIS_CHAIN.reputation?.window).toBe(10_000);
+ expect(GNOSIS_CHAIN.reputation!.window).toBeLessThanOrEqual(GNOSIS_CHAIN.maxLogRange);
+ expect(validateErc8004Chains([ARC, BASE, MONAD_CHAIN, GNOSIS_CHAIN])).toEqual([]);
});
describe("counting", () => {
diff --git a/apps/nooscape-relay/server/chainSwitch.integration.test.ts b/apps/nooscape-relay/server/chainSwitch.integration.test.ts
index a6b9007..9fe785d 100644
--- a/apps/nooscape-relay/server/chainSwitch.integration.test.ts
+++ b/apps/nooscape-relay/server/chainSwitch.integration.test.ts
@@ -28,7 +28,7 @@ const dbReachable = await (async () => {
}
})();
-const ALL_ON = "chain_ethereum,chain_base,chain_arc,chain_monad";
+const ALL_ON = "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis";
const hash = (text: string) => createHash("sha256").update(text).digest("hex");
const wallet = (n: number) => `0x${n.toString(16).padStart(40, "0")}`;
const baseKey = (id: string) => `eip155:${BASE_CHAIN.chainId}:${BASE_CHAIN.identityRegistry}:${id}`;
@@ -147,17 +147,17 @@ describe.skipIf(!dbReachable)("the chain switches on the public reads, against a
expect(await db.findVisibleDirectoryEntriesByKey(["erc8004_base"], baseKey("1"))).toEqual([]);
const stats = await chainStats();
expect(JSON.stringify({ chains: stats.chains })).toBe(before.stats);
- // The tabs for the four chains are there and read "not indexed": no source for them has been staged.
- expect(stats.extras!.map(row => row.chain)).toEqual(["ethereum", "base", "arc", "monad"]);
+ // The tabs for the five chains are there and read "not indexed": no source for them has been staged.
+ expect(stats.extras!.map(row => row.chain)).toEqual(["ethereum", "base", "arc", "monad", "gnosis"]);
for (const row of stats.extras!) expect(row).toMatchObject({ indexed: false, acknowledged: null, reviewed: null, feedbackEvents: null, registries: [], asOf: null, registry: null });
});
- describe("after the manual migrations (0046, 0051 and 0053)", () => {
+ describe("after the manual migrations (0046, 0051, 0053 and 0057)", () => {
beforeAll(async () => {
const { splitMigrationStatements } = await import("./dbMigrations");
const owner = await createConnection(process.env.DATABASE_URL!);
- // In the order production had them: 0046 adds the first three protocols, 0053 (which restates 0051's list) adds Monad's.
- for (const file of ["0046_multichain_erc8004_protocols.sql", "0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql"]) {
+ // In the order production had them: 0046 adds the first three protocols, 0053 (which restates 0051's list) adds Monad's and 0057 Gnosis's.
+ for (const file of ["0046_multichain_erc8004_protocols.sql", "0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql", "0057_gnosis_erc8004_protocol.sql"]) {
for (const statement of splitMigrationStatements(await readFile(`drizzle/${file}`, "utf8"))) await owner.query(statement);
}
await owner.end();
@@ -168,6 +168,8 @@ describe.skipIf(!dbReachable)("the chain switches on the public reads, against a
await entries("src-arc", "arc", 3, "erc8004_arc");
await source("src-monad", "erc8004_monad");
await entries("src-monad", "monad", 2, "erc8004_monad");
+ await source("src-gnosis", "erc8004_gnosis");
+ await entries("src-gnosis", "gnosis", 4, "erc8004_gnosis");
// Base goes through the real path: seven registrations recorded, five of them listed and published as entries.
const [row] = await writer.select().from(schema.ingestionSources).where(eq(schema.ingestionSources.id, "src-base"));
baseSource = row!;
@@ -256,6 +258,7 @@ describe.skipIf(!dbReachable)("the chain switches on the public reads, against a
expect(await searched()).not.toContain("erc8004_eth");
expect(await searched()).not.toContain("erc8004_arc");
expect(await searched()).not.toContain("erc8004_monad");
+ expect(await searched()).not.toContain("erc8004_gnosis");
const found = await db.findVisibleDirectoryEntriesByKey(["erc8004_base"], baseKey("1"));
expect(found).toHaveLength(1);
// Read as an entry, with the look-alike count taken over the whole registry: the held-out registration by the same wallet is counted.
@@ -277,13 +280,25 @@ describe.skipIf(!dbReachable)("the chain switches on the public reads, against a
expect(await sourceProtocols()).toEqual(["erc8004", "erc8004_bsc", "erc8004_monad"]);
expect(await db.countAgentDirectoryEntries()).toBe(before.count + 2);
expect((await searched()).filter(protocol => protocol === "erc8004_monad")).toHaveLength(2);
- for (const hidden of ["erc8004_eth", "erc8004_base", "erc8004_arc"]) expect(await searched()).not.toContain(hidden);
+ for (const hidden of ["erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_gnosis"]) expect(await searched()).not.toContain(hidden);
const stats = await chainStats();
expect(JSON.stringify({ chains: stats.chains })).toBe(before.stats);
expect(stats.extras!.map(row => [row.chain, row.indexed, row.acknowledged, row.registry])).toEqual([["monad", true, 2, null]]);
});
- it("keeps each other chain hidden while its own switch is off, and shows them in the order Ethereum, Base, Arc, Monad when all are on", async () => {
+ it("shows Gnosis alone when only its switch is on: its source and its entries, and none of the other chains'", async () => {
+ features("chain_gnosis");
+ expect(await protocolsInBreakdown()).toEqual([...before.breakdown, "erc8004_gnosis:4"].sort());
+ expect(await sourceProtocols()).toEqual(["erc8004", "erc8004_bsc", "erc8004_gnosis"]);
+ expect(await db.countAgentDirectoryEntries()).toBe(before.count + 4);
+ expect((await searched()).filter(protocol => protocol === "erc8004_gnosis")).toHaveLength(4);
+ for (const hidden of ["erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_monad"]) expect(await searched()).not.toContain(hidden);
+ const stats = await chainStats();
+ expect(JSON.stringify({ chains: stats.chains })).toBe(before.stats);
+ expect(stats.extras!.map(row => [row.chain, row.indexed, row.acknowledged, row.registry])).toEqual([["gnosis", true, 4, null]]);
+ });
+
+ it("keeps each other chain hidden while its own switch is off, and shows them in the order Ethereum, Base, Arc, Monad, Gnosis when all are on", async () => {
features("chain_ethereum,chain_arc");
expect(await protocolsInBreakdown()).toEqual([...before.breakdown, "erc8004_arc:3"].sort());
expect(await db.findVisibleDirectoryEntriesByKey(["erc8004_base"], baseKey("1"))).toEqual([]);
@@ -293,10 +308,10 @@ describe.skipIf(!dbReachable)("the chain switches on the public reads, against a
expect(stats.extras!.map(row => [row.chain, row.indexed, row.acknowledged, row.registry])).toEqual([["ethereum", true, 0, null], ["arc", true, 3, null]]);
features(ALL_ON);
- expect(await db.countAgentDirectoryEntries()).toBe(before.count + 10);
- expect(await sourceProtocols()).toEqual(["erc8004", "erc8004_arc", "erc8004_base", "erc8004_bsc", "erc8004_eth", "erc8004_monad"]);
+ expect(await db.countAgentDirectoryEntries()).toBe(before.count + 14);
+ expect(await sourceProtocols()).toEqual(["erc8004", "erc8004_arc", "erc8004_base", "erc8004_bsc", "erc8004_eth", "erc8004_gnosis", "erc8004_monad"]);
stats = await chainStats();
- expect(stats.extras!.map(row => [row.chain, row.acknowledged])).toEqual([["ethereum", 0], ["base", 5], ["arc", 3], ["monad", 2]]);
+ expect(stats.extras!.map(row => [row.chain, row.acknowledged])).toEqual([["ethereum", 0], ["base", 5], ["arc", 3], ["monad", 2], ["gnosis", 4]]);
});
it("goes back to what it was when the switches are turned off again", async () => {
diff --git a/apps/nooscape-relay/server/checkerPage.test.ts b/apps/nooscape-relay/server/checkerPage.test.ts
index 8fe5d78..73ca6bf 100644
--- a/apps/nooscape-relay/server/checkerPage.test.ts
+++ b/apps/nooscape-relay/server/checkerPage.test.ts
@@ -148,7 +148,7 @@ describe("what it says about itself", () => {
expect(page).toContain("or of an agent in the ERC-8004 registry on Robinhood Chain, Ethereum, Base or Arc, to find the agent’s name");
expect(page).toContain("or a registration in the ERC-8004 registry on Robinhood Chain, Ethereum, Base or Arc, names");
expect(page).toContain("For a registration on Robinhood Chain, Ethereum, Base or Arc it first finds the link by reading the registry on the chain, which asks nothing of your site.");
- expect(page).toContain("The 8004 and SAID registries on Solana and the ERC-8004 registries on Robinhood Chain, Ethereum, Base, Arc and Monad are public too, and so is the ERC-8004 registry on BNB Chain.");
+ expect(page).toContain("The 8004 and SAID registries on Solana and the ERC-8004 registries on Robinhood Chain, Ethereum, Base, Arc, Monad and Gnosis are public too, and so is the ERC-8004 registry on BNB Chain.");
expect(page).toContain("Nooscape shows the name it read in place of the number on the agent’s page, on the map and in the directory, says on the agent’s page when it read it");
// The agent's page does say when, and the explanation of what a record shows names the exception.
expect(read("../client/src/pages/DirectoryAgent.tsx")).toContain("This name was read from the agent’s registration link on {formatWhen(record.nameReadAt)}");
@@ -172,12 +172,12 @@ describe("what it says about itself", () => {
expect(read("./db.ts")).toContain("Only the display name changes: the retained observation, the evidence packet");
});
- it("says it also reads the registration link of an agent on Base, Arc, Ethereum or Monad for its name, and the step does what the page says", () => {
- expect(page).toContain("For an agent on Base, Arc, Ethereum or Monad that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page and in the directory, and the note on the agent’s page says when it read it.");
- expect(page).toContain("Each of the three registration reads, the Robinhood names, the Base, Arc, Ethereum and Monad names and the BNB Chain files, reads at most");
- expect(page).toContain("The Base, Arc, Ethereum and Monad names take the four chains in turn, one chain in each run.");
+ it("says it also reads the registration link of an agent on Base, Arc, Ethereum, Monad or Gnosis for its name, and the step does what the page says", () => {
+ expect(page).toContain("For an agent on Base, Arc, Ethereum, Monad or Gnosis that is shown only as a number, Nooscape shows the name it read in place of the number on the agent’s page and in the directory, and the note on the agent’s page says when it read it.");
+ expect(page).toContain("Each of the three registration reads, the Robinhood names, the Base, Arc, Ethereum, Monad and Gnosis names and the BNB Chain files, reads at most");
+ expect(page).toContain("The Base, Arc, Ethereum, Monad and Gnosis names take the five chains in turn, one chain in each run.");
// The chains the page names are the chains the step takes.
- expect(NAME_CHAINS.map(chain => chain.chainLabel)).toEqual(["Base", "Arc", "Ethereum", "Monad"]);
+ expect(NAME_CHAINS.map(chain => chain.chainLabel)).toEqual(["Base", "Arc", "Ethereum", "Monad", "Gnosis"]);
// The pace the page promises is the pace the step keeps: it takes the Robinhood step's constants and has none of its own.
const step = read("./chainNames.ts");
expect(step).toContain('from "./robinhoodNames"');
@@ -271,7 +271,7 @@ describe("the rest of the site, on what Nooscape fetches", () => {
expect(sources).not.toContain("A2A ");
expect(sources).toContain("{directoryProtocolLabel(source.protocol)}");
expect(sources).toContain("For an A2A source it also allows a check once a day");
- expect(sources).toContain("For the 8004 registries on Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc and Monad, and the SAID registry on Solana, it also allows reading the registration link of an entry, a few at a time, to find its name or to group look-alike entries (Nooscape-Checker).");
+ expect(sources).toContain("For the 8004 registries on Solana, Robinhood Chain, BNB Chain, Ethereum, Base, Arc, Monad and Gnosis, and the SAID registry on Solana, it also allows reading the registration link of an entry, a few at a time, to find its name or to group look-alike entries (Nooscape-Checker).");
});
it("does not say the Solana 8004 pass fetches nothing, which its name fetch makes untrue, or that an entry is reachable because it has a locator", () => {
diff --git a/apps/nooscape-relay/server/ciScope.test.ts b/apps/nooscape-relay/server/ciScope.test.ts
index d4aa79e..b44bfde 100644
--- a/apps/nooscape-relay/server/ciScope.test.ts
+++ b/apps/nooscape-relay/server/ciScope.test.ts
@@ -238,7 +238,7 @@ describe("the tests against the documents", () => {
}
});
- it("read the docs directory by name only in the nine reports' tests and the status page's, which name each document they read", () => {
+ it("read the docs directory by name only in the ten reports' tests and the status page's, which name each document they read", () => {
const readers = tests.filter(({ code }) => /["'`]docs["'`]/.test(code)).map(({ file }) => file);
expect(readers.sort()).toEqual([
"client/src/pages/arcRegistryReport.test.ts",
@@ -247,6 +247,7 @@ describe("the tests against the documents", () => {
"client/src/pages/bnbRatingsReport.test.ts",
"client/src/pages/bnbRegistryReport.test.ts",
"client/src/pages/ethereumRegistryReport.test.ts",
+ "client/src/pages/gnosisRegistryReport.test.ts",
"client/src/pages/monadRegistryReport.test.ts",
"client/src/pages/robinhoodRegistryReport.test.ts",
"client/src/pages/solanaRegistryReport.test.ts",
diff --git a/apps/nooscape-relay/server/claims.integration.test.ts b/apps/nooscape-relay/server/claims.integration.test.ts
index 47c3332..8137379 100644
--- a/apps/nooscape-relay/server/claims.integration.test.ts
+++ b/apps/nooscape-relay/server/claims.integration.test.ts
@@ -118,7 +118,7 @@ describe.skipIf(!dbReachable)("claim this agent against a real database", { time
await writer.insert(schema.ingestionSources).values({ id, sourceKey: `claims-${id}`, label: id, protocol, rootUrl: "https://claims.example/feed", allowedHostname: "claims.example", state, createdByUserId: operatorUserId });
}
/** An entry on a registry with an owner on the fake chain, and the wallet the directory recorded for it. */
- async function entry(sourceId: string, protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad" | "solana_8004", chainId: number, token: number, owner: string | null, registrant: string | null = owner, extra: Partial = {}) {
+ async function entry(sourceId: string, protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis" | "solana_8004", chainId: number, token: number, owner: string | null, registrant: string | null = owner, extra: Partial = {}) {
n += 1;
const id = `claim-entry-${n}`;
const externalKey = protocol === "solana_8004" ? `solana-asset-${n}` : `eip155:${chainId}:${REGISTRY}:${token}`;
@@ -183,8 +183,8 @@ describe.skipIf(!dbReachable)("claim this agent against a real database", { time
// Migration 0046 is manual too: it adds Arc's protocol to the four tables.
const arcMigration = await createConnection(process.env.DATABASE_URL);
for (const statement of splitMigrationStatements(await readFile("drizzle/0046_multichain_erc8004_protocols.sql", "utf8"))) await arcMigration.query(statement);
- // And 0051 and 0053, the last of which adds Monad's protocol, in the order production had them.
- for (const migrationFile of ["0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql"]) {
+ // And 0051, 0053 and 0057, the last of which adds Gnosis's protocol, in the order production had them.
+ for (const migrationFile of ["0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql", "0057_gnosis_erc8004_protocol.sql"]) {
for (const statement of splitMigrationStatements(await readFile(`drizzle/${migrationFile}`, "utf8"))) await arcMigration.query(statement);
}
await arcMigration.end();
@@ -1187,7 +1187,8 @@ describe.skipIf(!dbReachable)("claim this agent against a real database", { time
{ label: "Base", protocol: "erc8004_base" as const, chainId: 8453, chain: "chain_base", claimsSwitch: "claims_base", sourceId: "src-base", tokenBase: 4000, key: `0x${"8".repeat(64)}`, otherKey: `0x${"a".repeat(64)}` },
{ label: "Ethereum", protocol: "erc8004_eth" as const, chainId: 1, chain: "chain_ethereum", claimsSwitch: "claims_ethereum", sourceId: "src-eth", tokenBase: 5000, key: `0x${"9".repeat(64)}`, otherKey: `0x${"b".repeat(64)}` },
{ label: "Monad", protocol: "erc8004_monad" as const, chainId: 143, chain: "chain_monad", claimsSwitch: "claims_monad", sourceId: "src-monad", tokenBase: 6000, key: `0x${"c".repeat(64)}`, otherKey: `0x${"d".repeat(64)}` },
- ])("an agent on $label (docs/base-ethereum-claims-2026-10-28.md and docs/monad-claims-2026-11-01.md)", ({ label, protocol, chainId, chain, claimsSwitch, sourceId, tokenBase, key, otherKey }) => {
+ { label: "Gnosis", protocol: "erc8004_gnosis" as const, chainId: 100, chain: "chain_gnosis", claimsSwitch: "claims_gnosis", sourceId: "src-gnosis", tokenBase: 7000, key: `0x${"e".repeat(64)}`, otherKey: `0x${"6".repeat(64)}` },
+ ])("an agent on $label (docs/base-ethereum-claims-2026-10-28.md, docs/monad-claims-2026-11-01.md and docs/gnosis-claims-2026-11-06.md)", ({ label, protocol, chainId, chain, claimsSwitch, sourceId, tokenBase, key, otherKey }) => {
const ON = `${chain},${claimsSwitch}`;
/** A wallet no other test has used, so it holds no claims and is no fleet. */
const FRANK = testWallet(key);
diff --git a/apps/nooscape-relay/server/claimsChain.test.ts b/apps/nooscape-relay/server/claimsChain.test.ts
index 7877bd7..3bb49b4 100644
--- a/apps/nooscape-relay/server/claimsChain.test.ts
+++ b/apps/nooscape-relay/server/claimsChain.test.ts
@@ -8,13 +8,14 @@ const mocks = vi.hoisted(() => ({
callBaseRpcOnce: vi.fn(async (_method: string, _params: unknown[]): Promise => "0x"),
callEthereumRpcOnce: vi.fn(async (_method: string, _params: unknown[]): Promise => "0x"),
callMonadRpcOnce: vi.fn(async (_method: string, _params: unknown[]): Promise => "0x"),
+ callGnosisRpcOnce: vi.fn(async (_method: string, _params: unknown[]): Promise => "0x"),
}));
vi.mock("./ingestion/bscRpc", async importOriginal => ({ ...(await importOriginal()), callBscRpc: mocks.callBscRpc }));
vi.mock("./ingestion/robinhood", async importOriginal => ({ ...(await importOriginal()), callRobinhoodRpcOnce: mocks.callRobinhoodRpcOnce }));
vi.mock("./ingestion/bscBudget", async importOriginal => ({ ...(await importOriginal()), bscReadBucket: { take: mocks.take, spent: () => 0 } }));
vi.mock("./claimsArc", () => ({ callArcRpcOnce: mocks.callArcRpcOnce }));
-vi.mock("./claimsPinned", () => ({ callBaseRpcOnce: mocks.callBaseRpcOnce, callEthereumRpcOnce: mocks.callEthereumRpcOnce, callMonadRpcOnce: mocks.callMonadRpcOnce }));
+vi.mock("./claimsPinned", () => ({ callBaseRpcOnce: mocks.callBaseRpcOnce, callEthereumRpcOnce: mocks.callEthereumRpcOnce, callMonadRpcOnce: mocks.callMonadRpcOnce, callGnosisRpcOnce: mocks.callGnosisRpcOnce }));
import { BscRpcError } from "./ingestion/bscRpc";
import { Erc8004RpcError } from "./ingestion/erc8004Rpc";
@@ -220,13 +221,14 @@ describe.each([
{ label: "Base", protocol: "erc8004_base", chainId: 8453, chain: "chain_base", claims: "claims_base", node: mocks.callBaseRpcOnce },
{ label: "Ethereum", protocol: "erc8004_eth", chainId: 1, chain: "chain_ethereum", claims: "claims_ethereum", node: mocks.callEthereumRpcOnce },
{ label: "Monad", protocol: "erc8004_monad", chainId: 143, chain: "chain_monad", claims: "claims_monad", node: mocks.callMonadRpcOnce },
+ { label: "Gnosis", protocol: "erc8004_gnosis", chainId: 100, chain: "chain_gnosis", claims: "claims_gnosis", node: mocks.callGnosisRpcOnce },
])("$label's registry", ({ label, protocol, chainId, chain, claims, node }) => {
const ON = `${chain},${claims}`;
beforeEach(() => resetRateLimits());
it("is a claim chain with the chain's own id and the registry's address", () => {
- expect(CLAIM_CHAINS[protocol as "erc8004_base" | "erc8004_eth" | "erc8004_monad"]).toMatchObject({ protocol, chainId, registry: REGISTRY, label });
+ expect(CLAIM_CHAINS[protocol as "erc8004_base" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis"]).toMatchObject({ protocol, chainId, registry: REGISTRY, label });
});
it("can be claimed only while the chain is on and its claims are on, each named in the list, and no other chain's switches open it", () => {
@@ -283,10 +285,10 @@ describe.each([
});
describe("every extra chain's claims together", () => {
- it("name the registries in the order Arc, Base, Ethereum, Monad after the first two, and the words for an entry that cannot be claimed follow", () => {
- const all = "chain_arc,claims_arc,chain_base,claims_base,chain_ethereum,claims_ethereum,chain_monad,claims_monad";
- expect(claimableChains(all).map(candidate => candidate.label)).toEqual(["Robinhood Chain", "BNB Smart Chain", "Arc", "Base", "Ethereum", "Monad"]);
- expect(claimableChains(all).map(candidate => candidate.chainId)).toEqual([4663, 56, 5042, 8453, 1, 143]);
+ it("name the registries in the order Arc, Base, Ethereum, Monad, Gnosis after the first two, and the words for an entry that cannot be claimed follow", () => {
+ const all = "chain_arc,claims_arc,chain_base,claims_base,chain_ethereum,claims_ethereum,chain_monad,claims_monad,chain_gnosis,claims_gnosis";
+ expect(claimableChains(all).map(candidate => candidate.label)).toEqual(["Robinhood Chain", "BNB Smart Chain", "Arc", "Base", "Ethereum", "Monad", "Gnosis"]);
+ expect(claimableChains(all).map(candidate => candidate.chainId)).toEqual([4663, 56, 5042, 8453, 1, 143, 100]);
expect(claimableChains(undefined).map(candidate => candidate.label)).toEqual(["Robinhood Chain", "BNB Smart Chain"]);
});
});
diff --git a/apps/nooscape-relay/server/claimsChain.ts b/apps/nooscape-relay/server/claimsChain.ts
index 3fdcf8c..657fa13 100644
--- a/apps/nooscape-relay/server/claimsChain.ts
+++ b/apps/nooscape-relay/server/claimsChain.ts
@@ -1,10 +1,10 @@
-import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, monadClaimsOn } from "@shared/features";
+import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, gnosisClaimsOn, monadClaimsOn } from "@shared/features";
import { callArcRpcOnce } from "./claimsArc";
-import { callBaseRpcOnce, callEthereumRpcOnce, callMonadRpcOnce } from "./claimsPinned";
+import { callBaseRpcOnce, callEthereumRpcOnce, callGnosisRpcOnce, callMonadRpcOnce } from "./claimsPinned";
import { BscRpcError, callBscRpc } from "./ingestion/bscRpc";
import { BSC_CHAIN_ID, BSC_IDENTITY_REGISTRY } from "./ingestion/bscChain";
import { bscReadBucket, BSC_CU } from "./ingestion/bscBudget";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN } from "./ingestion/erc8004Chains";
import { callRobinhoodRpcOnce, ROBINHOOD_IDENTITY_REGISTRY, ROBINHOOD_REGISTRY_CHAIN } from "./ingestion/robinhood";
import { decodeOwnerOf, encodeIsValidSignature, encodeOwnerOf, isValidSignatureAnswer } from "./claimsCrypto";
import { consumeRateLimit } from "./rateLimit";
@@ -13,13 +13,13 @@ import { consumeRateLimit } from "./rateLimit";
* What a claim reads from a chain (docs/claims-2026-10-18.md), and nothing else: who the registry says owns an agent now
* (`ownerOf`), whether an address is a contract, and whether a contract wallet accepts a signature (EIP-1271). Three read-only
* `eth_call` and `eth_getCode` requests through the paced clients the passes already use: a BNB Chain read spends from the same
- * compute-unit bucket as the worker's own reads, and a Robinhood Chain, Arc, Base, Ethereum or Monad read is one attempt with no retry ladder, so a visitor
+ * compute-unit bucket as the worker's own reads, and a Robinhood Chain, Arc, Base, Ethereum, Monad or Gnosis read is one attempt with no retry ladder, so a visitor
* never waits out a throttle. It asks for no transaction, holds no key and sends nothing.
*/
-export type ClaimChain = { protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad"; chainId: number; registry: string; label: string };
+export type ClaimChain = { protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis"; chainId: number; registry: string; label: string };
-/** The EVM registries a claim can be made on. A directory entry of any other protocol cannot be claimed here. Arc's, Base's, Ethereum's and Monad's count only while their claims are switched on. */
+/** The EVM registries a claim can be made on. A directory entry of any other protocol cannot be claimed here. Arc's, Base's, Ethereum's, Monad's and Gnosis's count only while their claims are switched on. */
export const CLAIM_CHAINS: Record = {
erc8004: { protocol: "erc8004", chainId: ROBINHOOD_REGISTRY_CHAIN.chainId, registry: ROBINHOOD_IDENTITY_REGISTRY, label: "Robinhood Chain" },
erc8004_bsc: { protocol: "erc8004_bsc", chainId: BSC_CHAIN_ID, registry: BSC_IDENTITY_REGISTRY, label: "BNB Smart Chain" },
@@ -27,6 +27,7 @@ export const CLAIM_CHAINS: Record = {
erc8004_base: { protocol: "erc8004_base", chainId: BASE_CHAIN.chainId, registry: BASE_CHAIN.identityRegistry, label: "Base" },
erc8004_eth: { protocol: "erc8004_eth", chainId: ETHEREUM_CHAIN.chainId, registry: ETHEREUM_CHAIN.identityRegistry, label: "Ethereum" },
erc8004_monad: { protocol: "erc8004_monad", chainId: MONAD_CHAIN.chainId, registry: MONAD_CHAIN.identityRegistry, label: "Monad" },
+ erc8004_gnosis: { protocol: "erc8004_gnosis", chainId: GNOSIS_CHAIN.chainId, registry: GNOSIS_CHAIN.identityRegistry, label: "Gnosis" },
};
/** The registries claimable now, in the order the words name them: each extra chain's only while its own switch and its claims switch are both on in the list. */
@@ -37,6 +38,7 @@ export const claimableChains = (features: string | undefined = process.env.VITE_
...(baseClaimsOn(features) ? [CLAIM_CHAINS.erc8004_base] : []),
...(ethereumClaimsOn(features) ? [CLAIM_CHAINS.erc8004_eth] : []),
...(monadClaimsOn(features) ? [CLAIM_CHAINS.erc8004_monad] : []),
+ ...(gnosisClaimsOn(features) ? [CLAIM_CHAINS.erc8004_gnosis] : []),
];
export const claimChainOf = (protocol: string, features: string | undefined = process.env.VITE_FEATURES): ClaimChain | null => claimableChains(features).find(chain => chain.protocol === protocol) ?? null;
@@ -88,6 +90,7 @@ function makeCallChain(options: { admit: boolean }): EvmCall {
if (chainId === BASE_CHAIN.chainId) return { revert: false, result: await callBaseRpcOnce(method, params) };
if (chainId === ETHEREUM_CHAIN.chainId) return { revert: false, result: await callEthereumRpcOnce(method, params) };
if (chainId === MONAD_CHAIN.chainId) return { revert: false, result: await callMonadRpcOnce(method, params) };
+ if (chainId === GNOSIS_CHAIN.chainId) return { revert: false, result: await callGnosisRpcOnce(method, params) };
throw new ChainUnavailableError();
} catch (error) {
if (error instanceof ChainUnavailableError) throw error;
diff --git a/apps/nooscape-relay/server/claimsPinned.test.ts b/apps/nooscape-relay/server/claimsPinned.test.ts
index 13e74ca..16eb9a2 100644
--- a/apps/nooscape-relay/server/claimsPinned.test.ts
+++ b/apps/nooscape-relay/server/claimsPinned.test.ts
@@ -4,7 +4,7 @@ const mocks = vi.hoisted(() => ({ assertPublicHostname: vi.fn(async (_host: stri
vi.mock("./ingestion/a2a", async importOriginal => ({ ...(await importOriginal()), assertPublicHostname: mocks.assertPublicHostname }));
import { ENV } from "./_core/env";
-import { callBaseRpcOnce, callEthereumRpcOnce, callMonadRpcOnce, forgetCheckedPinnedNodes } from "./claimsPinned";
+import { callBaseRpcOnce, callEthereumRpcOnce, callGnosisRpcOnce, callMonadRpcOnce, forgetCheckedPinnedNodes } from "./claimsPinned";
import { Erc8004RpcError, Erc8004RpcHttpError } from "./ingestion/erc8004Rpc";
/**
@@ -96,6 +96,16 @@ describe.each([
otherChainId: "0x1",
variable: "MONAD_RPC_URL",
},
+ {
+ label: "Gnosis",
+ read: callGnosisRpcOnce,
+ set: (value: string) => (ENV.gnosisRpcUrl = value),
+ host: "gnosis-mainnet.g.alchemy.com",
+ path: `/v2/${KEY}`,
+ chainId: "0x64",
+ otherChainId: "0x1",
+ variable: "GNOSIS_RPC_URL",
+ },
])("a read on $label's node", ({ label, read, set, host, path, chainId, otherChainId, variable }) => {
const NODE = `https://${host}${path}`;
beforeEach(() => {
@@ -294,6 +304,19 @@ describe("the nodes are separate", () => {
expect(methods()).toEqual(["eth_chainId"]);
});
+ it("Gnosis's has its own address and its own checks: Monad's being right says nothing of Gnosis's", async () => {
+ ENV.monadRpcUrl = `https://monad-mainnet.g.alchemy.com/v2/${KEY}`;
+ ENV.gnosisRpcUrl = "";
+ node.chainId = "0x8f";
+ expect(await callMonadRpcOnce("eth_call", [])).toBe("0xabc");
+ expect((await thrown(callGnosisRpcOnce("eth_call", []))).message).toBe("Gnosis's node is not configured.");
+ // Monad's chain id answer is not kept for Gnosis, which asks for its own.
+ ENV.gnosisRpcUrl = `https://gnosis-mainnet.g.alchemy.com/v2/${KEY}`;
+ sent.length = 0;
+ expect((await thrown(callGnosisRpcOnce("eth_call", []))).message).toBe("Gnosis's node did not answer as Gnosis.");
+ expect(methods()).toEqual(["eth_chainId"]);
+ });
+
it("each has its own address and its own checks: Base's being right says nothing of Ethereum's", async () => {
ENV.baseRpcUrl = `https://base-mainnet.g.alchemy.com/v2/${KEY}`;
diff --git a/apps/nooscape-relay/server/claimsPinned.ts b/apps/nooscape-relay/server/claimsPinned.ts
index a206a38..fe32a2c 100644
--- a/apps/nooscape-relay/server/claimsPinned.ts
+++ b/apps/nooscape-relay/server/claimsPinned.ts
@@ -1,10 +1,10 @@
import { makeClaimNode } from "./claimsNode";
-import { BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type PinnedErc8004Chain } from "./ingestion/erc8004Chains";
+import { BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type PinnedErc8004Chain } from "./ingestion/erc8004Chains";
import { resolveRpcUrl } from "./ingestion/erc8004Rpc";
/**
- * One read on Base's node, one on Ethereum's and one on Monad's for the claim flow (docs/base-ethereum-claims-2026-10-28.md, docs/monad-claims-2026-11-01.md): the endpoint the chain's
- * identity pass reads, `BASE_RPC_URL` (Alchemy), `ETH_RPC_URL` (NodeReal) and `MONAD_RPC_URL` (Alchemy). The checks they are held to (answering as the chain, being
+ * One read on Base's node, one on Ethereum's, one on Monad's and one on Gnosis's for the claim flow (docs/base-ethereum-claims-2026-10-28.md, docs/monad-claims-2026-11-01.md,
+ * docs/gnosis-claims-2026-11-06.md): the endpoint the chain's identity pass reads, `BASE_RPC_URL` (Alchemy), `ETH_RPC_URL` (NodeReal), `MONAD_RPC_URL` (Alchemy) and `GNOSIS_RPC_URL` (Alchemy). The checks they are held to (answering as the chain, being
* at the head), the one attempt and the gas limits are claimsNode.ts's, shared with Arc.
*
* Each address is read as the pass reads it: it must be set, an https address with no userinfo, and its host must be exactly the host
@@ -33,6 +33,7 @@ const pinnedNode = (chain: PinnedErc8004Chain, name: string) =>
const baseNode = pinnedNode(BASE_CHAIN, "Base");
const ethereumNode = pinnedNode(ETHEREUM_CHAIN, "Ethereum");
const monadNode = pinnedNode(MONAD_CHAIN, "Monad");
+const gnosisNode = pinnedNode(GNOSIS_CHAIN, "Gnosis");
/** One JSON-RPC call on Base's node: its result, or the client's own failure. Throws, in fixed words, when the node is not configured, does not answer as Base or is behind. */
export const callBaseRpcOnce = baseNode.call;
@@ -40,10 +41,13 @@ export const callBaseRpcOnce = baseNode.call;
export const callEthereumRpcOnce = ethereumNode.call;
/** One JSON-RPC call on Monad's node, as above. */
export const callMonadRpcOnce = monadNode.call;
+/** One JSON-RPC call on Gnosis's node, as above. */
+export const callGnosisRpcOnce = gnosisNode.call;
/** Forgets what was checked on every node, for a test. */
export function forgetCheckedPinnedNodes(): void {
baseNode.forget();
ethereumNode.forget();
monadNode.forget();
+ gnosisNode.forget();
}
diff --git a/apps/nooscape-relay/server/clientRoutes.test.ts b/apps/nooscape-relay/server/clientRoutes.test.ts
index 075109e..ef590a8 100644
--- a/apps/nooscape-relay/server/clientRoutes.test.ts
+++ b/apps/nooscape-relay/server/clientRoutes.test.ts
@@ -76,6 +76,25 @@ describe("isClientRoutePath", () => {
expect(isClientRoutePath("/chains/ethereum", "chain_monad")).toBe(false);
});
+ it("serves Gnosis's page and its census report only while its own switch is on, and no other chain's switch opens them", () => {
+ expect(isClientRoutePath("/field/gnosis-registry-2026-11-06", undefined)).toBe(false);
+ expect(isClientRoutePath("/field/gnosis-registry-2026-11-06", "chain_arc,chain_base,chain_ethereum,chain_monad")).toBe(false);
+ expect(isClientRoutePath("/field/gnosis-registry-2026-11-06", "chain_gnosis")).toBe(true);
+ expect(isClientRoutePath("/field/gnosis-registry-2026-11-06/", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/field/monad-registry-2026-11-01", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/chains/gnosis", undefined)).toBe(false);
+ expect(isClientRoutePath("/chains/gnosis", "chain_arc,chain_base,chain_ethereum,chain_monad")).toBe(false);
+ expect(isClientRoutePath("/chains/gnosis", "chain_gnosis")).toBe(true);
+ expect(isClientRoutePath("/chains/gnosis", "chain_base,chain_ethereum,chain_arc,chain_monad,chain_gnosis")).toBe(true);
+ expect(isClientRoutePath("/chains/gnosis/", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/chains/Gnosis", "chain_gnosis")).toBe(false);
+ // Its switch opens no other chain's page.
+ expect(isClientRoutePath("/chains/arc", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/chains/base", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/chains/ethereum", "chain_gnosis")).toBe(false);
+ expect(isClientRoutePath("/chains/monad", "chain_gnosis")).toBe(false);
+ });
+
it("serves Base's page and its census report only while its switch is on", () => {
expect(isClientRoutePath("/chains/base", undefined)).toBe(false);
expect(isClientRoutePath("/chains/base", "chain_arc,chain_ethereum")).toBe(false);
diff --git a/apps/nooscape-relay/server/clientRoutes.ts b/apps/nooscape-relay/server/clientRoutes.ts
index ac93145..f91df41 100644
--- a/apps/nooscape-relay/server/clientRoutes.ts
+++ b/apps/nooscape-relay/server/clientRoutes.ts
@@ -48,7 +48,7 @@ export const EXACT_CLIENT_ROUTES = [
/**
* The routes behind a switch, by the feature that turns each on. A feature that is a section of a page and not a route (`claims`) has none,
- * Arc's page and its census report are behind `chain_arc`, Base's page and its census report are behind `chain_base`, Ethereum's page and its census report are behind `chain_ethereum`, and Monad's page (it has no census report yet) is behind `chain_monad`.
+ * Arc's page and its census report are behind `chain_arc`, Base's page and its census report are behind `chain_base`, Ethereum's page and its census report are behind `chain_ethereum`, Monad's page and its census report are behind `chain_monad`, and Gnosis's page and its census report are behind `chain_gnosis`.
*/
export const FLAGGED_CLIENT_ROUTES: Partial> = {
watch: ["/watch"],
@@ -57,6 +57,7 @@ export const FLAGGED_CLIENT_ROUTES: Partial>
chain_base: ["/chains/base", "/field/base-registry-2026-10-21"],
chain_ethereum: ["/chains/ethereum", "/field/ethereum-registry-2026-10-28"],
chain_monad: ["/chains/monad", "/field/monad-registry-2026-11-01"],
+ chain_gnosis: ["/chains/gnosis", "/field/gnosis-registry-2026-11-06"],
};
export function isClientRoutePath(pathname: string, features: string | undefined = process.env.VITE_FEATURES): boolean {
diff --git a/apps/nooscape-relay/server/db.ts b/apps/nooscape-relay/server/db.ts
index 6d8cc4d..29a9884 100644
--- a/apps/nooscape-relay/server/db.ts
+++ b/apps/nooscape-relay/server/db.ts
@@ -48,6 +48,7 @@ import { currentBnbSourceNote } from "./bscSourceNote";
import { BSC_NOT_CHECKED, registrationReadOf, type BscRegistrationRead } from "./bscRegistrationRead";
import { nameableRecord, overlayResolvedNames, ROBINHOOD_SOURCE_KEY, type ResolvedName } from "./robinhoodNamesCore";
import { publicDisplayName, sanitizePrimaryCapability, sanitizePublicText } from "./publicText";
+import { partyHostOf } from "./partyHost";
import type { ValidatedPublisherKeyProof } from "./publisherVerification";
import { buildArrivals, ARRIVALS_NEWEST_PER_CHAIN, ARRIVALS_WINDOW_HOURS, type Arrivals } from "@shared/arrivals";
import { balancedNewest } from "@shared/balancedNewest";
@@ -326,7 +327,7 @@ export async function getLatestCensusObservation() {
/**
* Upper bound on how many observations of one run the operator review tooling
- * will list and batch-verify. Current intake ceilings (Agenstry 96, Metaplex
+ * will list and batch-verify. Current intake ceilings (Agenstry 128, Metaplex
* accepted 192) must stay at or below this so every retained observation of a
* reviewed run can be hash- and governance-checked before projection.
*/
@@ -2941,7 +2942,7 @@ export async function getDirectoryEntryForClaim(id: string) {
}
/** How many entries the directory lists for one registering wallet on one protocol, under the public visibility rule. The fleet rule of the claim flow reads it. */
-export async function countVisibleEntriesOfRegistrant(protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad", registrant: string): Promise {
+export async function countVisibleEntriesOfRegistrant(protocol: "erc8004" | "erc8004_bsc" | "erc8004_arc" | "erc8004_base" | "erc8004_eth" | "erc8004_monad" | "erc8004_gnosis", registrant: string): Promise {
const db = requireDb(await getDb());
const [row] = await db
.select({ total: sql`count(*)` })
@@ -3233,12 +3234,14 @@ export async function persistCatalogObservation(input: {
runId: string;
observation: RawObservationInput;
candidate: CatalogNormalizedCandidate;
+ /** The parser that read the record; the Agenstry feed's unless the caller names its own. */
+ parserVersion?: string;
}) {
return persistSourceScopedAgentObservation({
source: input.source,
runId: input.runId,
protocol: "catalog",
- parserVersion: "agenstry-catalog-v2-source-scoped",
+ parserVersion: input.parserVersion ?? "agenstry-catalog-v2-source-scoped",
observation: input.observation,
candidate: {
displayName: input.candidate.displayName,
@@ -3249,6 +3252,8 @@ export async function persistCatalogObservation(input: {
// can support a future merge review but never takes over a direct identity.
identityType: "catalog_record",
externalId: `${input.source.id}:${input.candidate.externalRecordId}`,
+ // No endpoint row, on purpose; the host of the card is kept on the snapshot for the cross-source rule of the registry runs.
+ partyHost: partyHostOf(input.candidate.agentCardUrl) ?? partyHostOf(input.candidate.endpointUrl),
protocols: ["catalog"],
eventType: "CATALOG_AGENT_METADATA_OBSERVED",
eventDescription: `Agent metadata observed in approved catalog ${input.source.label}; catalog verification signals remain assertions.`,
@@ -3377,6 +3382,8 @@ type SourceScopedCandidate = {
protocols: string[];
endpointUrl?: string | null;
authentication?: string | null;
+ /** The host a catalog entry's card is served from; see `agentPublicSnapshots.partyHost`. */
+ partyHost?: string | null;
eventType: string;
eventDescription: string;
};
@@ -3535,6 +3542,7 @@ export async function persistSourceScopedAgentObservation(input: {
evidenceTier: "tier_2",
sourceCount: 1,
observedAt: input.observation.observedAt,
+ partyHost: input.candidate.partyHost ?? null,
})
.onDuplicateKeyUpdate({
set: {
@@ -3543,6 +3551,8 @@ export async function persistSourceScopedAgentObservation(input: {
untrustedSelfDescription: input.candidate.summary,
protocols: JSON.stringify(input.candidate.protocols),
observedAt: input.observation.observedAt,
+ // A record seen again gets its host if it had none; a candidate that names none leaves what is there.
+ ...(input.candidate.partyHost ? { partyHost: input.candidate.partyHost } : {}),
},
});
@@ -3846,6 +3856,34 @@ export async function isAgentPubliclyVisible(agentId: string): Promise
return !withdrawn.some(id => id.trimEnd().toLowerCase() === key);
}
+/**
+ * The addresses the records that are public today from sources other than `sourceId` are held at, by the same gate as every public read
+ * (an active source, a public decision, the approved run) and without the records an operator withdrew. A record with an endpoint row gives
+ * that address. A catalog record has none, on purpose, so it gives the host its card is served from (its snapshot's `partyHost`) as
+ * `https://host/`. A registry adapter reads this before it picks records, so a party that already holds a reviewed record from another
+ * source is not taken a second time. Read from the endpoint rows alone, the rule saw nothing between catalog sources
+ * (docs/catalog-party-rule-2026-11-07.md).
+ */
+export async function listReviewedAddressesOfOtherSources(sourceId: string): Promise {
+ const db = requireDb(await getDb());
+ const rows = await db
+ .select({ agentId: agentPublicSnapshots.agentId, endpointUrl: agentEndpoints.endpointUrl, partyHost: agentPublicSnapshots.partyHost })
+ .from(agentPublicSnapshots)
+ .innerJoin(sourceProjectionDecisions, publicDecisionJoinCondition())
+ .innerJoin(sourceObservationRuns, approvedRunJoinCondition())
+ .innerJoin(ingestionSources, activeSourceJoinCondition())
+ .leftJoin(agentEndpoints, eq(agentEndpoints.agentId, agentPublicSnapshots.agentId))
+ .where(notInArray(agentPublicSnapshots.sourceId, [sourceId]));
+ const withdrawn = new Set((await listActiveWithdrawnAgentIds()).map(id => id.trimEnd().toLowerCase()));
+ const addresses = new Set();
+ for (const row of rows) {
+ if (withdrawn.has(row.agentId.trimEnd().toLowerCase())) continue;
+ if (row.endpointUrl) addresses.add(row.endpointUrl);
+ if (row.partyHost) addresses.add(`https://${row.partyHost}/`);
+ }
+ return Array.from(addresses);
+}
+
/** Append-only withdrawal ledger in event order (oldest first). */
export async function listRecordWithdrawalEvents() {
const db = requireDb(await getDb());
diff --git a/apps/nooscape-relay/server/dbMigrations.ts b/apps/nooscape-relay/server/dbMigrations.ts
index 50262e4..0319b5b 100644
--- a/apps/nooscape-relay/server/dbMigrations.ts
+++ b/apps/nooscape-relay/server/dbMigrations.ts
@@ -39,8 +39,9 @@ const BASELINE_VERSION = 14;
* 49: drops `ingestion_worker_config`.`tickSeconds`, which the operator console set and nothing read (docs/worker-operations.md). The code no longer names it and runs the same with or without the column, so the operator runs this when it suits.
* 51: the `solana_agenc` protocol value on the four tables that carry the protocol list, for the AgenC registry pass (docs/agenc-solana-2026-10-26.md, "The migration (0051) is run by hand"). It restates the whole list, which ends with the 0046 values, so it needs 0046 first.
* 53: the `erc8004_monad` protocol value on the four tables that carry the protocol list, for the Monad identity pass (docs/monad-erc8004-2026-11-01.md, "The migration (0053) is run by hand"). It restates the whole list, which ends with the 0046 and 0051 values, so it needs both first.
+ * 57: the `erc8004_gnosis` protocol value on the four tables that carry the protocol list, for the Gnosis identity pass (docs/gnosis-erc8004-2026-11-06.md, "The migration (0057) is run by hand"). It restates the whole list, which ends with the 0046, 0051 and 0053 values, so it needs all three first.
*/
-export const MANUAL_MIGRATIONS: readonly number[] = [36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 49, 51, 53];
+export const MANUAL_MIGRATIONS: readonly number[] = [36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 49, 51, 53, 57];
/**
* Versions an operator recorded by hand under a name other than their file's, and left so. The runner counts a recorded version as applied and
diff --git a/apps/nooscape-relay/server/extraChains.test.ts b/apps/nooscape-relay/server/extraChains.test.ts
index a1811a4..9e5d864 100644
--- a/apps/nooscape-relay/server/extraChains.test.ts
+++ b/apps/nooscape-relay/server/extraChains.test.ts
@@ -43,7 +43,7 @@ describe("the extra chains' model", () => {
expect(EXTRA_CHAIN_SWITCH[key]).toBe(chain.feature);
expect(FEATURES).toContain(chain.feature);
}
- expect(EXTRA_CHAIN_LABEL).toEqual({ ethereum: "Ethereum", base: "Base", arc: "Arc", monad: "Monad" });
+ expect(EXTRA_CHAIN_LABEL).toEqual({ ethereum: "Ethereum", base: "Base", arc: "Arc", monad: "Monad", gnosis: "Gnosis" });
});
it("leaves BNB Chain, the chain of the pass with no switch, where it was", () => {
@@ -81,15 +81,16 @@ describe("the extra chains' model", () => {
});
it("names the protocols to leave out of every public read: those of the chains whose switch is off", () => {
- expect(protocolsOfChainsOff(undefined).sort()).toEqual(["erc8004_arc", "erc8004_base", "erc8004_eth", "erc8004_monad"]);
+ expect(protocolsOfChainsOff(undefined).sort()).toEqual(["erc8004_arc", "erc8004_base", "erc8004_eth", "erc8004_gnosis", "erc8004_monad"]);
expect(protocolsOfChainsOff("claims")).toEqual(protocolsOfChainsOff(undefined));
- expect(protocolsOfChainsOff("chain_base").sort()).toEqual(["erc8004_arc", "erc8004_eth", "erc8004_monad"]);
- expect(protocolsOfChainsOff("chain_ethereum,chain_base,chain_arc")).toEqual(["erc8004_monad"]);
- expect(protocolsOfChainsOff("chain_ethereum,chain_base,chain_arc,chain_monad")).toEqual([]);
+ expect(protocolsOfChainsOff("chain_base").sort()).toEqual(["erc8004_arc", "erc8004_eth", "erc8004_gnosis", "erc8004_monad"]);
+ expect(protocolsOfChainsOff("chain_ethereum,chain_base,chain_arc")).toEqual(["erc8004_monad", "erc8004_gnosis"]);
+ expect(protocolsOfChainsOff("chain_ethereum,chain_base,chain_arc,chain_monad")).toEqual(["erc8004_gnosis"]);
+ expect(protocolsOfChainsOff("chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis")).toEqual([]);
});
it("names every listed chain", () => {
- expect([...CHAINS, ...EXTRA_CHAINS].map(listedChainLabel)).toEqual(["Robinhood Chain", "Solana", "BNB Chain", "Ethereum", "Base", "Arc", "Monad"]);
+ expect([...CHAINS, ...EXTRA_CHAINS].map(listedChainLabel)).toEqual(["Robinhood Chain", "Solana", "BNB Chain", "Ethereum", "Base", "Arc", "Monad", "Gnosis"]);
});
});
diff --git a/apps/nooscape-relay/server/features.test.ts b/apps/nooscape-relay/server/features.test.ts
index 006d63f..44fb23e 100644
--- a/apps/nooscape-relay/server/features.test.ts
+++ b/apps/nooscape-relay/server/features.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
-import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, FEATURES, featureOn, monadClaimsOn } from "@shared/features";
+import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, FEATURES, featureOn, gnosisClaimsOn, monadClaimsOn } from "@shared/features";
/**
* The switches behind which the Your Watch and Patrols scaffolds stay off. Off is the default: nothing is on unless
@@ -28,8 +28,8 @@ describe("featureOn", () => {
expect(featureOn("watch", "unwatch,patrols")).toBe(false);
});
- it("names exactly the two scaffolds, the claim panel, one switch for each extra chain and a claims switch for each of Arc, Base, Ethereum and Monad", () => {
- expect([...FEATURES]).toEqual(["watch", "patrols", "claims", "chain_base", "chain_ethereum", "chain_arc", "claims_arc", "claims_base", "claims_ethereum", "chain_monad", "claims_monad"]);
+ it("names exactly the two scaffolds, the claim panel, one switch for each extra chain and a claims switch for each of Arc, Base, Ethereum, Monad and Gnosis", () => {
+ expect([...FEATURES]).toEqual(["watch", "patrols", "claims", "chain_base", "chain_ethereum", "chain_arc", "claims_arc", "claims_base", "claims_ethereum", "chain_monad", "claims_monad", "chain_gnosis", "claims_gnosis"]);
expect(featureOn("claims", "claims")).toBe(true);
expect(featureOn("claims", "watch,patrols")).toBe(false);
expect(featureOn("claims", "claimsx")).toBe(false);
@@ -63,9 +63,10 @@ describe("arcClaimsOn", () => {
});
describe.each([
- { label: "baseClaimsOn", on: baseClaimsOn, chain: "chain_base", claims: "claims_base", other: "chain_ethereum,claims_ethereum,chain_arc,claims_arc,chain_monad,claims_monad" },
- { label: "ethereumClaimsOn", on: ethereumClaimsOn, chain: "chain_ethereum", claims: "claims_ethereum", other: "chain_base,claims_base,chain_arc,claims_arc,chain_monad,claims_monad" },
- { label: "monadClaimsOn", on: monadClaimsOn, chain: "chain_monad", claims: "claims_monad", other: "chain_base,claims_base,chain_ethereum,claims_ethereum,chain_arc,claims_arc" },
+ { label: "baseClaimsOn", on: baseClaimsOn, chain: "chain_base", claims: "claims_base", other: "chain_ethereum,claims_ethereum,chain_arc,claims_arc,chain_monad,claims_monad,chain_gnosis,claims_gnosis" },
+ { label: "ethereumClaimsOn", on: ethereumClaimsOn, chain: "chain_ethereum", claims: "claims_ethereum", other: "chain_base,claims_base,chain_arc,claims_arc,chain_monad,claims_monad,chain_gnosis,claims_gnosis" },
+ { label: "monadClaimsOn", on: monadClaimsOn, chain: "chain_monad", claims: "claims_monad", other: "chain_base,claims_base,chain_ethereum,claims_ethereum,chain_arc,claims_arc,chain_gnosis,claims_gnosis" },
+ { label: "gnosisClaimsOn", on: gnosisClaimsOn, chain: "chain_gnosis", claims: "claims_gnosis", other: "chain_base,claims_base,chain_ethereum,claims_ethereum,chain_arc,claims_arc,chain_monad,claims_monad" },
])("$label", ({ on, chain, claims, other }) => {
it("is on only while the chain itself is on and its claims are switched on, each named in the list", () => {
expect(on(`${chain},${claims}`)).toBe(true);
diff --git a/apps/nooscape-relay/server/gnosisProtocolMigration.integration.test.ts b/apps/nooscape-relay/server/gnosisProtocolMigration.integration.test.ts
new file mode 100644
index 0000000..5f5e6f5
--- /dev/null
+++ b/apps/nooscape-relay/server/gnosisProtocolMigration.integration.test.ts
@@ -0,0 +1,148 @@
+import { createConnection, type Connection } from "mysql2/promise";
+import { readFile } from "node:fs/promises";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+import { applyPendingMigrations, collectMigrationFiles, splitMigrationStatements } from "./dbMigrations";
+
+/**
+ * Database-backed test of migration 0057, the `erc8004_gnosis` protocol value (docs/gnosis-erc8004-2026-11-06.md). It shows what the file is for:
+ * on a database built the way boot builds it (which skips the manual migrations, and the test then applies 0046, 0051 and 0053 as production has them)
+ * a source for the Gnosis registry is refused, and after the file is pasted, twice, the value is accepted and nothing else moved. It also tries the
+ * rollback the doc gives the owner, which the database must refuse while a row holds the value. The whole file skips when no database is reachable,
+ * so the standard no-DB gate stays green.
+ */
+const TEST_DB = "nooscape_gnosis_protocol_test";
+const BASE_URL = process.env.GATE_TEST_DATABASE_URL ?? "mysql://root:nooscape@127.0.0.1:3307";
+const TABLES = ["agent_directory_entries", "agent_directory_registry_rows", "ingestion_sources", "source_observations"];
+const EARLIER = "'a2a','anp','agntcy','erc8004','erc8004_reputation','catalog','census','solana_registry','solana_8004','usdg_settlement','solana_said','erc8004_bsc','erc8004_base','erc8004_eth','erc8004_arc','solana_agenc','erc8004_monad'";
+
+const dbReachable = await (async () => {
+ try {
+ const probe = await createConnection(BASE_URL + "/mysql");
+ await probe.end();
+ return true;
+ } catch {
+ return false;
+ }
+})();
+
+describe.skipIf(!dbReachable)("migration 0057: the erc8004_gnosis protocol value", { timeout: 120_000 }, () => {
+ let conn: Connection;
+ let migration: string[];
+ let userId: number;
+
+ const quoted = (name: string) => "`" + name + "`";
+
+ async function columnTypes(): Promise> {
+ const [rows] = (await conn.query(
+ "SELECT TABLE_NAME AS t, COLUMN_TYPE AS c FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = ? AND COLUMN_NAME = 'protocol' AND TABLE_NAME IN (?)",
+ [TEST_DB, TABLES]
+ )) as unknown as [Array<{ t: string; c: string }>];
+ return Object.fromEntries(rows.map(row => [row.t, row.c]));
+ }
+
+ async function paste() {
+ for (const statement of migration) await conn.query(statement);
+ }
+
+ async function insertSource(id: string) {
+ await conn.query(
+ "INSERT INTO ingestion_sources (id, sourceKey, label, protocol, rootUrl, allowedHostname, state, executionPolicy, scheduleMinutes, createdByUserId) VALUES (?, ?, 'test', 'erc8004_gnosis', 'https://rpc.example', 'rpc.example', 'review', 'manual_only', 1440, ?)",
+ [id, "gnosis-" + id, userId]
+ );
+ }
+
+ beforeAll(async () => {
+ const admin = await createConnection(BASE_URL + "/mysql");
+ await admin.query("DROP DATABASE IF EXISTS " + quoted(TEST_DB));
+ await admin.query("CREATE DATABASE " + quoted(TEST_DB));
+ await admin.end();
+ const url = BASE_URL + "/" + TEST_DB;
+ conn = await createConnection(url);
+
+ // Versions 0000-0014 are applied by hand in production; replay them here as the gate test does.
+ const files = await collectMigrationFiles("drizzle");
+ for (const file of files.filter(f => f.version <= 14)) {
+ for (const statement of splitMigrationStatements(await readFile(file.file, "utf8"))) await conn.query(statement);
+ }
+ // The boot runner skips every manual migration, 0057 among them. 0046, 0051 and 0053 are applied by hand, in that order and as production has them,
+ // because the file restates their list.
+ await applyPendingMigrations(url, "drizzle");
+ for (const version of [46, 51, 53]) {
+ const earlier = files.find(f => f.version === version);
+ expect(earlier, String(version)).toBeDefined();
+ for (const statement of splitMigrationStatements(await readFile(earlier!.file, "utf8"))) await conn.query(statement);
+ }
+
+ const file = files.find(f => f.version === 57);
+ expect(file).toBeDefined();
+ migration = splitMigrationStatements(await readFile(file!.file, "utf8"));
+ expect(migration).toHaveLength(4);
+
+ await conn.query("INSERT INTO users (openId, name, role) VALUES ('gnosis-migration-test', 'gnosis', 'admin')");
+ const [[user]] = (await conn.query("SELECT id FROM users WHERE openId = 'gnosis-migration-test'")) as unknown as [[{ id: number }]];
+ userId = user.id;
+ });
+
+ afterAll(async () => {
+ await conn?.end();
+ const admin = await createConnection(BASE_URL + "/mysql");
+ await admin.query("DROP DATABASE IF EXISTS " + quoted(TEST_DB));
+ await admin.end();
+ });
+
+ it("is what lets the Gnosis source in: on a database built by boot, a source for the protocol is refused", async () => {
+ // Before the file the value is not in the list, so the lists end where 0053 left them.
+ for (const type of Object.values(await columnTypes())) expect(type).toBe("enum(" + EARLIER + ")");
+ let threw = false;
+ try {
+ await insertSource("refused");
+ } catch {
+ threw = true;
+ }
+ const [rows] = (await conn.query("SELECT protocol FROM ingestion_sources WHERE id = 'refused'")) as unknown as [Array<{ protocol: string }>];
+ // A strict server refuses the row; a lax one stores the empty value. Either way the value is not stored.
+ expect(threw || rows[0]?.protocol === "").toBe(true);
+ await conn.query("DELETE FROM ingestion_sources WHERE id = 'refused'");
+ });
+
+ it("appends the value, last and in order, to the list on all four tables, and is a no-op when pasted a second time", async () => {
+ await paste();
+ const first = await columnTypes();
+ expect(Object.keys(first).sort()).toEqual([...TABLES].sort());
+ for (const type of Object.values(first)) expect(type).toBe("enum(" + EARLIER + ",'erc8004_gnosis')");
+ await paste();
+ expect(await columnTypes()).toEqual(first);
+ });
+
+ it("accepts a source for the protocol and a directory entry under it, and keeps every earlier value", async () => {
+ await insertSource("gnosis-one");
+ await conn.query("INSERT INTO agent_directory_entries (id, sourceId, externalKey, displayName, protocol) VALUES ('entry-1', 'gnosis-one', ?, 'Agent #1', 'erc8004_gnosis')", ["eip155:100:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432:1"]);
+ const [rows] = (await conn.query("SELECT protocol FROM agent_directory_entries WHERE id = 'entry-1'")) as unknown as [Array<{ protocol: string }>];
+ expect(rows[0]?.protocol).toBe("erc8004_gnosis");
+ // An earlier value still works, the last one before it among them: the file renumbered nothing.
+ for (const [id, value] of [["entry-2", "erc8004_monad"], ["entry-3", "solana_agenc"]] as const) {
+ await conn.query("INSERT INTO agent_directory_entries (id, sourceId, externalKey, displayName, protocol) VALUES (?, 'gnosis-one', ?, 'x', ?)", [id, "k-" + id, value]);
+ const [kept] = (await conn.query("SELECT protocol FROM agent_directory_entries WHERE id = ?", [id])) as unknown as [Array<{ protocol: string }>];
+ expect(kept[0]?.protocol).toBe(value);
+ }
+ });
+
+ it("cannot be rolled back while a row holds the value, and can once none does", async () => {
+ const rollback = TABLES.map(table => "ALTER TABLE " + quoted(table) + " MODIFY COLUMN `protocol` enum(" + EARLIER + ") NOT NULL");
+ // The entry and the source from the test above hold the value: the database refuses to drop it, as the doc warns.
+ let refused = false;
+ try {
+ for (const statement of rollback) await conn.query(statement);
+ } catch {
+ refused = true;
+ }
+ expect(refused).toBe(true);
+ await conn.query("DELETE FROM agent_directory_entries");
+ await conn.query("DELETE FROM ingestion_sources");
+ for (const statement of rollback) await conn.query(statement);
+ for (const type of Object.values(await columnTypes())) expect(type).toBe("enum(" + EARLIER + ")");
+ // And the file puts it back.
+ await paste();
+ for (const type of Object.values(await columnTypes())) expect(type).toBe("enum(" + EARLIER + ",'erc8004_gnosis')");
+ });
+});
diff --git a/apps/nooscape-relay/server/gnosisScheduledFlip.test.ts b/apps/nooscape-relay/server/gnosisScheduledFlip.test.ts
new file mode 100644
index 0000000..e417579
--- /dev/null
+++ b/apps/nooscape-relay/server/gnosisScheduledFlip.test.ts
@@ -0,0 +1,230 @@
+import { createConnection, type Connection } from "mysql2/promise";
+import { readFile } from "node:fs/promises";
+import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
+import { applyPendingMigrations, collectMigrationFiles, splitMigrationStatements } from "./dbMigrations";
+
+/**
+ * Database-backed test of migration 0058, the Gnosis identity registry scheduled flip.
+ * It runs against a throwaway local MySQL schema built with the project's own
+ * boot-time migration runner, and the whole file skips when no database is
+ * reachable so the standard no-DB gate stays green. The flip is a guarded UPDATE,
+ * so the guards are what is tested: it must change exactly one healthy, seeded,
+ * manual-only Gnosis identity source, and nothing else.
+ */
+const TEST_DB = "nooscape_gnosis_flip_test";
+const BASE_URL = process.env.GATE_TEST_DATABASE_URL ?? "mysql://root:nooscape@127.0.0.1:3307";
+
+const dbReachable = await (async () => {
+ try {
+ const probe = await createConnection(`${BASE_URL}/mysql`);
+ await probe.end();
+ return true;
+ } catch {
+ return false;
+ }
+})();
+
+const GNOSIS_KEY = "gnosis-erc8004-identity-registry";
+
+describe.skipIf(!dbReachable)("migration 0058: Gnosis identity registry scheduled flip", { timeout: 60_000 }, () => {
+ let conn: Connection;
+ let flipStatements: string[];
+ let userId: number;
+
+ beforeAll(async () => {
+ const admin = await createConnection(`${BASE_URL}/mysql`);
+ await admin.query(`DROP DATABASE IF EXISTS \`${TEST_DB}\``);
+ await admin.query(`CREATE DATABASE \`${TEST_DB}\``);
+ await admin.end();
+ const url = `${BASE_URL}/${TEST_DB}`;
+ conn = await createConnection(url);
+
+ // Versions 0000-0014 are applied by hand in production; replay them here as the gate test does.
+ const files = await collectMigrationFiles("drizzle");
+ for (const file of files.filter(f => f.version <= 14)) {
+ for (const statement of splitMigrationStatements(await readFile(file.file, "utf8"))) await conn.query(statement);
+ }
+ // The runner applies everything above the baseline, including 0058 (a no-op: no rows yet). It skips the manual 0046, 0051, 0053 and 0057, which
+ // add the extra chains', AgenC's, Monad's and Gnosis's protocol values, so they are applied by hand here in production's order, before any row
+ // names those values.
+ const applied = await applyPendingMigrations(url, "drizzle");
+ expect(applied.some(name => name.startsWith("0058_"))).toBe(true);
+ for (const version of [46, 51, 53, 57]) {
+ const manual = files.find(f => f.version === version);
+ expect(manual, `migration ${version}`).toBeDefined();
+ for (const statement of splitMigrationStatements(await readFile(manual!.file, "utf8"))) await conn.query(statement);
+ }
+
+ const flip = files.find(f => f.version === 58);
+ expect(flip).toBeDefined();
+ flipStatements = splitMigrationStatements(await readFile(flip!.file, "utf8"));
+ expect(flipStatements).toHaveLength(1);
+
+ await conn.query("INSERT INTO users (openId, name, role) VALUES ('flip-test', 'flip', 'admin')");
+ const [[user]] = (await conn.query("SELECT id FROM users WHERE openId = 'flip-test'")) as unknown as [[{ id: number }]];
+ userId = user.id;
+ });
+
+ afterAll(async () => {
+ await conn?.end();
+ const admin = await createConnection(`${BASE_URL}/mysql`);
+ await admin.query(`DROP DATABASE IF EXISTS \`${TEST_DB}\``);
+ await admin.end();
+ });
+
+ beforeEach(async () => {
+ await conn.query("DELETE FROM ingestion_sources");
+ });
+
+ type Overrides = Partial<{
+ sourceKey: string;
+ protocol: string;
+ state: string;
+ executionPolicy: string;
+ scheduleMinutes: number;
+ cursor: string | null;
+ lastSuccessfulAt: string | null;
+ failureCount: number;
+ nextRunAt: string | null;
+ }>;
+
+ // The seeded cadence is 60, not the 1440 the flip sets, so a test that expects 1440 shows the flip wrote it.
+ async function seed(id: string, overrides: Overrides = {}) {
+ const row = {
+ sourceKey: GNOSIS_KEY,
+ protocol: "erc8004_gnosis",
+ state: "active",
+ executionPolicy: "manual_only",
+ scheduleMinutes: 60,
+ cursor: "gnosis:49145439",
+ lastSuccessfulAt: "2026-11-06 21:12:00",
+ failureCount: 0,
+ nextRunAt: "2026-11-07 21:12:00",
+ ...overrides,
+ };
+ await conn.query(
+ "INSERT INTO ingestion_sources (id, sourceKey, label, protocol, rootUrl, allowedHostname, state, executionPolicy, scheduleMinutes, `cursor`, nextRunAt, lastSuccessfulAt, failureCount, createdByUserId) VALUES (?, ?, 'test', ?, 'https://gnosis-rpc.example', 'gnosis-rpc.example', ?, ?, ?, ?, ?, ?, ?, ?)",
+ [id, row.sourceKey, row.protocol, row.state, row.executionPolicy, row.scheduleMinutes, row.cursor, row.nextRunAt, row.lastSuccessfulAt, row.failureCount, userId]
+ );
+ }
+
+ async function runFlip() {
+ for (const statement of flipStatements) await conn.query(statement);
+ }
+
+ async function read(id: string) {
+ const [[row]] = (await conn.query(
+ "SELECT executionPolicy, scheduleMinutes, `cursor`, state, failureCount, TIMESTAMPDIFF(SECOND, nextRunAt, NOW()) AS secondsSinceNextRun FROM ingestion_sources WHERE id = ?",
+ [id]
+ )) as unknown as [[{ executionPolicy: string; scheduleMinutes: number; cursor: string | null; state: string; failureCount: number; secondsSinceNextRun: number }]];
+ return row;
+ }
+
+ it("flips a healthy, seeded, manual-only Gnosis source to a daily schedule, due now", async () => {
+ await seed("gnosis-ok");
+ await runFlip();
+ const row = await read("gnosis-ok");
+ expect(row.executionPolicy).toBe("scheduled");
+ expect(row.scheduleMinutes).toBe(1440);
+ // nextRunAt was set to NOW(): it is within a few seconds of the check, not a day away.
+ expect(Math.abs(row.secondsSinceNextRun)).toBeLessThan(30);
+ // The cursor, the state, and the failure count are not touched.
+ expect(row.cursor).toBe("gnosis:49145439");
+ expect(row.state).toBe("active");
+ expect(row.failureCount).toBe(0);
+ });
+
+ it("makes the source due now whatever time zone the session runs in", async () => {
+ // nextRunAt is a TIMESTAMP: NOW() is right in any session, UTC_TIMESTAMP() only in a UTC one (see migration 0031).
+ await conn.query("SET time_zone = '-05:00'");
+ try {
+ await seed("gnosis-zone");
+ await runFlip();
+ expect(Math.abs((await read("gnosis-zone")).secondsSinceNextRun)).toBeLessThan(30);
+ } finally {
+ await conn.query("SET time_zone = SYSTEM");
+ }
+ });
+
+ it("is a no-op the second time (re-running after a crash or reboot is safe)", async () => {
+ await seed("gnosis-twice");
+ await runFlip();
+ await conn.query("UPDATE ingestion_sources SET nextRunAt = '2030-01-01 00:00:00' WHERE id = 'gnosis-twice'");
+ await runFlip();
+ const [[row]] = (await conn.query("SELECT nextRunAt FROM ingestion_sources WHERE id = 'gnosis-twice'")) as unknown as [[{ nextRunAt: Date }]];
+ expect(new Date(row.nextRunAt).getUTCFullYear()).toBe(2030);
+ });
+
+ it("never wakes an unseeded source (no cursor, or another chain's cursor)", async () => {
+ await seed("gnosis-no-cursor", { cursor: null });
+ await runFlip();
+ expect((await read("gnosis-no-cursor")).executionPolicy).toBe("manual_only");
+ for (const cursor of ["bsc:48400000", "base:12345678", "arc:13400000", "eth:24340000", "monad:118363000"]) {
+ await conn.query("DELETE FROM ingestion_sources");
+ await seed("gnosis-foreign-cursor", { cursor });
+ await runFlip();
+ expect((await read("gnosis-foreign-cursor")).executionPolicy).toBe("manual_only");
+ }
+ });
+
+ it("leaves a paused, rejected, or in-review source alone", async () => {
+ for (const state of ["paused", "rejected", "review"]) {
+ await conn.query("DELETE FROM ingestion_sources");
+ await seed(`gnosis-${state}`, { state });
+ await runFlip();
+ expect((await read(`gnosis-${state}`)).executionPolicy).toBe("manual_only");
+ }
+ });
+
+ it("leaves a source with a recorded failure, or no recorded success, alone", async () => {
+ await seed("gnosis-failed", { failureCount: 1 });
+ await runFlip();
+ expect((await read("gnosis-failed")).executionPolicy).toBe("manual_only");
+ await conn.query("DELETE FROM ingestion_sources");
+ await seed("gnosis-never-succeeded", { lastSuccessfulAt: null });
+ await runFlip();
+ expect((await read("gnosis-never-succeeded")).executionPolicy).toBe("manual_only");
+ });
+
+ it("does not overwrite an operator's cadence on an already-scheduled source", async () => {
+ await seed("gnosis-tuned", { executionPolicy: "scheduled", scheduleMinutes: 720 });
+ await runFlip();
+ const row = await read("gnosis-tuned");
+ expect(row.executionPolicy).toBe("scheduled");
+ expect(row.scheduleMinutes).toBe(720);
+ });
+
+ it("flips only the approved source key, even for another Gnosis protocol row with a Gnosis cursor and a key close to it", async () => {
+ await seed("gnosis-other-key", { sourceKey: "gnosis-erc8004-other-registry" });
+ await runFlip();
+ expect((await read("gnosis-other-key")).executionPolicy).toBe("manual_only");
+ });
+
+ it("names no protocol, so it is safe at every boot, including on a database that has not had the by-hand migration 0057", () => {
+ // flipStatements holds the statement without the comments, which say that the protocol is not named.
+ expect(flipStatements.join("\n")).not.toMatch(/protocol|erc8004_/i);
+ });
+
+ it("touches no other source, even a healthy manual-only one with a valid cursor", async () => {
+ await seed("gnosis-ok");
+ await seed("other-bsc", { sourceKey: "bsc-erc8004-identity-registry", protocol: "erc8004_bsc", cursor: "bsc:48400000" });
+ await seed("other-base", { sourceKey: "base-erc8004-identity-registry", protocol: "erc8004_base", cursor: "base:12345678" });
+ await seed("other-arc", { sourceKey: "arc-erc8004-identity-registry", protocol: "erc8004_arc", cursor: "arc:13400000" });
+ await seed("other-eth", { sourceKey: "ethereum-erc8004-identity-registry", protocol: "erc8004_eth", cursor: "eth:24340000" });
+ await seed("other-monad", { sourceKey: "monad-erc8004-identity-registry", protocol: "erc8004_monad", cursor: "monad:118363000" });
+ await runFlip();
+ expect((await read("gnosis-ok")).executionPolicy).toBe("scheduled");
+ for (const id of ["other-bsc", "other-base", "other-arc", "other-eth", "other-monad"]) {
+ const row = await read(id);
+ expect(row.executionPolicy).toBe("manual_only");
+ expect(row.scheduleMinutes).toBe(60);
+ }
+ });
+});
+
+describe("the live check once the Gnosis pass is on the scheduler", () => {
+ it("expects the Gnosis pass to have succeeded within 36 hours, a day and the slack the other daily sources get", async () => {
+ const script = await readFile(new URL("../scripts/verify-live.mjs", import.meta.url), "utf8");
+ expect(script).toMatch(/\berc8004_gnosis:\s*36\b/);
+ });
+});
diff --git a/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.test.ts b/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.test.ts
new file mode 100644
index 0000000..8bd415a
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.test.ts
@@ -0,0 +1,590 @@
+import { createHash } from "node:crypto";
+import { afterEach, describe, expect, it, vi } from "vitest";
+import type { IngestionSource } from "../../drizzle/schema";
+
+/**
+ * The two A2A registry adapters: paged JSON, a selection rule each, one record per party, the oldest first up to the ceiling, and nothing
+ * read but the list endpoint. The records here are made up in the shape the registries serve (checked against a full read of both on
+ * 2026-11-06); the download and the storage are replaced.
+ */
+const mocks = vi.hoisted(() => ({
+ assertPublicHostname: vi.fn(async (_hostname: string) => undefined),
+ storagePut: vi.fn(async (key: string) => ({ key })),
+}));
+
+vi.mock("./a2a", async importOriginal => {
+ const original = await importOriginal();
+ return { ...original, assertPublicHostname: mocks.assertPublicHostname };
+});
+vi.mock("../storage", () => ({ storagePut: mocks.storagePut }));
+
+import { MAX_RUN_REVIEW_OBSERVATIONS } from "../db";
+import {
+ A2A_REGISTRY_MAX_ACCEPTED_RECORDS,
+ A2A_REGISTRY_PAUSE_MS,
+ A2A_REGISTRY_SOURCE_KEYS,
+ A2aRegistryValidationError,
+ a2aRegistryPolicy,
+ fetchA2aRegistryCatalog,
+ isA2aRegistrySourceKey,
+ registrableUnit,
+ unitsOfUrls,
+} from "./a2aRegistryCatalog";
+
+const COMMUNITY = "a2aregistry-public-api";
+const API = "a2a-registry-org-public-api";
+
+function registrySource(key: typeof COMMUNITY | typeof API, overrides: Partial = {}): IngestionSource {
+ const policy = a2aRegistryPolicy(key);
+ return {
+ id: `source-${key}`,
+ sourceKey: key,
+ label: "Registry",
+ protocol: "catalog",
+ rootUrl: policy.listUrl,
+ allowedHostname: new URL(policy.listUrl).hostname,
+ state: "active",
+ executionPolicy: "manual_only",
+ scheduleMinutes: 1440,
+ cursor: null,
+ nextRunAt: null,
+ lastSuccessfulAt: null,
+ failureCount: 0,
+ lastError: null,
+ createdByUserId: 1,
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ ...overrides,
+ };
+}
+
+/** A record as a2aregistry.org serves it: it qualifies unless an override breaks it. */
+const communityRecord = (n: number, overrides: Record = {}) => ({
+ id: `c-${n}`,
+ name: `Community Agent ${n}`,
+ description: `Agent ${n} does one thing.`,
+ author: `Author ${n}`,
+ wellKnownURI: `https://agent${n}.example/.well-known/agent-card.json`,
+ url: `https://agent${n}.example/a2a`,
+ provider: { organization: `Org ${n}`, url: `https://www.agent${n}.example/` },
+ protocolVersion: "0.3.0",
+ version: "1.0.0",
+ skills: "[]",
+ conformance: true,
+ conformance_errors: null,
+ created_at: new Date(Date.UTC(2026, 0, 1) + n * 60_000).toISOString(),
+ hidden: false,
+ flag_count: 0,
+ maintainer_notes: "internal note",
+ category: "research",
+ is_healthy: true,
+ last_health_check: "2026-11-06T23:10:12Z",
+ task_conformance: { category: "WORKING", passed: true },
+ ...overrides,
+});
+
+/** A record as api.a2a-registry.org serves it: it qualifies unless an override breaks it. */
+const apiRecord = (n: number, overrides: Record = {}) => ({
+ id: `a-${n}`,
+ orgId: `org-id-${n}`,
+ packageName: `pkg.agent${n}`,
+ displayName: `Registry Agent ${n}`,
+ description: `Agent ${n} does one thing.`,
+ category: "Finance",
+ manifestUrl: `https://agent${n}.test/.well-known/agent-card.json`,
+ protocolStd: "a2a",
+ visibility: "public",
+ is_claimed: true,
+ verification_level: "verified",
+ lastCheckStatus: "changed",
+ consecutiveFailures: 0,
+ createdAt: 1_790_000_000 + n,
+ status: "ACTIVE",
+ owner_org: `Org ${n}`,
+ owner_org_slug: `org-${n}`,
+ owner_org_website: `https://www.agent${n}.test/`,
+ is_spotlight: false,
+ is_promoted_top: false,
+ badge_label: null,
+ source_agent_card: JSON.stringify({ name: `Registry Agent ${n}` }),
+ config: "{}",
+ ...overrides,
+});
+
+function jsonResponse(payload: unknown, init: { status?: number; contentType?: string; contentLength?: number } = {}) {
+ const status = init.status ?? 200;
+ return {
+ ok: status < 400,
+ status,
+ headers: {
+ get: (name: string) => {
+ const key = name.toLowerCase();
+ if (key === "content-type") return init.contentType ?? "application/json";
+ if (key === "content-length" && init.contentLength !== undefined) return String(init.contentLength);
+ return null;
+ },
+ },
+ body: new Response(typeof payload === "string" ? payload : JSON.stringify(payload)).body,
+ } as unknown as Response;
+}
+
+/** The list a registry would serve, in pages of 100, for the page the URL asks for. */
+function listFetch(key: typeof COMMUNITY | typeof API, records: unknown[], reportedTotal = records.length) {
+ return vi.fn(async (url: string) => {
+ const query = new URL(url).searchParams;
+ const index = key === COMMUNITY ? Number(query.get("offset")) / 100 : Number(query.get("page")) - 1;
+ const agents = records.slice(index * 100, index * 100 + 100);
+ return jsonResponse(key === COMMUNITY ? { agents, total: reportedTotal, limit: 100, offset: index * 100 } : { success: true, agents, total: reportedTotal });
+ });
+}
+
+async function takenIds(key: typeof COMMUNITY | typeof API, records: unknown[], skipUnits?: ReadonlySet) {
+ vi.stubGlobal("fetch", listFetch(key, records));
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(key), { pause: async () => {}, skipUnits });
+ return snapshot.observations.map(entry => entry.candidate.externalRecordId);
+}
+
+afterEach(() => {
+ vi.unstubAllGlobals();
+ vi.useRealTimers();
+ vi.clearAllMocks();
+});
+
+describe("the party a host stands for", () => {
+ it("is the registrable domain, without www and trailing dots", () => {
+ expect(registrableUnit("www.Example.com.")).toBe("example.com");
+ expect(registrableUnit("a.b.example.org")).toBe("example.org");
+ expect(registrableUnit("agent.example.co.uk")).toBe("example.co.uk");
+ expect(registrableUnit("example.co.uk")).toBe("example.co.uk");
+ });
+
+ it("is the whole host on a hosting platform, so one tenant is one party and another tenant is another", () => {
+ expect(registrableUnit("beggar-bot.beggarbot.workers.dev")).toBe("beggar-bot.beggarbot.workers.dev");
+ expect(registrableUnit("other-worker.beggarbot.workers.dev")).toBe("other-worker.beggarbot.workers.dev");
+ expect(registrableUnit("my-app.vercel.app")).toBe("my-app.vercel.app");
+ // The same tenant with and without www is one party.
+ expect(registrableUnit("www.my-app.vercel.app")).toBe("my-app.vercel.app");
+ expect(registrableUnit("user.github.io")).toBe("user.github.io");
+ expect(registrableUnit("svc-abc-uc.a.run.app")).toBe("svc-abc-uc.a.run.app");
+ expect(registrableUnit("tenant.tcloudbaseapp.com")).toBe("tenant.tcloudbaseapp.com");
+ });
+
+ it("is nothing for an address that is not a DNS name", () => {
+ expect(registrableUnit("203.0.113.5")).toBeNull();
+ expect(registrableUnit("[::1]")).toBeNull();
+ expect(registrableUnit("localhost")).toBeNull();
+ });
+
+ it("collects the units of the addresses a reviewed record already holds and skips what is not an address", () => {
+ expect(Array.from(unitsOfUrls(["https://www.one.example.org/x", "https://a.two.example.com/", "not a url", "https://t.workers.dev/"])).sort()).toEqual(
+ ["example.com", "example.org", "t.workers.dev"].sort()
+ );
+ });
+});
+
+describe("a2aregistry.org: which records qualify", () => {
+ it("takes a record that is visible, unflagged, conformant, healthy and passing the task probe, and maps it", async () => {
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [communityRecord(1)]));
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause: async () => {} });
+
+ expect(snapshot.discoveredCount).toBe(1);
+ expect(snapshot.rejectedCount).toBe(0);
+ expect(snapshot.observations).toHaveLength(1);
+ const { candidate } = snapshot.observations[0]!;
+ expect(candidate).toMatchObject({
+ displayName: "Community Agent 1",
+ summary: "Agent 1 does one thing.",
+ primaryCapability: "research",
+ specialties: ["research"],
+ agentCardUrl: "https://agent1.example/.well-known/agent-card.json",
+ // The provider's own site when the record names one, not the service address.
+ endpointUrl: "https://www.agent1.example/",
+ authentication: null,
+ externalRecordId: "c-1",
+ catalogSignals: [
+ "registry-reported conformance check: passed",
+ "registry-reported health check: healthy",
+ "registry-reported task probe: working",
+ ],
+ });
+ expect(candidate.handle).toMatch(/^community-agent-1-[0-9a-f]{10}$/);
+ });
+
+ it("uses the card address as the endpoint when the record names no provider site", async () => {
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [communityRecord(1, { provider: null })]));
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause: async () => {} });
+
+ expect(snapshot.observations[0]!.candidate.endpointUrl).toBe("https://agent1.example/.well-known/agent-card.json");
+ });
+
+ it.each([
+ ["hidden", { hidden: true }],
+ ["flagged", { flag_count: 1 }],
+ ["flag count missing", { flag_count: undefined }],
+ ["failed the conformance check", { conformance: false }],
+ ["not healthy", { is_healthy: false }],
+ ["task probe not working", { task_conformance: { category: "FAILED", passed: false } }],
+ ["no task probe", { task_conformance: null }],
+ ["card address not https", { wellKnownURI: "http://agent1.example/.well-known/agent-card.json" }],
+ ["service address with a port", { url: "https://agent1.example:8443/a2a" }],
+ ["service address with credentials", { url: "https://user:pw@agent1.example/a2a" }],
+ ["service address missing", { url: null }],
+ ["no name", { name: " " }],
+ ["card served by the registry itself", { wellKnownURI: "https://a2aregistry.org/agents/1/agent-card.json" }],
+ ["card on an address, not a name", { wellKnownURI: "https://203.0.113.5/.well-known/agent-card.json" }],
+ ])("leaves out a record that is %s", async (_label, overrides) => {
+ expect(await takenIds(COMMUNITY, [communityRecord(1, overrides as Record), communityRecord(2)])).toEqual(["c-2"]);
+ });
+});
+
+describe("api.a2a-registry.org: which records qualify", () => {
+ it("takes a public, active, verified A2A record with no failed check, and maps it", async () => {
+ vi.stubGlobal("fetch", listFetch(API, [apiRecord(1)]));
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(API), { pause: async () => {} });
+
+ expect(snapshot.observations).toHaveLength(1);
+ const { candidate } = snapshot.observations[0]!;
+ expect(candidate).toMatchObject({
+ displayName: "Registry Agent 1",
+ summary: "Agent 1 does one thing.",
+ primaryCapability: "Finance",
+ agentCardUrl: "https://agent1.test/.well-known/agent-card.json",
+ endpointUrl: "https://www.agent1.test/",
+ authentication: null,
+ externalRecordId: "a-1",
+ catalogSignals: ["registry-reported verification level: verified", "registry-reported check status: no failed check since"],
+ });
+ });
+
+ it("uses the manifest address as the endpoint when the owner names no website", async () => {
+ vi.stubGlobal("fetch", listFetch(API, [apiRecord(1, { owner_org_website: null })]));
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(API), { pause: async () => {} });
+
+ expect(snapshot.observations[0]!.candidate.endpointUrl).toBe("https://agent1.test/.well-known/agent-card.json");
+ });
+
+ it.each([
+ ["not public", { visibility: "private" }],
+ ["not active", { status: "INACTIVE" }],
+ ["not an A2A record", { protocolStd: "mcp" }],
+ ["verified only through GitHub", { verification_level: "github_verified" }],
+ ["unverified", { verification_level: "unverified" }],
+ ["failing its checks", { consecutiveFailures: 1 }],
+ ["an import with no owner", { owner_org_slug: "system-unclaimed" }],
+ ["a spotlight placement", { is_spotlight: true }],
+ ["a promoted placement", { is_promoted_top: true }],
+ ["carrying a badge", { badge_label: "Featured" }],
+ ["a manifest address that is not https", { manifestUrl: "http://agent1.test/.well-known/agent-card.json" }],
+ ["served by the registry itself", { manifestUrl: "https://www.a2a-registry.org/agents/1/agent-card.json" }],
+ ])("leaves out a record that is %s", async (_label, overrides) => {
+ expect(await takenIds(API, [apiRecord(1, overrides as Record), apiRecord(2)])).toEqual(["a-2"]);
+ });
+});
+
+describe("one party, oldest first, up to the ceiling", () => {
+ it("keeps the ceiling inside what the review tooling lists in one run", () => {
+ expect(A2A_REGISTRY_MAX_ACCEPTED_RECORDS).toBe(96);
+ expect(A2A_REGISTRY_MAX_ACCEPTED_RECORDS).toBeLessThanOrEqual(MAX_RUN_REVIEW_OBSERVATIONS);
+ });
+
+ it("takes the oldest records up to the ceiling whatever order the registry lists them in, and counts the rest as rejected", async () => {
+ const records = Array.from({ length: 130 }, (_, index) => communityRecord(index + 1)).reverse();
+
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, records));
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause: async () => {} });
+
+ const ids = snapshot.observations.map(entry => entry.candidate.externalRecordId);
+ expect(ids).toHaveLength(96);
+ expect(ids[0]).toBe("c-1");
+ expect(ids.at(-1)).toBe("c-96");
+ expect(snapshot.discoveredCount).toBe(130);
+ expect(snapshot.qualifiedCount).toBe(130);
+ expect(snapshot.rejectedCount).toBe(34);
+ expect(mocks.storagePut).toHaveBeenCalledTimes(96);
+ });
+
+ it("takes one record for a party that lists several, the oldest, and counts a platform's tenants apart", async () => {
+ const records = [
+ communityRecord(3, { wellKnownURI: "https://x.shared.example.org/.well-known/agent-card.json" }),
+ communityRecord(1, { wellKnownURI: "https://y.shared.example.org/.well-known/agent-card.json" }),
+ communityRecord(2, { wellKnownURI: "https://www.shared.example.org/.well-known/agent-card.json" }),
+ communityRecord(4, { wellKnownURI: "https://one.workers.dev/.well-known/agent-card.json" }),
+ communityRecord(5, { wellKnownURI: "https://two.workers.dev/.well-known/agent-card.json" }),
+ ];
+
+ expect(await takenIds(COMMUNITY, records)).toEqual(["c-1", "c-4", "c-5"]);
+ });
+
+ it("leaves out a party that already holds a reviewed record from another source, before the ceiling counts", async () => {
+ // Ten of the oldest records stand on parties another source already holds. The ceiling is filled from the others, so 96 are taken
+ // and not 86.
+ const skippedUnits = Array.from({ length: 10 }, (_, index) => `skipped${index}.example`);
+ const skipped = skippedUnits.map((unit, index) =>
+ communityRecord(index, { wellKnownURI: `https://${unit}/.well-known/agent-card.json`, url: `https://${unit}/a2a` })
+ );
+ const others = Array.from({ length: 100 }, (_, index) => communityRecord(index + 11));
+
+ const ids = await takenIds(COMMUNITY, [...skipped, ...others], new Set(skippedUnits));
+
+ expect(ids).toHaveLength(96);
+ expect(ids[0]).toBe("c-11");
+ expect(ids.at(-1)).toBe("c-106");
+ expect(ids.some(id => Number(id.slice(2)) < 10)).toBe(false);
+ });
+
+ it("sorts a record that does not say when it was created last", async () => {
+ const records = [communityRecord(1, { created_at: null }), communityRecord(2), communityRecord(3, { created_at: "later" })];
+
+ expect(await takenIds(COMMUNITY, records)).toEqual(["c-2", "c-1", "c-3"]);
+ });
+
+ it("leaves out a record over the record cap and takes one just under it", async () => {
+ const { maxRecordBytes } = a2aRegistryPolicy(COMMUNITY);
+ const padded = (n: number, size: number) => communityRecord(n, { maintainer_notes: "x".repeat(size) });
+ const base = Buffer.byteLength(JSON.stringify(padded(1, 0)));
+
+ expect(await takenIds(COMMUNITY, [padded(1, maxRecordBytes - base), padded(2, maxRecordBytes - base + 1)])).toEqual(["c-1"]);
+ });
+
+ it("counts a record with no id as read and rejected, and a record seen twice as one", async () => {
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [communityRecord(1), { name: "no id" }, communityRecord(1)]));
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause: async () => {} });
+
+ expect(snapshot.discoveredCount).toBe(2);
+ expect(snapshot.observations).toHaveLength(1);
+ expect(snapshot.rejectedCount).toBe(1);
+ });
+});
+
+describe("what is retained", () => {
+ it("stores the record as the registry served it under its content hash, with the registry's own words kept as findings", async () => {
+ const record = communityRecord(7);
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [record]));
+ const source = registrySource(COMMUNITY);
+
+ const snapshot = await fetchA2aRegistryCatalog(source, { pause: async () => {} });
+
+ const rawText = JSON.stringify(record);
+ const hash = createHash("sha256").update(rawText).digest("hex");
+ expect(mocks.storagePut).toHaveBeenCalledWith(`nooscape/raw/catalog/${source.id}/${hash}.json`, rawText, "application/json");
+ expect(snapshot.observations[0]!.observation).toMatchObject({
+ canonicalLocator: "https://a2aregistry.org/api/agents#c-7",
+ contentHash: hash,
+ rawObjectKey: `nooscape/raw/catalog/${source.id}/${hash}.json`,
+ contentType: "application/json",
+ httpStatus: 200,
+ validationStatus: "valid",
+ validationFindings: [
+ "Retained from a2aregistry.org community A2A registry.",
+ "registry-reported conformance check: passed; not independently verified by Nooscape.",
+ "registry-reported health check: healthy; not independently verified by Nooscape.",
+ "registry-reported task probe: working; not independently verified by Nooscape.",
+ ],
+ });
+ });
+});
+
+describe("what is read", () => {
+ it("asks a2aregistry.org for pages by offset, 100 at a time, and waits between requests", async () => {
+ const fetchMock = listFetch(COMMUNITY, Array.from({ length: 150 }, (_, index) => communityRecord(index + 1)));
+ vi.stubGlobal("fetch", fetchMock);
+ const pause = vi.fn(async (_ms: number) => {});
+
+ const snapshot = await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause });
+
+ expect(fetchMock.mock.calls.map(call => call[0])).toEqual([
+ "https://a2aregistry.org/api/agents?limit=100&offset=0",
+ "https://a2aregistry.org/api/agents?limit=100&offset=100",
+ ]);
+ expect(snapshot.requestCount).toBe(2);
+ expect(pause.mock.calls).toEqual([[A2A_REGISTRY_PAUSE_MS]]);
+ expect(A2A_REGISTRY_PAUSE_MS).toBe(1_200);
+ });
+
+ it("asks api.a2a-registry.org for pages by page number from 1, which is the parameter it honours", async () => {
+ const fetchMock = listFetch(API, Array.from({ length: 150 }, (_, index) => apiRecord(index + 1)));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await fetchA2aRegistryCatalog(registrySource(API), { pause: async () => {} });
+
+ expect(fetchMock.mock.calls.map(call => call[0])).toEqual([
+ "https://api.a2a-registry.org/public/agents?limit=100&page=1",
+ "https://api.a2a-registry.org/public/agents?limit=100&page=2",
+ ]);
+ });
+
+ it("reads only the list: a GET with no redirect followed, and no address a record names", async () => {
+ const fetchMock = listFetch(COMMUNITY, Array.from({ length: 120 }, (_, index) => communityRecord(index + 1)));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await fetchA2aRegistryCatalog(registrySource(COMMUNITY), { pause: async () => {} });
+
+ for (const [url, init] of fetchMock.mock.calls as unknown as Array<[string, RequestInit]>) {
+ expect(url.startsWith("https://a2aregistry.org/api/agents?")).toBe(true);
+ expect(init.method).toBe("GET");
+ expect(init.redirect).toBe("error");
+ expect(init.headers).toMatchObject({ Accept: "application/json" });
+ }
+ });
+
+ it("stops at the reported total and makes no request past it", async () => {
+ const fetchMock = listFetch(API, Array.from({ length: 100 }, (_, index) => apiRecord(index + 1)));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await fetchA2aRegistryCatalog(registrySource(API), { pause: async () => {} });
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ });
+
+ it("checks the registry's host is public before the first request", async () => {
+ vi.stubGlobal("fetch", listFetch(API, [apiRecord(1)]));
+
+ await fetchA2aRegistryCatalog(registrySource(API), { pause: async () => {} });
+
+ expect(mocks.assertPublicHostname).toHaveBeenCalledWith("api.a2a-registry.org");
+ });
+});
+
+describe("what fails the run, loudly", () => {
+ const run = (key: typeof COMMUNITY | typeof API = COMMUNITY) => fetchA2aRegistryCatalog(registrySource(key), { pause: async () => {} });
+
+ it("fails when the registry reports more records than the approved scan limit, and takes nothing", async () => {
+ const { maxRecords } = a2aRegistryPolicy(COMMUNITY);
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [communityRecord(1)], maxRecords + 1));
+
+ await expect(run()).rejects.toThrow(`reports ${maxRecords + 1} records, over the approved scan limit of ${maxRecords}.`);
+ expect(mocks.storagePut).not.toHaveBeenCalled();
+ });
+
+ it("accepts a registry at exactly the scan limit's total as far as the check goes", async () => {
+ const { maxRecords } = a2aRegistryPolicy(COMMUNITY);
+ // Reports exactly the limit but the list runs dry after one page: that is the other failure, not the limit.
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, [communityRecord(1)], maxRecords));
+
+ await expect(run()).rejects.toThrow(`list ended after 1 of the ${maxRecords} records it reported.`);
+ });
+
+ it("fails when the list ends before the records it reported", async () => {
+ vi.stubGlobal("fetch", listFetch(COMMUNITY, Array.from({ length: 100 }, (_, index) => communityRecord(index + 1)), 150));
+
+ await expect(run()).rejects.toThrow("list ended after 100 of the 150 records it reported.");
+ expect(mocks.storagePut).not.toHaveBeenCalled();
+ });
+
+ it("fails on a status that is not a success, a body that is not JSON and a type that does not say JSON", async () => {
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({}, { status: 503 })));
+ await expect(run()).rejects.toThrow("returned HTTP 503.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse("not json")));
+ await expect(run()).rejects.toThrow("page was not valid JSON.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ agents: [], total: 0 }, { contentType: "text/html" })));
+ await expect(run()).rejects.toThrow("did not declare a JSON payload.");
+ });
+
+ it("fails on an answer without the documented shape", async () => {
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ total: 1 })));
+ await expect(run()).rejects.toThrow("page did not have the documented shape.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ agents: [], total: "many" })));
+ await expect(run()).rejects.toThrow("did not report a record total.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ agents: [], total: -1 })));
+ await expect(run()).rejects.toThrow("did not report a record total.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ success: false, agents: [], total: 0 })));
+ await expect(run(API)).rejects.toThrow("page did not have the documented shape.");
+
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ agents: Array.from({ length: 101 }, (_, index) => communityRecord(index)), total: 101 })));
+ await expect(run()).rejects.toThrow("page held more records than the page size.");
+ });
+
+ it("fails on a page over the size limit, by its declared length and by the bytes that arrive, and stops reading", async () => {
+ const { maxPageBytes } = a2aRegistryPolicy(COMMUNITY);
+ vi.stubGlobal("fetch", vi.fn(async () => jsonResponse({ agents: [], total: 0 }, { contentLength: maxPageBytes + 1 })));
+ await expect(run()).rejects.toThrow("page exceeds the response limit.");
+
+ const piece = 1024 * 1024;
+ let served = 0;
+ let cancelled = false;
+ const body = new ReadableStream({
+ pull(controller) {
+ controller.enqueue(new Uint8Array(piece).fill(0x20));
+ served += piece;
+ },
+ cancel() {
+ cancelled = true;
+ },
+ });
+ vi.stubGlobal(
+ "fetch",
+ vi.fn(async () => ({ ok: true, status: 200, headers: { get: (name: string) => (name.toLowerCase() === "content-type" ? "application/json" : null) }, body }) as unknown as Response)
+ );
+ await expect(run()).rejects.toThrow("page exceeds the response limit.");
+ expect(cancelled).toBe(true);
+ expect(served).toBeLessThanOrEqual(maxPageBytes + 4 * piece);
+ });
+
+ it("fails on a request that stalls, under the armed timer", async () => {
+ vi.stubGlobal(
+ "fetch",
+ vi.fn(
+ (_url: unknown, init: { signal: AbortSignal }) =>
+ new Promise((_resolve, reject) => {
+ init.signal.addEventListener("abort", () => reject(new DOMException("The operation was aborted", "AbortError")));
+ })
+ )
+ );
+ vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout"] });
+
+ const verdict = run().then(
+ () => {
+ throw new Error("expected the stalled request to time out");
+ },
+ (error: unknown) => error
+ );
+ await vi.advanceTimersByTimeAsync(20_000);
+
+ const error = await verdict;
+ expect(error).toBeInstanceOf(A2aRegistryValidationError);
+ expect((error as Error).message).toBe("a2aregistry.org community A2A registry request timed out.");
+ });
+
+ it("fails on a request that errors, and never says why in the registry's words", async () => {
+ vi.stubGlobal("fetch", vi.fn(async () => { throw new TypeError("redirect mode is set to error"); }));
+
+ await expect(run()).rejects.toThrow("request failed without following redirects.");
+ });
+});
+
+describe("which sources may be read", () => {
+ it("knows two source keys", () => {
+ expect([...A2A_REGISTRY_SOURCE_KEYS]).toEqual([COMMUNITY, API]);
+ expect(isA2aRegistrySourceKey(COMMUNITY)).toBe(true);
+ expect(isA2aRegistrySourceKey("agenstry-public-catalog")).toBe(false);
+ });
+
+ it.each([
+ ["a protocol that is not catalog", { protocol: "a2a" as const }],
+ ["a source key that is nobody's", { sourceKey: "somebody-else" }],
+ ["a source that is not active", { state: "review" as const }],
+ ["a stored address that is not the approved one", { rootUrl: "https://a2aregistry.org/api/agents?limit=1" }],
+ ["a stored host that is not the approved one", { allowedHostname: "example.org" }],
+ ])("refuses %s, before any request", async (_label, overrides) => {
+ const fetchMock = vi.fn();
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(fetchA2aRegistryCatalog(registrySource(COMMUNITY, overrides as Partial), { pause: async () => {} })).rejects.toThrow(A2aRegistryValidationError);
+ expect(fetchMock).not.toHaveBeenCalled();
+ });
+
+ it("holds the approved bounds of each registry", () => {
+ expect(a2aRegistryPolicy(COMMUNITY)).toEqual({ listUrl: "https://a2aregistry.org/api/agents", maxRecords: 2_000, maxPageBytes: 2 * 1024 * 1024, maxRecordBytes: 128 * 1024, pageSize: 100 });
+ expect(a2aRegistryPolicy(API)).toEqual({ listUrl: "https://api.a2a-registry.org/public/agents", maxRecords: 5_000, maxPageBytes: 1.5 * 1024 * 1024, maxRecordBytes: 256 * 1024, pageSize: 100 });
+ });
+});
diff --git a/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.ts b/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.ts
new file mode 100644
index 0000000..06dca9b
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/a2aRegistryCatalog.ts
@@ -0,0 +1,428 @@
+import { createHash } from "node:crypto";
+import { storagePut } from "../storage";
+import { assertPublicHostname } from "./a2a";
+import { fetchUnderDeadline } from "./deadlineFetch";
+import { canonicalHost } from "../hostName";
+import type { IngestionSource } from "../../drizzle/schema";
+import type { CatalogNormalizedCandidate, RawObservationInput } from "./types";
+
+/**
+ * Two public A2A registries read as catalogs: a2aregistry.org (a community registry, probe results and no identity field) and the
+ * registry behind api.a2a-registry.org (an owner-claim and DNS or ANS check it calls "verified"). Both are small variants of the
+ * Agenstry catalog adapter: paged JSON instead of a gzip NDJSON feed, a different record shape, and a selection rule of their own
+ * (docs/approvals/2026-11-06-a2aregistry-catalog.md and docs/approvals/2026-11-06-a2a-registry-org-catalog.md; the measurements are
+ * from the scout's read of 2026-11-06, docs/a2a-registries-2026-11-06.md).
+ *
+ * What a run reads is the list endpoint and nothing else. No URL inside a record is followed: not the card, not the service address, not
+ * the registry's own probe, recheck or flag routes. A record that is taken stays catalog discovery metadata at Tier 2, and what the
+ * registry says about itself (a probe, a check, a verification level) is kept as an upstream assertion and never as Nooscape's.
+ */
+
+export type A2aRegistryKey = "a2aregistry-public-api" | "a2a-registry-org-public-api";
+export const A2A_REGISTRY_SOURCE_KEYS: readonly A2aRegistryKey[] = ["a2aregistry-public-api", "a2a-registry-org-public-api"];
+
+/** The parser that reads these records, recorded with each observation. */
+export const A2A_REGISTRY_PARSER_VERSION = "a2a-registry-catalog-v1-source-scoped";
+
+/**
+ * Reviewed intake ceiling for one run, for both registries. a2aregistry.org had about 285 records that pass its rule on 2026-11-06 and the
+ * other registry about 89, so this binds at once on the first and not on the second. When more qualify, the oldest are taken, so the set
+ * does not change from one run to the next as new records arrive. Each taken record is one more to check before it is shown; the
+ * ceiling sits inside what the review tooling lists in one run (`MAX_RUN_REVIEW_OBSERVATIONS`), and raising it is the operator's decision.
+ */
+export const A2A_REGISTRY_MAX_ACCEPTED_RECORDS = 96;
+
+/** Both registries cap a page at 100 records. */
+const PAGE_SIZE = 100;
+/** At least this long between two requests to the same registry. */
+export const A2A_REGISTRY_PAUSE_MS = 1_200;
+const REQUEST_TIMEOUT_MS = 20_000;
+
+export class A2aRegistryValidationError extends Error {
+ constructor(message: string) {
+ super(message);
+ this.name = "A2aRegistryValidationError";
+ }
+}
+
+function isObject(value: unknown): value is Record {
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
+}
+
+function boundedText(value: unknown, maxLength: number) {
+ return typeof value === "string" && value.trim().length > 0 ? value.trim().slice(0, maxLength) : null;
+}
+
+/** A canonical HTTPS URL (no credentials, no port) or null. */
+function httpsUrl(value: unknown): URL | null {
+ if (typeof value !== "string" || value.length === 0 || value.length > 2_048) return null;
+ let url: URL;
+ try {
+ url = new URL(value);
+ } catch {
+ return null;
+ }
+ if (url.protocol !== "https:" || url.username || url.password || url.port) return null;
+ return url;
+}
+
+/**
+ * Hosting platforms where each tenant is its own party. On these the whole host is the unit, so one vendor's templated agents
+ * count once and a platform's other tenants do not count against it. Everywhere else the unit is the registrable domain. The list is the
+ * eight platforms the approval names, the one the largest block of records sat on, and four more the 2026-11-06 lists showed; a platform
+ * that is not on it folds its tenants into one party, which can only drop a record.
+ */
+const TENANT_PLATFORMS = [
+ "workers.dev", "vercel.app", "onrender.com", "railway.app", "fly.dev", "pages.dev", "github.io", "run.app", "tcloudbaseapp.com",
+ "netlify.app", "supabase.co", "chatgpt.site", "sslip.io",
+];
+
+/** Two-label public suffixes the registrable domain must reach past. A host under one that is not listed collapses into fewer units, which is the safe way to be wrong. */
+const TWO_LABEL_SUFFIXES = new Set([
+ "co.uk", "org.uk", "ac.uk", "gov.uk", "me.uk", "com.au", "net.au", "org.au", "co.nz", "co.jp", "or.jp", "ne.jp", "com.br", "com.cn",
+ "com.hk", "com.sg", "com.tw", "com.mx", "com.tr", "com.ar", "co.in", "co.kr", "co.za", "com.ua", "com.pl",
+]);
+
+/**
+ * The party a host stands for: the whole host on a hosting platform, the registrable domain elsewhere, null for an address that is not
+ * a DNS name. This is a short fixed list and not the public suffix list, so a host the list does not know is grouped with its
+ * neighbours and not split from them: it can only drop a record, never add one.
+ */
+export function registrableUnit(hostname: string): string | null {
+ const host = canonicalHost(hostname);
+ if (!host || host.startsWith("[") || /^\d{1,3}(\.\d{1,3}){3}$/.test(host)) return null;
+ const bare = host.replace(/^www\./, "");
+ const labels = bare.split(".");
+ if (labels.length < 2) return null;
+ if (TENANT_PLATFORMS.some(platform => bare === platform || bare.endsWith(`.${platform}`))) return bare;
+ const lastTwo = labels.slice(-2).join(".");
+ return TWO_LABEL_SUFFIXES.has(lastTwo) && labels.length >= 3 ? labels.slice(-3).join(".") : lastTwo;
+}
+
+/** The units of a list of addresses, for the hosts that already hold a reviewed record. */
+export function unitsOfUrls(urls: readonly string[]): Set {
+ const units = new Set();
+ for (const url of urls) {
+ try {
+ const unit = registrableUnit(new URL(url).hostname);
+ if (unit) units.add(unit);
+ } catch {
+ // An address that is not a URL names no host.
+ }
+ }
+ return units;
+}
+
+type Selection = {
+ id: string;
+ displayName: string;
+ summary: string | null;
+ category: string | null;
+ cardUrl: URL;
+ endpointUrl: URL;
+ /** When the registry first had the record, in milliseconds; infinite when it does not say, so it sorts last. */
+ createdAtMs: number;
+ /** What the registry says about itself, kept as findings. */
+ signals: string[];
+};
+
+type RegistryPolicy = {
+ sourceKey: A2aRegistryKey;
+ label: string;
+ /** The approved list endpoint, without its query. */
+ listUrl: string;
+ /** The registrable domains of the registry itself: a card served from there is the registry and not a discovered agent. */
+ selfUnits: readonly string[];
+ /** The query for page `index` (counted from 0). */
+ pageQuery: (index: number) => string;
+ /** The most records the registry may report before the run refuses to guess at the rest. */
+ maxRecords: number;
+ maxPageBytes: number;
+ maxRecordBytes: number;
+ /** Whether the answer carries `success: true`. */
+ needsSuccessFlag: boolean;
+ select: (record: Record) => Selection | null;
+};
+
+function timeMs(value: unknown, scale: "iso" | "epoch-seconds"): number {
+ const ms = scale === "iso" ? (typeof value === "string" ? Date.parse(value) : Number.NaN) : typeof value === "number" ? value * 1_000 : Number.NaN;
+ return Number.isFinite(ms) ? ms : Number.POSITIVE_INFINITY;
+}
+
+/**
+ * a2aregistry.org: the registry's own probes are the only signal, and it has no identity field. A record is taken when it is not hidden
+ * or flagged, passed the conformance check, is healthy and passed the task probe, with an HTTPS card and service address.
+ */
+function selectCommunityRecord(record: Record): Selection | null {
+ if (record.hidden !== false || record.flag_count !== 0) return null;
+ if (record.conformance !== true || record.is_healthy !== true) return null;
+ const task = record.task_conformance;
+ if (!isObject(task) || task.category !== "WORKING") return null;
+ const id = boundedText(record.id, 512);
+ const name = boundedText(record.name, 255);
+ const card = httpsUrl(record.wellKnownURI);
+ const service = httpsUrl(record.url);
+ if (!id || !name || !card || !service) return null;
+ const provider = isObject(record.provider) ? httpsUrl(record.provider.url) : null;
+ return {
+ id,
+ displayName: name,
+ summary: boundedText(record.description, 8_000),
+ category: boundedText(record.category, 160),
+ cardUrl: card,
+ endpointUrl: provider ?? card,
+ createdAtMs: timeMs(record.created_at, "iso"),
+ signals: [
+ "registry-reported conformance check: passed",
+ "registry-reported health check: healthy",
+ "registry-reported task probe: working",
+ ],
+ };
+}
+
+/**
+ * api.a2a-registry.org: a record is taken when it is public, active, an A2A record the registry itself calls verified, with no failed
+ * check since, and not an import with no owner. A paid placement (a spotlight, a promotion or a badge) must not shape what is taken.
+ */
+function selectOwnerVerifiedRecord(record: Record): Selection | null {
+ if (record.visibility !== "public" || record.status !== "ACTIVE" || record.protocolStd !== "a2a") return null;
+ if (record.verification_level !== "verified" || record.consecutiveFailures !== 0) return null;
+ if (record.owner_org_slug === "system-unclaimed") return null;
+ if (record.is_spotlight === true || record.is_promoted_top === true || boundedText(record.badge_label, 160)) return null;
+ const id = boundedText(record.id, 512);
+ const name = boundedText(record.displayName, 255);
+ const card = httpsUrl(record.manifestUrl);
+ if (!id || !name || !card) return null;
+ return {
+ id,
+ displayName: name,
+ summary: boundedText(record.description, 8_000),
+ category: boundedText(record.category, 160),
+ cardUrl: card,
+ endpointUrl: httpsUrl(record.owner_org_website) ?? card,
+ createdAtMs: timeMs(record.createdAt, "epoch-seconds"),
+ signals: ["registry-reported verification level: verified", "registry-reported check status: no failed check since"],
+ };
+}
+
+/**
+ * Bounds, from the scout's full read on 2026-11-06. a2aregistry.org: 649 records in 7 pages, the largest page 825,369 bytes and the
+ * largest record 100,822 bytes. api.a2a-registry.org: 2,034 records in 21 pages, the largest page 1,098,456 bytes and the largest record
+ * 185,520 bytes (it keeps a copy of each card inside the record). A registry that reports more records than the scan limit fails the run
+ * and does not drop the rest without a word: raising a limit is a reviewed change.
+ */
+const POLICIES: Record = {
+ "a2aregistry-public-api": {
+ sourceKey: "a2aregistry-public-api",
+ label: "a2aregistry.org community A2A registry",
+ listUrl: "https://a2aregistry.org/api/agents",
+ selfUnits: ["a2aregistry.org"],
+ pageQuery: index => `limit=${PAGE_SIZE}&offset=${index * PAGE_SIZE}`,
+ maxRecords: 2_000,
+ maxPageBytes: 2 * 1024 * 1024,
+ maxRecordBytes: 128 * 1024,
+ needsSuccessFlag: false,
+ select: selectCommunityRecord,
+ },
+ "a2a-registry-org-public-api": {
+ sourceKey: "a2a-registry-org-public-api",
+ label: "A2A Registry public API (a2a-registry.org)",
+ listUrl: "https://api.a2a-registry.org/public/agents",
+ selfUnits: ["a2a-registry.org"],
+ // This API ignores `offset` and counts pages from 1.
+ pageQuery: index => `limit=${PAGE_SIZE}&page=${index + 1}`,
+ maxRecords: 5_000,
+ maxPageBytes: 1.5 * 1024 * 1024,
+ maxRecordBytes: 256 * 1024,
+ needsSuccessFlag: true,
+ select: selectOwnerVerifiedRecord,
+ },
+};
+
+export function isA2aRegistrySourceKey(sourceKey: string): sourceKey is A2aRegistryKey {
+ return (A2A_REGISTRY_SOURCE_KEYS as readonly string[]).includes(sourceKey);
+}
+
+/** The approved list endpoint, scan limit and page size of a registry source, for the tests and the records. */
+export function a2aRegistryPolicy(sourceKey: A2aRegistryKey) {
+ const { listUrl, maxRecords, maxPageBytes, maxRecordBytes } = POLICIES[sourceKey];
+ return { listUrl, maxRecords, maxPageBytes, maxRecordBytes, pageSize: PAGE_SIZE };
+}
+
+async function readBoundedJson(response: Response, maxBytes: number, label: string) {
+ if (!response.ok) throw new A2aRegistryValidationError(`${label} returned HTTP ${response.status}.`);
+ if (!response.headers.get("content-type")?.toLowerCase().includes("json")) {
+ throw new A2aRegistryValidationError(`${label} did not declare a JSON payload.`);
+ }
+ const declaredSize = Number(response.headers.get("content-length") ?? "0");
+ if (Number.isFinite(declaredSize) && declaredSize > maxBytes) {
+ throw new A2aRegistryValidationError(`${label} page exceeds the response limit.`);
+ }
+ if (!response.body) throw new A2aRegistryValidationError(`${label} response had no body.`);
+ const reader = response.body.getReader();
+ const chunks: Uint8Array[] = [];
+ let size = 0;
+ while (true) {
+ const { done, value } = await reader.read();
+ if (done) break;
+ size += value.byteLength;
+ if (size > maxBytes) {
+ await reader.cancel();
+ throw new A2aRegistryValidationError(`${label} page exceeds the response limit.`);
+ }
+ chunks.push(value);
+ }
+ try {
+ return JSON.parse(new TextDecoder().decode(Buffer.concat(chunks))) as unknown;
+ } catch {
+ throw new A2aRegistryValidationError(`${label} page was not valid JSON.`);
+ }
+}
+
+export type FetchA2aRegistryOptions = {
+ /** Units (see `registrableUnit`) that already hold a reviewed record from another source: records on them are not taken. */
+ skipUnits?: ReadonlySet;
+ /** Waits between two requests; replaced in tests. */
+ pause?: (ms: number) => Promise;
+};
+
+/**
+ * Reads one bounded snapshot of a registry's list and returns the observations for the records the registry's rule selects. Records
+ * are taken one per unit (the oldest when several share one), not on a unit that already holds a reviewed record from another
+ * source, oldest first up to the intake ceiling. Counts: `discoveredCount` is the distinct records read and `rejectedCount` every one
+ * of them that was not taken, so a record that qualified past the ceiling is counted there too. `qualifiedCount` is how many
+ * parties qualified before the ceiling, so a run that hit it can be told from one that did not.
+ */
+export async function fetchA2aRegistryCatalog(source: IngestionSource, options: FetchA2aRegistryOptions = {}) {
+ if (source.protocol !== "catalog" || !isA2aRegistrySourceKey(source.sourceKey)) {
+ throw new A2aRegistryValidationError("Source is not an approved A2A registry catalog.");
+ }
+ const policy = POLICIES[source.sourceKey];
+ if (source.state !== "active") throw new A2aRegistryValidationError("Only active sources may be fetched.");
+ const sourceUrl = new URL(source.rootUrl);
+ if (sourceUrl.toString() !== policy.listUrl || source.allowedHostname !== sourceUrl.hostname) {
+ throw new A2aRegistryValidationError("Stored catalog source policy does not match the approved registry.");
+ }
+ await assertPublicHostname(source.allowedHostname);
+
+ const pause = options.pause ?? ((ms: number) => new Promise(resolve => setTimeout(resolve, ms)));
+ const maxPages = Math.ceil(policy.maxRecords / PAGE_SIZE);
+ const seen = new Set();
+ const taken: Array<{ selection: Selection; unit: string; rawText: string; httpStatus: number }> = [];
+ let discoveredCount = 0;
+ let requestCount = 0;
+ let walked = 0;
+ let total = Number.POSITIVE_INFINITY;
+
+ for (let index = 0; index < maxPages && walked < total; index += 1) {
+ if (index > 0) await pause(A2A_REGISTRY_PAUSE_MS);
+ requestCount += 1;
+ const { response, body } = await fetchUnderDeadline({
+ url: `${policy.listUrl}?${policy.pageQuery(index)}`,
+ init: {
+ method: "GET",
+ headers: { Accept: "application/json", "User-Agent": "Nooscape-Source-Indexer/0.2 (+https://nooscape.si)" },
+ },
+ timeoutMs: REQUEST_TIMEOUT_MS,
+ isDomainError: error => error instanceof A2aRegistryValidationError,
+ onTimeout: () => new A2aRegistryValidationError(`${policy.label} request timed out.`),
+ onFailure: () => new A2aRegistryValidationError(`${policy.label} request failed without following redirects.`),
+ read: response => readBoundedJson(response, policy.maxPageBytes, policy.label),
+ });
+ if (!isObject(body) || !Array.isArray(body.agents) || (policy.needsSuccessFlag && body.success !== true)) {
+ throw new A2aRegistryValidationError(`${policy.label} page did not have the documented shape.`);
+ }
+ if (body.agents.length > PAGE_SIZE) {
+ throw new A2aRegistryValidationError(`${policy.label} page held more records than the page size.`);
+ }
+ if (index === 0) {
+ if (typeof body.total !== "number" || !Number.isSafeInteger(body.total) || body.total < 0) {
+ throw new A2aRegistryValidationError(`${policy.label} did not report a record total.`);
+ }
+ if (body.total > policy.maxRecords) {
+ throw new A2aRegistryValidationError(`${policy.label} reports ${body.total} records, over the approved scan limit of ${policy.maxRecords}.`);
+ }
+ total = body.total;
+ }
+ if (body.agents.length === 0) break;
+ walked += body.agents.length;
+
+ for (const record of body.agents) {
+ const id = isObject(record) ? boundedText(record.id, 512) : null;
+ if (!isObject(record) || !id) {
+ discoveredCount += 1;
+ continue;
+ }
+ // A registry that gains records while it is read shifts its pages; a record seen twice is one record.
+ if (seen.has(id)) continue;
+ seen.add(id);
+ discoveredCount += 1;
+ const rawText = JSON.stringify(record);
+ if (Buffer.byteLength(rawText) > policy.maxRecordBytes) continue;
+ const selection = policy.select(record);
+ if (!selection) continue;
+ const unit = registrableUnit(selection.cardUrl.hostname);
+ if (!unit || policy.selfUnits.includes(unit)) continue;
+ taken.push({ selection, unit, rawText, httpStatus: response.status });
+ }
+ }
+ if (walked < total) {
+ throw new A2aRegistryValidationError(`${policy.label} list ended after ${walked} of the ${total} records it reported.`);
+ }
+
+ // One per unit, the oldest; none on a unit another source's reviewed record already holds; oldest first up to the ceiling.
+ const byAge = (a: { selection: Selection }, b: { selection: Selection }) =>
+ a.selection.createdAtMs < b.selection.createdAtMs ? -1 : a.selection.createdAtMs > b.selection.createdAtMs ? 1 : a.selection.id < b.selection.id ? -1 : 1;
+ const oldestPerUnit = new Map();
+ for (const entry of [...taken].sort(byAge)) {
+ if (options.skipUnits?.has(entry.unit) || oldestPerUnit.has(entry.unit)) continue;
+ oldestPerUnit.set(entry.unit, entry);
+ }
+ const chosen = Array.from(oldestPerUnit.values()).slice(0, A2A_REGISTRY_MAX_ACCEPTED_RECORDS);
+
+ const observedAt = new Date();
+ const observations: Array<{ candidate: CatalogNormalizedCandidate; observation: RawObservationInput }> = [];
+ for (const { selection, rawText, httpStatus } of chosen) {
+ const contentHash = createHash("sha256").update(rawText).digest("hex");
+ const stored = await storagePut(`nooscape/raw/catalog/${source.id}/${contentHash}.json`, rawText, "application/json");
+ const specialties = selection.category ? [selection.category] : [];
+ observations.push({
+ candidate: {
+ displayName: selection.displayName,
+ handle: handleFromRecord(selection.displayName, selection.id),
+ summary: selection.summary,
+ primaryCapability: selection.category,
+ specialties,
+ agentCardUrl: selection.cardUrl.toString(),
+ endpointUrl: selection.endpointUrl.toString(),
+ authentication: null,
+ externalRecordId: selection.id,
+ catalogSignals: selection.signals,
+ },
+ observation: {
+ canonicalLocator: `${policy.listUrl}#${encodeURIComponent(selection.id)}`,
+ contentHash,
+ rawObjectKey: stored.key,
+ contentType: "application/json",
+ httpStatus,
+ validationStatus: "valid",
+ validationFindings: [
+ `Retained from ${policy.label}.`,
+ ...selection.signals.map(signal => `${signal}; not independently verified by Nooscape.`),
+ ],
+ observedAt,
+ },
+ });
+ }
+ return { observations, discoveredCount, qualifiedCount: oldestPerUnit.size, rejectedCount: discoveredCount - observations.length, requestCount };
+}
+
+function handleFromRecord(name: string, recordId: string) {
+ const label = name
+ .normalize("NFKD")
+ .replace(/[^a-zA-Z0-9]+/g, "-")
+ .replace(/^-+|-+$/g, "")
+ .toLowerCase()
+ .slice(0, 144);
+ return `${label || "registry-agent"}-${createHash("sha256").update(recordId).digest("hex").slice(0, 10)}`;
+}
diff --git a/apps/nooscape-relay/server/ingestion/agenstry.ts b/apps/nooscape-relay/server/ingestion/agenstry.ts
index 84cb286..add1fce 100644
--- a/apps/nooscape-relay/server/ingestion/agenstry.ts
+++ b/apps/nooscape-relay/server/ingestion/agenstry.ts
@@ -14,48 +14,68 @@ const FEED_HOSTNAME = new URL(FEED_URL).hostname;
* Compressed-body bound for the full federation feed. A 2026-10-09 snapshot
* measured 262,024 records at ~17.9 MiB compressed; the reader streams and
* parses line-by-line so memory stays bounded, and this remains a hard abuse
- * ceiling rather than a scan target.
+ * ceiling rather than a scan target. The run fails loudly when the body crosses
+ * it. On 2026-11-06 the feed was 23,431,777 bytes (22.35 MiB), 93% of the 24 MiB
+ * this was, and it had grown about a quarter in four weeks, so 48 MiB leaves
+ * about three months (docs/agenstry-limits-2026-11-06.md).
*/
-const MAX_COMPRESSED_BYTES = 24 * 1024 * 1024;
+export const AGENSTRY_MAX_COMPRESSED_BYTES = 48 * 1024 * 1024;
/**
* Decompressed-body bound for the same feed. Gzip can expand its input up
* to ~1000:1, so the compressed cap above says nothing about the bytes the
* reader is asked to buffer: without this ceiling a hostile or compromised
* feed expands a small wire body into many times the download before the
- * walk notices. The ceiling sits far above what the bounded walk (300,000
+ * walk notices. The ceiling sits far above what the bounded walk (450,000
* lines) can legitimately consume; growth past it requires a reviewed
- * ceiling change, not a larger silent default.
+ * ceiling change, not a larger silent default. The 2026-11-06 feed expanded to
+ * 127.2 MiB (5.7 times its compressed size), so a compressed feed at its
+ * 48 MiB ceiling would be about 270 MiB: this bound was left as it was.
*/
const MAX_DECOMPRESSED_BYTES = 512 * 1024 * 1024;
/**
* Evidence-window bound for one snapshot. The feed interleaves record kinds
* (mcp, skill, paid_api, workflow) across ~262k lines; the 2026-10-09 snapshot
* showed every signal-bearing a2a_agent record (2,846 of them) inside the
- * first 10,000 lines, so a 12,000-line window covers the complete reviewed
- * intake while the master-directory walk below spans the whole feed.
+ * first 10,000 lines, so a 12,000-line window covered the complete reviewed
+ * intake while the master-directory walk below spans the whole feed. A record
+ * past the window is not read and nothing fails. On 2026-11-06 the 3,454
+ * a2a_agent records ended at line 11,375 (95% of that window) and the block
+ * grew about a fifth in four weeks, so the window is 24,000 lines, which leaves
+ * about three months.
*/
-const MAX_RECORDS_SCANNED = 12_000;
+export const AGENSTRY_EVIDENCE_WINDOW_LINES = 24_000;
/**
* Whole-feed scan stop for the master-directory walk. The 2026-10-09 snapshot
- * held 262,024 lines; 300,000 bounds the walk with growth headroom.
+ * held 262,024 lines; 300,000 bounded the walk with growth headroom. The walk
+ * ends at this line without a failure and nothing past it is read. On
+ * 2026-11-06 the feed held 299,073 lines (99.7% of that) and grew about 14% a
+ * month, so the stop is 450,000, which leaves about three months.
*/
-const MAX_DIRECTORY_SCAN_LINES = 300_000;
+export const AGENSTRY_MAX_WALK_LINES = 450_000;
/**
* Reviewed intake ceiling for one snapshot. A 2026-10-09 feed snapshot held 80
* unique-provider-host signal-bearing records; the ceiling admits all of them
* plus headroom for growth while each accepted record must still pass
- * immutable-evidence review before it can be publicly projected.
+ * immutable-evidence review before it can be publicly projected. On 2026-11-06
+ * the feed held 99 and the run accepted 96, the ceiling then, and dropped the
+ * rest without a failure. 128 admits them with room, and sits inside what the
+ * review tooling lists in one run (`MAX_RUN_REVIEW_OBSERVATIONS`). The count
+ * grew about a quarter in four weeks, so this will bind again in five or six
+ * weeks, and raising it again is a decision of its own.
*/
-export const AGENSTRY_MAX_ACCEPTED_RECORDS = 96;
+export const AGENSTRY_MAX_ACCEPTED_RECORDS = 128;
/**
* Safety bound on directory acknowledgements retained per run. The 2026-10-09
* snapshot held 206,019 mcp + 4,691 paid_api + 2,846 a2a_agent records
- * (~213.7k acknowledged kinds); 240,000 admits all of them with headroom.
+ * (~213.7k acknowledged kinds); 240,000 admitted all of them with headroom.
* skill and workflow records are deliberately not acknowledged: they are
* authored content, not agents. Growth past this bound requires a reviewed
- * ceiling change, not a larger silent default.
+ * ceiling change, not a larger silent default. Once it is reached further
+ * records are dropped without a failure. On 2026-11-06 the feed held 230,827
+ * (96% of that) and the count grew about 8% a month, so the bound is 300,000,
+ * which leaves about three months.
*/
-export const AGENSTRY_MAX_DIRECTORY_ENTRIES = 240_000;
+export const AGENSTRY_MAX_DIRECTORY_ENTRIES = 300_000;
const MAX_RECORD_BYTES = 32 * 1024;
/**
* Pre-buffer bound on the single line readline is currently assembling.
@@ -71,7 +91,11 @@ const MAX_LINE_BYTES = 1024 * 1024;
/**
* The full-feed pull moves ~17.9 MiB compressed; 120 seconds keeps the
* documented anonymous-feed cadence intact on shared-hosting egress while
- * still bounding the request.
+ * still bounding the request. On the evening of 2026-11-06 the pull took 51
+ * seconds from the production server (22.35 MiB at about 450 KB a second), so
+ * the bound was left as it was. A feed at the compressed bound above takes
+ * about 110 seconds at that rate, so this is the next one to look at, at about
+ * 100 seconds.
*/
const REQUEST_TIMEOUT_MS = 120_000;
@@ -236,7 +260,7 @@ async function readBoundedCatalog(response: Response, downloadSignal: AbortSigna
compressedBytes += chunk.byteLength;
// Cut the connection at the cap instead of downloading past it; the
// catch below reports the violation.
- if (compressedBytes > MAX_COMPRESSED_BYTES) source.destroy();
+ if (compressedBytes > AGENSTRY_MAX_COMPRESSED_BYTES) source.destroy();
});
const gunzip = createGunzip();
// pipeline — not a bare pipe — forwards a source error (transport cut,
@@ -304,7 +328,7 @@ async function readBoundedCatalog(response: Response, downloadSignal: AbortSigna
// Evidence intake is bounded to the approved head window: every
// a2a_agent record sits inside it, so the reviewed snapshot never
// depends on the full-feed directory walk below.
- if (discoveredCount <= MAX_RECORDS_SCANNED) {
+ if (discoveredCount <= AGENSTRY_EVIDENCE_WINDOW_LINES) {
const candidate = normalizeRecord(parsed);
if (!candidate) {
rejectedCount += 1;
@@ -324,7 +348,7 @@ async function readBoundedCatalog(response: Response, downloadSignal: AbortSigna
if (draft && !directorySeen.has(draft.externalKey)) directorySeen.set(draft.externalKey, draft);
}
}
- if (discoveredCount >= MAX_DIRECTORY_SCAN_LINES) {
+ if (discoveredCount >= AGENSTRY_MAX_WALK_LINES) {
source.destroy();
break;
}
@@ -335,7 +359,7 @@ async function readBoundedCatalog(response: Response, downloadSignal: AbortSigna
if (lineLimitExceeded) {
throw new AgenstryValidationError("Agenstry catalog exceeded the decompressed line limit.");
}
- if (compressedBytes > MAX_COMPRESSED_BYTES) {
+ if (compressedBytes > AGENSTRY_MAX_COMPRESSED_BYTES) {
throw new AgenstryValidationError("Agenstry catalog exceeded the compressed response limit.");
}
} catch (error) {
@@ -350,7 +374,7 @@ async function readBoundedCatalog(response: Response, downloadSignal: AbortSigna
if (lineLimitExceeded) {
throw new AgenstryValidationError("Agenstry catalog exceeded the decompressed line limit.");
}
- if (compressedBytes > MAX_COMPRESSED_BYTES) {
+ if (compressedBytes > AGENSTRY_MAX_COMPRESSED_BYTES) {
throw new AgenstryValidationError("Agenstry catalog exceeded the compressed response limit.");
}
if (downloadSignal.aborted) throw new AgenstryValidationError("Agenstry catalog download timed out.");
diff --git a/apps/nooscape-relay/server/ingestion/agenstryFeed.test.ts b/apps/nooscape-relay/server/ingestion/agenstryFeed.test.ts
index 2628d49..9de48a8 100644
--- a/apps/nooscape-relay/server/ingestion/agenstryFeed.test.ts
+++ b/apps/nooscape-relay/server/ingestion/agenstryFeed.test.ts
@@ -26,7 +26,15 @@ vi.mock("../storage", () => ({
storagePut: mocks.storagePut,
}));
-import { fetchAgenstryCatalog, AgenstryValidationError } from "./agenstry";
+import {
+ AGENSTRY_EVIDENCE_WINDOW_LINES,
+ AGENSTRY_MAX_ACCEPTED_RECORDS,
+ AGENSTRY_MAX_COMPRESSED_BYTES,
+ AGENSTRY_MAX_DIRECTORY_ENTRIES,
+ AGENSTRY_MAX_WALK_LINES,
+ fetchAgenstryCatalog,
+ AgenstryValidationError,
+} from "./agenstry";
function catalogSource(): IngestionSource {
return {
@@ -67,6 +75,20 @@ const MCP_LINE = JSON.stringify({
url: "https://smithery.ai/servers/mcp-1",
});
const FEED = gzipSync(Buffer.from(`${A2A_LINE}\n${MCP_LINE}\n`));
+/** A signal-bearing a2a_agent record with a provider host of its own. */
+const a2aLine = (n: number) =>
+ JSON.stringify({
+ kind: "a2a_agent",
+ id: `rec-${n}`,
+ name: `Agent ${n}`,
+ url: `https://agent${n}.example.org/.well-known/agent-card.json`,
+ provider_url: `https://provider${n}.example.org/`,
+ signed: true,
+ });
+/** A line the evidence intake rejects and the directory does not acknowledge (a skill is authored content). */
+const skillLine = (n: number) => `{"kind":"skill","id":"s${n}","name":"Skill ${n}"}`;
+const mcpLine = (n: number) => `{"kind":"mcp","id":"m${n}","name":"Mcp ${n}","url":"https://m${n}.example.org/"}`;
+const feedOf = (lines: string[]) => gzipSync(Buffer.from(`${lines.join("\n")}\n`));
function gzipResponse(body: Buffer) {
return {
@@ -113,20 +135,99 @@ describe("fetchAgenstryCatalog stream guards", () => {
});
it("cuts the connection at the compressed cap and reports the violation", async () => {
- // Incompressible payload above the 24 MiB ceiling: the data handler
- // destroys the source the moment the cap is crossed, and the verdict is
- // the cap violation — never a truncated success.
- const oversized = gzipSync(randomBytes(25 * 1024 * 1024));
- vi.stubGlobal("fetch", vi.fn(async () => gzipResponse(oversized)));
+ // Incompressible payload well above the 48 MiB ceiling, served in 1 MiB
+ // pieces: the data handler destroys the source the moment the cap is
+ // crossed, which cancels the body, and the verdict is the cap violation,
+ // never a truncated success. The check after the read would give the same
+ // verdict once the whole body had been downloaded, so the cancel and the
+ // pieces served are what pin the cut.
+ const piece = 1024 * 1024;
+ const oversized = gzipSync(randomBytes(AGENSTRY_MAX_COMPRESSED_BYTES + 16 * piece), { level: 0 });
+ let served = 0;
+ let cancelled = false;
+ const body = new ReadableStream({
+ pull(controller) {
+ if (served >= oversized.length) {
+ controller.close();
+ return;
+ }
+ controller.enqueue(oversized.subarray(served, served + piece));
+ served += piece;
+ },
+ cancel() {
+ cancelled = true;
+ },
+ });
+ vi.stubGlobal(
+ "fetch",
+ vi.fn(
+ async () =>
+ ({
+ ok: true,
+ status: 200,
+ headers: { get: (name: string) => (name.toLowerCase() === "content-type" ? "application/gzip" : null) },
+ body,
+ }) as unknown as Response
+ )
+ );
await expect(fetchAgenstryCatalog(catalogSource())).rejects.toThrow(
"Agenstry catalog exceeded the compressed response limit."
);
+ expect(cancelled).toBe(true);
+ // The couple of pieces read ahead when the cap is crossed are served; the rest are not.
+ expect(served).toBeLessThanOrEqual(AGENSTRY_MAX_COMPRESSED_BYTES + 8 * piece);
expect(mocks.storagePut).not.toHaveBeenCalled();
+ }, 60_000);
+
+ it("reads a signal-bearing record at the last line of the evidence window and none past it, though the directory walk still acknowledges the one past it", async () => {
+ // A record past the window is dropped from the reviewed intake and nothing fails, so the line the window ends on is pinned from both sides.
+ const lines = Array.from({ length: AGENSTRY_EVIDENCE_WINDOW_LINES + 1 }, (_, index) => skillLine(index + 1));
+ lines[AGENSTRY_EVIDENCE_WINDOW_LINES - 1] = a2aLine(1);
+ lines[AGENSTRY_EVIDENCE_WINDOW_LINES] = a2aLine(2);
+ vi.stubGlobal("fetch", vi.fn(async () => gzipResponse(feedOf(lines))));
+
+ const snapshot = await fetchAgenstryCatalog(catalogSource());
+
+ expect(snapshot.discoveredCount).toBe(AGENSTRY_EVIDENCE_WINDOW_LINES + 1);
+ expect(snapshot.candidates.map(entry => entry.candidate.externalRecordId)).toEqual(["rec-1"]);
+ expect(snapshot.directory.map(entry => entry.externalKey).sort()).toEqual(["rec-1", "rec-2"]);
+ }, 60_000);
+
+ it("accepts at most the intake ceiling of records with a provider host each, and drops the rest without a failure", async () => {
+ const lines = Array.from({ length: AGENSTRY_MAX_ACCEPTED_RECORDS + 3 }, (_, index) => a2aLine(index + 1));
+ vi.stubGlobal("fetch", vi.fn(async () => gzipResponse(feedOf(lines))));
+
+ const snapshot = await fetchAgenstryCatalog(catalogSource());
+
+ expect(snapshot.candidates).toHaveLength(AGENSTRY_MAX_ACCEPTED_RECORDS);
+ expect(snapshot.candidates.at(-1)!.candidate.externalRecordId).toBe(`rec-${AGENSTRY_MAX_ACCEPTED_RECORDS}`);
+ expect(snapshot.observations).toHaveLength(AGENSTRY_MAX_ACCEPTED_RECORDS);
+ expect(mocks.storagePut).toHaveBeenCalledTimes(AGENSTRY_MAX_ACCEPTED_RECORDS);
+ // The three over the ceiling are not rejected either: they are simply not taken.
+ expect(snapshot.rejectedCount).toBe(0);
+ expect(snapshot.discoveredCount).toBe(AGENSTRY_MAX_ACCEPTED_RECORDS + 3);
});
+ it("stops the directory walk at the line bound and holds the directory at its ceiling, dropping the rest without a failure", async () => {
+ // More acknowledged lines than the directory ceiling, and more lines than the walk bound: the walk ends at the bound, nothing past it is read,
+ // and the directory holds exactly its ceiling of the lines it reached.
+ const total = AGENSTRY_MAX_WALK_LINES + 5;
+ const lines = Array.from({ length: total }, (_, index) => (index < AGENSTRY_MAX_DIRECTORY_ENTRIES + 5 ? mcpLine(index + 1) : skillLine(index + 1)));
+ vi.stubGlobal("fetch", vi.fn(async () => gzipResponse(feedOf(lines))));
+
+ const snapshot = await fetchAgenstryCatalog(catalogSource());
+
+ expect(snapshot.discoveredCount).toBe(AGENSTRY_MAX_WALK_LINES);
+ expect(snapshot.directory).toHaveLength(AGENSTRY_MAX_DIRECTORY_ENTRIES);
+ // The first mcp lines were kept and the last five of the mcp block, past the directory ceiling, were dropped.
+ expect(snapshot.directory.some(entry => entry.externalKey === "mcp:m1")).toBe(true);
+ expect(snapshot.directory.some(entry => entry.externalKey === `mcp:m${AGENSTRY_MAX_DIRECTORY_ENTRIES}`)).toBe(true);
+ expect(snapshot.directory.some(entry => entry.externalKey === `mcp:m${AGENSTRY_MAX_DIRECTORY_ENTRIES + 5}`)).toBe(false);
+ }, 120_000);
+
it("cuts the connection at the decompressed cap and reports the violation", async () => {
- // The gzip bomb: the wire body stays far under the 24 MiB compressed
+ // The gzip bomb: the wire body stays far under the 48 MiB compressed
// cap while the expanded stream sails past the decompressed ceiling —
// only a bound on the gunzip output can see this. The wire body is 513
// concatenated single-line gzip members (RFC 1952 multi-member gzip),
diff --git a/apps/nooscape-relay/server/ingestion/catalogAdapters.test.ts b/apps/nooscape-relay/server/ingestion/catalogAdapters.test.ts
index 812d8a1..441c702 100644
--- a/apps/nooscape-relay/server/ingestion/catalogAdapters.test.ts
+++ b/apps/nooscape-relay/server/ingestion/catalogAdapters.test.ts
@@ -1,5 +1,14 @@
import { describe, expect, it, vi } from "vitest";
-import { AGENSTRY_MAX_ACCEPTED_RECORDS, AGENSTRY_MAX_DIRECTORY_ENTRIES, agenstryDirectoryDraft, fetchAgenstryCatalog } from "./agenstry";
+import { MAX_RUN_REVIEW_OBSERVATIONS } from "../db";
+import {
+ AGENSTRY_EVIDENCE_WINDOW_LINES,
+ AGENSTRY_MAX_ACCEPTED_RECORDS,
+ AGENSTRY_MAX_COMPRESSED_BYTES,
+ AGENSTRY_MAX_DIRECTORY_ENTRIES,
+ AGENSTRY_MAX_WALK_LINES,
+ agenstryDirectoryDraft,
+ fetchAgenstryCatalog,
+} from "./agenstry";
import { METAPLEX_MAX_ACCEPTED_RECORDS, METAPLEX_MAX_PAGES, metaplexPageUrl } from "./metaplex";
import { fetchAgentEconomyCensus } from "./agenteconomy";
import type { IngestionSource } from "../../drizzle/schema";
@@ -28,14 +37,29 @@ function source(overrides: Partial): IngestionSource {
describe("bounded public-feed adapters", () => {
it("keeps the reviewed catalog intake ceiling explicit and bounded", () => {
- expect(AGENSTRY_MAX_ACCEPTED_RECORDS).toBe(96);
- expect(AGENSTRY_MAX_ACCEPTED_RECORDS).toBeLessThan(100);
+ expect(AGENSTRY_MAX_ACCEPTED_RECORDS).toBe(128);
+ expect(AGENSTRY_MAX_ACCEPTED_RECORDS).toBeLessThan(200);
+ });
+
+ it("keeps the intake ceiling inside what the review tooling lists and batch-verifies in one run, so every retained observation can be checked before projection", () => {
+ expect(AGENSTRY_MAX_ACCEPTED_RECORDS).toBeLessThanOrEqual(MAX_RUN_REVIEW_OBSERVATIONS);
});
it("keeps the full-feed directory harvest ceiling explicit and bounded", () => {
- // The 2026-10-09 feed held ~213.7k acknowledged-kind records; the ceiling
- // must admit them all without admitting unbounded growth.
- expect(AGENSTRY_MAX_DIRECTORY_ENTRIES).toBe(240_000);
+ // The 2026-10-09 feed held ~213.7k acknowledged-kind records and the 2026-11-06 feed 230.8k; the ceiling
+ // must admit them all with room without admitting unbounded growth.
+ expect(AGENSTRY_MAX_DIRECTORY_ENTRIES).toBe(300_000);
+ });
+
+ it("keeps the size and line bounds of the feed read explicit, each above what the 2026-11-06 feed used (22.35 MiB compressed, 299,073 lines, the last a2a_agent record at line 11,375)", () => {
+ expect(AGENSTRY_MAX_COMPRESSED_BYTES).toBe(48 * 1024 * 1024);
+ expect(AGENSTRY_MAX_COMPRESSED_BYTES).toBeGreaterThan(23_431_777);
+ expect(AGENSTRY_MAX_WALK_LINES).toBe(450_000);
+ expect(AGENSTRY_MAX_WALK_LINES).toBeGreaterThan(299_073);
+ expect(AGENSTRY_EVIDENCE_WINDOW_LINES).toBe(24_000);
+ expect(AGENSTRY_EVIDENCE_WINDOW_LINES).toBeGreaterThan(11_375);
+ // The walk reaches every line the window does.
+ expect(AGENSTRY_EVIDENCE_WINDOW_LINES).toBeLessThan(AGENSTRY_MAX_WALK_LINES);
});
it("acknowledges MCP and paid API records with kind-prefixed directory keys", () => {
diff --git a/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.test.ts b/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.test.ts
index 8db1c89..726ebd8 100644
--- a/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.test.ts
+++ b/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.test.ts
@@ -1,7 +1,7 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { decodeRegisteredLog, decodeUriUpdatedLog, directoryDraft, externalKey, hasProfileLink, parseWindowLogs, uriFacts } from "./erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, BSC_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./erc8004Chains";
-import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./erc8004ChainFixtures";
+import { ARC_CHAIN, BASE_CHAIN, BSC_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./erc8004Chains";
+import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, GNOSIS_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./erc8004ChainFixtures";
import { Erc8004RpcHttpError, Erc8004RpcRangeError, callRpc } from "./erc8004Rpc";
/**
@@ -16,6 +16,7 @@ const CASES: Array<[string, Erc8004Chain, ChainFixtures]> = [
["Base", BASE_CHAIN, BASE_FIXTURES],
["Arc", ARC_CHAIN, ARC_FIXTURES],
["Monad", MONAD_CHAIN, MONAD_FIXTURES],
+ ["Gnosis", GNOSIS_CHAIN, GNOSIS_FIXTURES],
];
const EVERYTHING = { fromBlock: 0, toBlock: Number.MAX_SAFE_INTEGER };
const blockOf = (log: ChainFixtureLog) => Number.parseInt(log.blockNumber as string, 16);
@@ -91,7 +92,7 @@ describe.each(CASES)("the %s recording", (_name, chain, fixtures) => {
});
it("gives the same agent id on another chain a different entry", () => {
- for (const other of [BSC_CHAIN, ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN].filter(candidate => candidate !== chain)) {
+ for (const other of [BSC_CHAIN, ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN].filter(candidate => candidate !== chain)) {
for (const { expected } of Object.values(fixtures.registered)) {
expect(externalKey(other, expected.agentId)).not.toBe(externalKey(chain, expected.agentId));
}
@@ -217,6 +218,16 @@ describe("what each provider said to a window that was too wide", () => {
expect(monad.message).toBe("Monad eth_getLogs was rejected as returning too many results.");
});
+ it("names Alchemy's refusal on Gnosis, sent as an HTTP 400 that says the window passed the 10,000 blocks its plan answers, a block-range fault", async () => {
+ const [refusal] = GNOSIS_FIXTURES.refusals;
+ expect(refusal!.status).toBe(400);
+ fetchMock.mockResolvedValueOnce(answer(refusal!));
+ const gnosis = await outcome(GNOSIS_CHAIN);
+ expect(gnosis).toBeInstanceOf(Erc8004RpcRangeError);
+ expect((gnosis as Erc8004RpcRangeError).reason).toBe("block_range");
+ expect(gnosis.message).toBe("Gnosis eth_getLogs was rejected as exceeding the provider's block range.");
+ });
+
it("has nothing recorded for Arc, whose node never refused a window", () => {
expect(ARC_FIXTURES.refusals).toEqual([]);
});
@@ -227,6 +238,7 @@ describe("what each provider said to a window that was too wide", () => {
[BASE_CHAIN, [1_000, 3_000]],
[ARC_CHAIN, [1_000, 2_000, 4_000]],
[MONAD_CHAIN, [1_000, 3_000]],
+ [GNOSIS_CHAIN, [1_000, 3_000]],
] as const) {
fetchMock.mockReset();
fetchMock.mockImplementation(async () => new Response("", { status: 429 }));
diff --git a/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.ts b/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.ts
index 8d4d327..7c9c5c0 100644
--- a/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.ts
+++ b/apps/nooscape-relay/server/ingestion/erc8004ChainFixtures.ts
@@ -11,6 +11,12 @@
* web link whose agent later replaced it twice and handed the token on, inline JSON with a name, an empty URI, an IPFS link and a raw JSON
* string (an unrecognized scheme). Its `refusals` hold the answer Alchemy gave to a window of 6,000,000 blocks that held more than 10,000 logs.
*
+ * Gnosis's recording was made on 2026-11-06 from a read of the registry's whole history (docs/gnosis-erc8004-2026-11-06.md): a web link from the
+ * launch burst, a web link whose token was handed to another wallet and whose link was replaced, a web link that became a second web link, then
+ * inline JSON, then an IPFS link, inline JSON with a name that was later replaced by an IPFS link, inline JSON with a name, an empty
+ * URI and an empty URI that was set later, and an IPFS link. Its `refusals` hold the answer Alchemy gave to a window of 50,000 blocks, wider
+ * than the 10,000 its plan answers.
+ *
* The logs were screened before they were chosen: none of the URIs or inline JSON holds an IP address, an email-like string, a
* credential in a URL or a secret-looking word. Nothing about a provider's address is here. `refusals` are the answers a provider
* gave to a window that was too wide, as it sent them (status and body); Arc's node never refused a window, so it has none.
@@ -1307,3 +1313,595 @@ export const MONAD_FIXTURES: ChainFixtures = {
],
"protocol": "erc8004_monad"
};
+
+export const GNOSIS_FIXTURES: ChainFixtures = {
+ "chainId": "0x64",
+ "finalized": {
+ "number": "0x2ede4b1",
+ "hash": "0x444cbb81effd1151e8cdac223c15cbffc7f98c09d75cc7952fd37117fd4947e5",
+ "timestamp": "0x6aee397c"
+ },
+ "registered": {
+ "web": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "0x0000000000000000000000006e8f740f23f07ce129daa59786926feca8c2d2f3"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003b68747470733a2f2f6d61726b6574706c6163652e6f6c61732e6e6574776f726b2f657263383030342f676e6f7369732f61692d6167656e74732f310000000000",
+ "blockNumber": "0x2a71e61",
+ "blockTimestamp": "0x6983381c",
+ "transactionHash": "0x9ec3f64ca13a42f7d6f9372331d92dfca46ad8d54de019f878b0a840362f22fb",
+ "transactionIndex": "0x2",
+ "blockHash": "0x9d960872d456414f6db4870b665e54ec077dfcebb95d2cf987c9c03d8fdb90f6",
+ "logIndex": "0x9",
+ "removed": false
+ },
+ "expected": {
+ "agentId": "1",
+ "owner": "0x6e8f740f23f07ce129daa59786926feca8c2d2f3",
+ "blockNumber": 44506721,
+ "logIndex": 9,
+ "uriKind": "web",
+ "uriLength": 59,
+ "profileUriHash": "09c7f3aa35de1859a4cc44488fbcb51f6058fe4d2e40d788b84ef54136b7823e",
+ "locatorHost": "marketplace.olas.network",
+ "inlineName": null,
+ "truncated": false
+ }
+ },
+ "web_handed_over": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xac0a8e52624f87e2a95ab9d9a9408435636f536b40f212503090fafd9957ca95",
+ "blockNumber": "0x2b19b04",
+ "blockTimestamp": "0x69b92625",
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003c68747470733a2f2f6e66746d61696c2e626f782f6170692f6167656e742d636172643f6167656e743d67686f73746167656e7426736c643d6d6f6c7400000000",
+ "logIndex": "0x70",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000c7f",
+ "0x0000000000000000000000001c63c3d9d211641e15cd3af46de76b4bc84cc382"
+ ],
+ "transactionHash": "0xc7d9d3a1b7eec74d0f0c77c21fd8220c5b53e8dd11eb5d160001329f1b7af0a2",
+ "transactionIndex": "0x16"
+ },
+ "expected": {
+ "agentId": "3199",
+ "owner": "0x1c63c3d9d211641e15cd3af46de76b4bc84cc382",
+ "blockNumber": 45193988,
+ "logIndex": 112,
+ "uriKind": "web",
+ "uriLength": 60,
+ "profileUriHash": "d4e9dfbef1c42c8d567219df2f648bf9d1c417f357c9ac3c6f1c202a9093161a",
+ "locatorHost": "nftmail.box",
+ "inlineName": null,
+ "truncated": false
+ }
+ },
+ "web_through_kinds": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x93639b55550b8229f98ce4735a59af0b458436da767fd2e9934da4b84b34b21b",
+ "blockNumber": "0x2b31786",
+ "blockTimestamp": "0x69c0bd22",
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f6d656d6f72612d70726f64756374696f6e2d626663342e75702e7261696c7761792e6170702f6167656e742d6d657461646174612e6a736f6e00000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0x7d",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000cbb",
+ "0x00000000000000000000000033a369788781d669ae1ebfab67ff55df527083b1"
+ ],
+ "transactionHash": "0xabedfdc0b996f2ff4ce36bd00054599ada888ff8d7b7cdeccfad8c8d7311d192",
+ "transactionIndex": "0x7"
+ },
+ "expected": {
+ "agentId": "3259",
+ "owner": "0x33a369788781d669ae1ebfab67ff55df527083b1",
+ "blockNumber": 45291398,
+ "logIndex": 125,
+ "uriKind": "web",
+ "uriLength": 65,
+ "profileUriHash": "6097ba1e32c536b42cc8bc3b09db2f9e5c39eb01799f35cd1155498005dd6e76",
+ "locatorHost": "memora-production-bfc4.up.railway.app",
+ "inlineName": null,
+ "truncated": false
+ }
+ },
+ "inline_named": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x6fa1cd465685afd086d3eb8ff3de33ade70578acb945fe9df8ddd1674d3ca1a3",
+ "blockNumber": "0x2a8540a",
+ "blockTimestamp": "0x69895f49",
+ "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001b5646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65794a306558426c496a6f696148523063484d364c79396c6158427a4c6d5630614756795a5856744c6d39795a793946535642544c325670634330344d44413049334a6c5a326c7a64484a6864476c76626931324d534973496d3568625755694f694a43636d6c6b5a325567546d46326157646864473979496977695a47567a59334a7063485270623234694f694a446232317759584a6c6379426a636d397a6379316a6147467062694269636d6c6b5a32567a49475a7663694276634852706257467349475a6c5a584d7349484e775a57566b4c434268626d51676332566a64584a7064486b676157346764484a68626e4e6d5a584a7a4c6c7875584734694c434a706257466e5a53493649694973496d466a64476c325a53493664484a315a537769654451774d6c4e3163484276636e51694f6e527964575573496e4e3163484276636e526c5a46527964584e30496a7062496e4a6c6348563059585270623234694c434a6a636e6c77644738745a574e76626d397461574d694c434a305a575574595852305a584e3059585270623234695858303d0000000000000000000000",
+ "logIndex": "0x19",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000a65",
+ "0x000000000000000000000000f0260e882b048ea3204fa964cdecad9f692cf027"
+ ],
+ "transactionHash": "0xc25f284abe9f0a11f54da9532722eacd9a876e320151dfe663ab87bcfff2bc15",
+ "transactionIndex": "0x4"
+ },
+ "expected": {
+ "agentId": "2661",
+ "owner": "0xf0260e882b048ea3204fa964cdecad9f692cf027",
+ "blockNumber": 44585994,
+ "logIndex": 25,
+ "uriKind": "inline-json",
+ "uriLength": 437,
+ "profileUriHash": "dc64b5e75a3c4790c2c297cdad6fd391862dcf8b674b7b814d18f098c70b4bee",
+ "locatorHost": null,
+ "inlineName": "Bridge Navigator",
+ "truncated": false
+ }
+ },
+ "inline_named_then_ipfs": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x9a1c10718dad869b532a547cdc703c74f4a6f30b00e19cf433e1cfa53c81a502",
+ "blockNumber": "0x2a7ffa5",
+ "blockTimestamp": "0x6987b135",
+ "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002e1646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65794a306558426c496a6f696148523063484d364c79396c6158427a4c6d5630614756795a5856744c6d39795a793946535642544c325670634330344d44413049334a6c5a326c7a64484a6864476c76626931324d534973496d3568625755694f694a42636d4e68496977695a47567a59334a7063485270623234694f694a425353426863334e7063335268626e51675a6d39794948646c596a4d675a4756325a5778766347316c626e517549454675494746796179426a59584a7965576c755a7942745a5746756157356e49475a76636e6468636d517549697769615731685a3255694f694a6f64485277637a6f764c3264686447563359586b7563476c75595852684c6d4e736233566b4c326c775a6e4d7655573158636a63314e577468566b31495744524262314e30567a684765546c6d6232396a52575a4361577472566c5653556c5a6b525555794e7a56754d694973496e4e6c636e5a705932567a496a706258537769654451774d6c4e3163484276636e51694f6d5a6862484e6c4c434a6859335270646d55694f6e527964575573496e4a6c5a326c7a64484a6864476c76626e4d694f6c7437496d466e5a573530535751694f6a49794e7a63314c434a685a32567564464a6c5a326c7a64484a35496a6f695a576c774d5455314f6a45364d4867344d444130515445324f555a434e47457a4d7a49314d544d32525549794f575a424d474e6c516a5a454d6d55314d7a6c684e444d79496e307365794a685a32567564456c6b496a6f794d7a63324c434a685a32567564464a6c5a326c7a64484a35496a6f695a576c774d5455314f6a67304e544d364d4867344d444130515445324f555a434e47457a4d7a49314d544d32525549794f575a424d474e6c516a5a454d6d55314d7a6c684e444d79496e31644c434a7a6458427762334a305a575255636e567a6443493657794a795a5842316447463061573975496c313900000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0x3f",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000a63",
+ "0x0000000000000000000000001be93c700ddc596d701e8f2106b8f9166c625adb"
+ ],
+ "transactionHash": "0x73c3a28952f0f2c371b962a806bd5e2e7a75da9fd5a44dad48d5892e2e1c11b5",
+ "transactionIndex": "0x2a"
+ },
+ "expected": {
+ "agentId": "2659",
+ "owner": "0x1be93c700ddc596d701e8f2106b8f9166c625adb",
+ "blockNumber": 44564389,
+ "logIndex": 63,
+ "uriKind": "inline-json",
+ "uriLength": 737,
+ "profileUriHash": "531d77b6afced5258ea1b761ef367f2a5264f2373b1585fb6c300217550d9eee",
+ "locatorHost": null,
+ "inlineName": "Arca",
+ "truncated": false
+ }
+ },
+ "empty": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x1f53d7df12a594f100f44d7a51b56015554b54d57333c57f77f1e3f726478f9e",
+ "blockNumber": "0x2ab8f99",
+ "blockTimestamp": "0x699a01a5",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0xa",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000a89",
+ "0x00000000000000000000000075b583c518215e272f3c0a3bcc1b27012f294adc"
+ ],
+ "transactionHash": "0xfec2fda52633d6cf87048152eb29dae04c948cf453775d3a6f358f675ecc341b",
+ "transactionIndex": "0x5"
+ },
+ "expected": {
+ "agentId": "2697",
+ "owner": "0x75b583c518215e272f3c0a3bcc1b27012f294adc",
+ "blockNumber": 44797849,
+ "logIndex": 10,
+ "uriKind": "empty",
+ "uriLength": 0,
+ "profileUriHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "locatorHost": null,
+ "inlineName": null,
+ "truncated": false
+ }
+ },
+ "empty_then_set": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x88e04970ec1579376083930f3abce5010c6bcc4f32bc83547d6a02f6826a4783",
+ "blockNumber": "0x2b1e1de",
+ "blockTimestamp": "0x69ba8fdd",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0xb",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000c87",
+ "0x000000000000000000000000da977767452c5dd021624511f14df67b6c9c2c1b"
+ ],
+ "transactionHash": "0x5a2405069ea567924f0093367ca510dfb01ea4cf90cf87df4a3b5d299e438273",
+ "transactionIndex": "0x9"
+ },
+ "expected": {
+ "agentId": "3207",
+ "owner": "0xda977767452c5dd021624511f14df67b6c9c2c1b",
+ "blockNumber": 45212126,
+ "logIndex": 11,
+ "uriKind": "empty",
+ "uriLength": 0,
+ "profileUriHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "locatorHost": null,
+ "inlineName": null,
+ "truncated": false
+ }
+ },
+ "ipfs": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xdecc5c07ac10528fe67fba3e7784441eb3ec65b68a81284cad9ef224ac13fb36",
+ "blockNumber": "0x2b5532f",
+ "blockTimestamp": "0x69cc1c58",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d55546f374c50785758644d3875636733514d4553784d7134743270783468653675736a4d586975444d4472620000000000000000000000",
+ "logIndex": "0x70",
+ "removed": false,
+ "topics": [
+ "0xca52e62c367d81bb2e328eb795f7c7ba24afb478408a26c0e201d155c449bc4a",
+ "0x0000000000000000000000000000000000000000000000000000000000000cf4",
+ "0x00000000000000000000000008849082224d3b503a5384a693cbf7bc7ce154cd"
+ ],
+ "transactionHash": "0xa6f6e4441ddfe716be9b0086bf4d509723652aaba4e70c53a5ab65eb0a2d3258",
+ "transactionIndex": "0x19"
+ },
+ "expected": {
+ "agentId": "3316",
+ "owner": "0x08849082224d3b503a5384a693cbf7bc7ce154cd",
+ "blockNumber": 45437743,
+ "logIndex": 112,
+ "uriKind": "ipfs",
+ "uriLength": 53,
+ "profileUriHash": "5927e94f2f5d90bfde7fad2e3c7f86564c80bb5fd954dbab5fd34cb203b89957",
+ "locatorHost": null,
+ "inlineName": null,
+ "truncated": false
+ }
+ }
+ },
+ "mints": {
+ "1": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x0000000000000000000000006e8f740f23f07ce129daa59786926feca8c2d2f3",
+ "0x0000000000000000000000000000000000000000000000000000000000000001"
+ ],
+ "data": "0x",
+ "blockNumber": "0x2a71e61",
+ "blockTimestamp": "0x6983381c",
+ "transactionHash": "0x9ec3f64ca13a42f7d6f9372331d92dfca46ad8d54de019f878b0a840362f22fb",
+ "transactionIndex": "0x2",
+ "blockHash": "0x9d960872d456414f6db4870b665e54ec077dfcebb95d2cf987c9c03d8fdb90f6",
+ "logIndex": "0x7",
+ "removed": false
+ },
+ "3199": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xac0a8e52624f87e2a95ab9d9a9408435636f536b40f212503090fafd9957ca95",
+ "blockNumber": "0x2b19b04",
+ "blockTimestamp": "0x69b92625",
+ "data": "0x",
+ "logIndex": "0x6e",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x0000000000000000000000001c63c3d9d211641e15cd3af46de76b4bc84cc382",
+ "0x0000000000000000000000000000000000000000000000000000000000000c7f"
+ ],
+ "transactionHash": "0xc7d9d3a1b7eec74d0f0c77c21fd8220c5b53e8dd11eb5d160001329f1b7af0a2",
+ "transactionIndex": "0x16"
+ },
+ "3259": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x93639b55550b8229f98ce4735a59af0b458436da767fd2e9934da4b84b34b21b",
+ "blockNumber": "0x2b31786",
+ "blockTimestamp": "0x69c0bd22",
+ "data": "0x",
+ "logIndex": "0x7b",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x00000000000000000000000033a369788781d669ae1ebfab67ff55df527083b1",
+ "0x0000000000000000000000000000000000000000000000000000000000000cbb"
+ ],
+ "transactionHash": "0xabedfdc0b996f2ff4ce36bd00054599ada888ff8d7b7cdeccfad8c8d7311d192",
+ "transactionIndex": "0x7"
+ },
+ "2661": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x6fa1cd465685afd086d3eb8ff3de33ade70578acb945fe9df8ddd1674d3ca1a3",
+ "blockNumber": "0x2a8540a",
+ "blockTimestamp": "0x69895f49",
+ "data": "0x",
+ "logIndex": "0x17",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000f0260e882b048ea3204fa964cdecad9f692cf027",
+ "0x0000000000000000000000000000000000000000000000000000000000000a65"
+ ],
+ "transactionHash": "0xc25f284abe9f0a11f54da9532722eacd9a876e320151dfe663ab87bcfff2bc15",
+ "transactionIndex": "0x4"
+ },
+ "2659": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x9a1c10718dad869b532a547cdc703c74f4a6f30b00e19cf433e1cfa53c81a502",
+ "blockNumber": "0x2a7ffa5",
+ "blockTimestamp": "0x6987b135",
+ "data": "0x",
+ "logIndex": "0x3d",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x0000000000000000000000001be93c700ddc596d701e8f2106b8f9166c625adb",
+ "0x0000000000000000000000000000000000000000000000000000000000000a63"
+ ],
+ "transactionHash": "0x73c3a28952f0f2c371b962a806bd5e2e7a75da9fd5a44dad48d5892e2e1c11b5",
+ "transactionIndex": "0x2a"
+ },
+ "2697": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x1f53d7df12a594f100f44d7a51b56015554b54d57333c57f77f1e3f726478f9e",
+ "blockNumber": "0x2ab8f99",
+ "blockTimestamp": "0x699a01a5",
+ "data": "0x",
+ "logIndex": "0x9",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x00000000000000000000000075b583c518215e272f3c0a3bcc1b27012f294adc",
+ "0x0000000000000000000000000000000000000000000000000000000000000a89"
+ ],
+ "transactionHash": "0xfec2fda52633d6cf87048152eb29dae04c948cf453775d3a6f358f675ecc341b",
+ "transactionIndex": "0x5"
+ },
+ "3207": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x88e04970ec1579376083930f3abce5010c6bcc4f32bc83547d6a02f6826a4783",
+ "blockNumber": "0x2b1e1de",
+ "blockTimestamp": "0x69ba8fdd",
+ "data": "0x",
+ "logIndex": "0xa",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000da977767452c5dd021624511f14df67b6c9c2c1b",
+ "0x0000000000000000000000000000000000000000000000000000000000000c87"
+ ],
+ "transactionHash": "0x5a2405069ea567924f0093367ca510dfb01ea4cf90cf87df4a3b5d299e438273",
+ "transactionIndex": "0x9"
+ },
+ "3316": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xdecc5c07ac10528fe67fba3e7784441eb3ec65b68a81284cad9ef224ac13fb36",
+ "blockNumber": "0x2b5532f",
+ "blockTimestamp": "0x69cc1c58",
+ "data": "0x",
+ "logIndex": "0x6e",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x00000000000000000000000008849082224d3b503a5384a693cbf7bc7ce154cd",
+ "0x0000000000000000000000000000000000000000000000000000000000000cf4"
+ ],
+ "transactionHash": "0xa6f6e4441ddfe716be9b0086bf4d509723652aaba4e70c53a5ab65eb0a2d3258",
+ "transactionIndex": "0x19"
+ }
+ },
+ "secondary": {
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xa0ef7f6b0287171022a1fb386a86847920ae8de1df5e937a0079c21f17ee342f",
+ "blockNumber": "0x2b19bac",
+ "blockTimestamp": "0x69b92990",
+ "data": "0x",
+ "logIndex": "0x23",
+ "removed": false,
+ "topics": [
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
+ "0x0000000000000000000000001c63c3d9d211641e15cd3af46de76b4bc84cc382",
+ "0x000000000000000000000000b7e493e3d226f8fe722cc9916ff164b793af13f4",
+ "0x0000000000000000000000000000000000000000000000000000000000000c7f"
+ ],
+ "transactionHash": "0xa2f4d00d82ce7cac833c1576ad1900f19233476f9e9fc8148f516816b09b17b1",
+ "transactionIndex": "0x13"
+ },
+ "agentId": "3199",
+ "from": "0x1c63c3d9d211641e15cd3af46de76b4bc84cc382",
+ "to": "0xb7e493e3d226f8fe722cc9916ff164b793af13f4",
+ "blockNumber": 45194156,
+ "logIndex": 35
+ },
+ "uriUpdates": [
+ {
+ "label": "inline_to_ipfs",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0xe3effce85a17ddd276687803974167f9a46e3372fb8d01355fc0545a61ff2b1a",
+ "blockNumber": "0x2ae196a",
+ "blockTimestamp": "0x69a70b8e",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5a6355696e75684a71465674574e577636777a6b6f74737846726632725533526b74624c44656b467a5753720000000000000000000000",
+ "logIndex": "0x4f2",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000a63",
+ "0x0000000000000000000000001be93c700ddc596d701e8f2106b8f9166c625adb"
+ ],
+ "transactionHash": "0x11cf6fef3660875792ba49d68e571b1dc672b949aab9cfa28bad6f4cb5299e70",
+ "transactionIndex": "0x5"
+ },
+ "agentId": "2659",
+ "blockNumber": 44964202,
+ "logIndex": 1266,
+ "newKind": "ipfs",
+ "uriLength": 53,
+ "locatorHost": null,
+ "profileUriHash": "2979fa24a6a07a5c552d0534d5ab6861b9dc30a3419537db74301a3c83674afd",
+ "inlineName": null
+ },
+ {
+ "label": "web_replaced",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x1df6dbd6f9b25227f4b38ad911c0ea7a8b94944aeff59d556f10cb133953945e",
+ "blockNumber": "0x2b1c733",
+ "blockTimestamp": "0x69ba0793",
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f67686f73746167656e742e6e696e6a612f6170692f6167656e742d636172643f6167656e743d67686f73746167656e7426736c643d7661756c74000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0x5b",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000c7f",
+ "0x000000000000000000000000b7e493e3d226f8fe722cc9916ff164b793af13f4"
+ ],
+ "transactionHash": "0xe8d22a96a6dd1580c14697c756ef67d9eb3f68e6f4729cc9a897618944598065",
+ "transactionIndex": "0xb"
+ },
+ "agentId": "3199",
+ "blockNumber": 45205299,
+ "logIndex": 91,
+ "newKind": "web",
+ "uriLength": 66,
+ "locatorHost": "ghostagent.ninja",
+ "profileUriHash": "cb55babfa59e4e9f67f7f6d9475382e314e9ea697b4bad51a92e191ee7a7d2d0",
+ "inlineName": null
+ },
+ {
+ "label": "empty_to_ipfs",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x1a7cb78b75b3f82238ed7848c46813117efdf3421fa9752914311df34d54f909",
+ "blockNumber": "0x2b1e21d",
+ "blockTimestamp": "0x69ba9118",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569667336783335793273666b6b35687972357266783632686770786d6c7065743671346a36673432727876366369343768696a7475000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0x83",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000c87",
+ "0x000000000000000000000000da977767452c5dd021624511f14df67b6c9c2c1b"
+ ],
+ "transactionHash": "0x3e5026a036dac72f2e5c55a015385ada3f2242c181034073f3e168f6de99e92c",
+ "transactionIndex": "0x13"
+ },
+ "agentId": "3207",
+ "blockNumber": 45212189,
+ "logIndex": 131,
+ "newKind": "ipfs",
+ "uriLength": 66,
+ "locatorHost": null,
+ "profileUriHash": "7b33aacfa616cb786afad01375709304436f33358f00a9e494969b7c0bbcc145",
+ "inlineName": null
+ },
+ {
+ "label": "web_to_web",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x415c1dfa6616a27844c7b34c506a8265bd2a4216d7a2e94c91ef621978c0aba4",
+ "blockNumber": "0x2b317b1",
+ "blockTimestamp": "0x69c0bdfe",
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6d656d6f72612e636f6465732f6167656e742d6d657461646174612e6a736f6e000000000000000000000000000000000000000000000000",
+ "logIndex": "0x8d",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000cbb",
+ "0x00000000000000000000000033a369788781d669ae1ebfab67ff55df527083b1"
+ ],
+ "transactionHash": "0x9749160267c35c71e1040cc9ec91e986a333fec5ed9532eb92173699ae43e46f",
+ "transactionIndex": "0xb"
+ },
+ "agentId": "3259",
+ "blockNumber": 45291441,
+ "logIndex": 141,
+ "newKind": "web",
+ "uriLength": 40,
+ "locatorHost": "memora.codes",
+ "profileUriHash": "eb1d948a594770f662d2b480394099a1289d95d9084163b6b9ef14cb02b8a424",
+ "inlineName": null
+ },
+ {
+ "label": "web_to_inline",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x84e3e81382fdf6f20a827db95a0089c4e392eca7a21cf519ab1cf7516f3ec6bb",
+ "blockNumber": "0x2b3182f",
+ "blockTimestamp": "0x69c0c092",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000911646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65776f6749434a306558426c496a6f67496d68306448427a4f6938765a576c776379356c6447686c636d563162533576636d637652556c515579396c615841744f4441774e434e795a576470633352795958527062323474646a45694c416f6749434a755957316c496a6f67496b316c625739795953497343694167496d526c63324e796158423061573975496a6f67496b316c625739795953427063794230614755675a6d6c796333516763326868636d566b4947316c625739796553427359586c6c6369426d6233496755475668636d776751556b675957646c626e527a494f4b416c434230614755676232357365534270626e526c636931685a325675644342745a573176636e6b6764325668646d567949476c754948526f5a5342506247467a4947566a62334e356333526c625334675358516764325668646d567a4c43427a644739795a584d73494746755a4342795a574e686247787a49485a6c636d6c6d61574669624755676257567462334a705a584d6759574e7962334e7a494756325a584a354946426c59584a734947466e5a573530494864706447676762323474593268686157346752564a444c5467774d445167595852305a584e30595852706232347549455a6c59585231636d567a4f694277636d6c3259574e354c575a70636e4e3049475a76636d646c644342776232787059336b7349474e7962334e7a4c57466e5a5735304947316c6257397965534270626d706c593352706232347349464e685a6d55676258567364476c7a6157636763326c6e626d463064584a6c494842796232396d637977675957356b4947396d5a6d7870626d55745a6d6c796333516755475668636d7774626d463061585a6c494739775a584a6864476c76626934675647466e62476c755a546f675432356c4947316c62573979655334675157787349486c76645849675957646c626e527a4c69424762334a6c646d5679494739754c574e6f59576c754c69497343694167496d6c745957646c496a6f67496d68306448427a4f6938766257567462334a684c6d4e765a47567a4c3278765a323875616e426e4969774b4943416963325679646d6c6a5a584d694f6942624369416749434237436941674943416749434a755957316c496a6f67496e646c59694973436941674943416749434a6c626d527762326c756443493649434a6f64485277637a6f764c32316c625739795953356a6232526c6379386943694167494342394c416f674943416765776f674943416749434169626d46745a53493649434a424d6b45694c416f6749434167494341695a57356b63473970626e51694f6941696148523063484d364c7939745a573176636d45755932396b5a584d764c6e646c6247777461323576643234765957646c626e5174593246795a433571633239754969774b4943416749434167496e5a6c636e4e70623234694f6941694d43347a4c6a416943694167494342394c416f674943416765776f674943416749434169626d46745a53493649434a4e513141694c416f6749434167494341695a57356b63473970626e51694f6941696148523063484d364c7939745a573176636d45755932396b5a584d766447397662484d694c416f674943416749434169646d567963326c7662694936494349794d4449314c5441324c54453449676f67494341676653774b494341674948734b4943416749434167496d3568625755694f694169614756686248526f5932686c593273694c416f6749434167494341695a57356b63473970626e51694f6941696148523063484d364c7939745a573176636d45755932396b5a584d76614756686248526f5932686c5932736943694167494342394c416f674943416765776f674943416749434169626d46745a53493649434a335a5746325a534973436941674943416749434a6c626d527762326c756443493649434a6f64485277637a6f764c32316c625739795953356a6232526c637939335a5746325a53494b49434167494830734369416749434237436941674943416749434a755957316c496a6f67496e4a6c5932467362434973436941674943416749434a6c626d527762326c756443493649434a6f64485277637a6f764c32316c625739795953356a6232526c637939795a574e686247776943694167494342394c416f674943416765776f674943416749434169626d46745a53493649434a6f61584a6c4969774b4943416749434167496d56755a48427661573530496a6f67496d68306448427a4f6938766257567462334a684c6d4e765a47567a4c326870636d556943694167494342394c416f674943416765776f674943416749434169626d46745a53493649434a7a6447463063794973436941674943416749434a6c626d527762326c756443493649434a6f64485277637a6f764c32316c625739795953356a6232526c6379397a644746306379494b494341674948304b494342644c416f6749434a344e44417955335677634739796443493649475a6862484e6c4c416f6749434a6859335270646d55694f694230636e566c4c416f6749434a795a57647063335279595852706232357a496a6f6757776f674943416765776f6749434167494341695957646c626e524a5a43493649444d314e7a55314c416f6749434167494341695957646c626e52535a576470633352796553493649434a6c615841784e5455364f4451314d7a6f77654467774d4452424d545935526b493059544d7a4d6a55784d7a5a46516a49355a6b4577593256434e6b51795a54557a4f5745304d7a496943694167494342394c416f674943416765776f6749434167494341695957646c626e524a5a43493649444d794e546b73436941674943416749434a685a32567564464a6c5a326c7a64484a35496a6f67496d5670634445314e546f784d4441364d4867344d444130515445324f555a434e47457a4d7a49314d544d32525549794f575a424d474e6c516a5a454d6d55314d7a6c684e444d7949676f674943416766516f674946307343694167496e4e3163484276636e526c5a46527964584e30496a6f6757776f6749434167496e4a6c6348563059585270623234694c416f6749434167496d4e79655842306279316c59323975623231705979494b49434264436e304b000000000000000000000000000000",
+ "logIndex": "0x131",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000cbb",
+ "0x00000000000000000000000033a369788781d669ae1ebfab67ff55df527083b1"
+ ],
+ "transactionHash": "0x008fd9a1b8ba759e7dfb4abb56dcdfa1454178baca8127c35bdd49515c67b5e8",
+ "transactionIndex": "0x11"
+ },
+ "agentId": "3259",
+ "blockNumber": 45291567,
+ "logIndex": 305,
+ "newKind": "inline-json",
+ "uriLength": 2321,
+ "locatorHost": null,
+ "profileUriHash": "435df4edd30d3e547e9c9c4de2da714a81a0ac82fd95f8a9bc2c6a3ec723dc8e",
+ "inlineName": "Memora"
+ },
+ {
+ "label": "inline_to_ipfs_again",
+ "log": {
+ "address": "0x8004a169fb4a3325136eb29fa0ceb6d2e539a432",
+ "blockHash": "0x101560d685225ab2fb2e68ed2bbc114bd709f4ba51393ef2ad1d14c54cdb19aa",
+ "blockNumber": "0x2b3184a",
+ "blockTimestamp": "0x69c0c119",
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666e3672376c6c63713532787a7266687737766464636670726c746e687a71646b73736d78706e757a7a75346376776332746c69000000000000000000000000000000000000000000000000000000000000",
+ "logIndex": "0x76",
+ "removed": false,
+ "topics": [
+ "0x3a2c7fffc2cba7582c690e3b82c453ea02a308326a98a3ad7576c606336409fb",
+ "0x0000000000000000000000000000000000000000000000000000000000000cbb",
+ "0x00000000000000000000000033a369788781d669ae1ebfab67ff55df527083b1"
+ ],
+ "transactionHash": "0x809dd4fc0668d8a27db49184761617323e62843c23915f603b1fbc2dc8afe8fd",
+ "transactionIndex": "0xa"
+ },
+ "agentId": "3259",
+ "blockNumber": 45291594,
+ "logIndex": 118,
+ "newKind": "ipfs",
+ "uriLength": 66,
+ "locatorHost": null,
+ "profileUriHash": "87ac6131ec79d9f3b567acdad6fcb653f3d478469ff4a07e07db044ff7feba99",
+ "inlineName": null
+ }
+ ],
+ "refusals": [
+ {
+ "label": "a 50,000-block window, wider than the 10,000 blocks the plan answers",
+ "status": 400,
+ "body": {
+ "jsonrpc": "2.0",
+ "id": 1,
+ "error": {
+ "code": -32600,
+ "message": "You can make eth_getLogs requests with up to a 10000 block range. Based on your parameters, this block range should work: [0x2a717b2, 0x2a73ec1]"
+ }
+ }
+ }
+ ],
+ "protocol": "erc8004_gnosis"
+};
diff --git a/apps/nooscape-relay/server/ingestion/erc8004Chains.test.ts b/apps/nooscape-relay/server/ingestion/erc8004Chains.test.ts
index 06792cf..55855ff 100644
--- a/apps/nooscape-relay/server/ingestion/erc8004Chains.test.ts
+++ b/apps/nooscape-relay/server/ingestion/erc8004Chains.test.ts
@@ -14,6 +14,8 @@ import {
ERC8004_REPUTATION_REGISTRY,
ETHEREUM_LISTING_RULES,
FLOOD_HOST_ROW_CAP,
+ GNOSIS_CHAIN,
+ GNOSIS_LISTING_RULES,
MONAD_CHAIN,
MONAD_LISTING_RULES,
erc8004ChainOfProtocol,
@@ -240,6 +242,48 @@ describe("the Monad entry", () => {
});
});
+describe("the Gnosis entry", () => {
+ it("holds the facts measured on 2026-11-06", () => {
+ expect(GNOSIS_CHAIN).toMatchObject({
+ protocol: "erc8004_gnosis",
+ chainKey: "gnosis",
+ chainId: 100,
+ chainIdHex: "0x64",
+ label: "Gnosis",
+ chainLabel: "Gnosis",
+ identityRegistry: REGISTRY,
+ deployBlock: 44_505_010,
+ maxLogRange: 10_000,
+ maxWindowLogs: 20_000,
+ handoutBlockWindow: 708,
+ sourceKey: "gnosis-erc8004-identity-registry",
+ provider: { kind: "pinned", rootUrl: "https://gnosis-mainnet.g.alchemy.com", allowedHostname: "gnosis-mainnet.g.alchemy.com" },
+ rpcEnvVar: "GNOSIS_RPC_URL",
+ cursorPrefix: "gnosis",
+ errorPrefix: "Gnosis",
+ logTag: "GNOSIS",
+ feature: "chain_gnosis",
+ });
+ expect(GNOSIS_CHAIN.rpc).toEqual({ timeoutMs: 30_000, maxResponseBytes: 16 * MIB, retryStatuses: [429, 500, 502, 503, 504], backoffMs: [1_000, 3_000], readErrorBodies: true });
+ expect(GNOSIS_CHAIN.budget).toEqual({ maxWindows: 100, concurrency: 3, maxElapsedMs: 30_000, maxEvents: 10_000 });
+ expect(GNOSIS_CHAIN.listingRules).toBe(GNOSIS_LISTING_RULES);
+ });
+
+ it("is a chain id the registry's own chain answers with, in the hex form a node gives", () => {
+ expect(Number.parseInt(GNOSIS_CHAIN.chainIdHex.slice(2), 16)).toBe(GNOSIS_CHAIN.chainId);
+ });
+
+ it("plans windows of the 10,000 blocks the provider answers, from the busiest window measured on 2026-11-06", () => {
+ // The whole history was read as windows of at most 10,000 blocks: the busiest held 5,304 of the three event kinds the pass asks for (4.0 MB as JSON), the launch.
+ const BUSIEST = { events: 5_304, bytes: 4_005_347 };
+ expect(GNOSIS_CHAIN.maxLogRange).toBe(10_000);
+ expect(GNOSIS_CHAIN.maxWindowLogs).toBeGreaterThanOrEqual(3 * BUSIEST.events);
+ expect(GNOSIS_CHAIN.rpc.maxResponseBytes).toBeGreaterThanOrEqual(3 * BUSIEST.bytes);
+ // A run of 100 windows reads a million blocks, so the 4.6 million blocks of history (finalized head 49,144,745) take five runs.
+ expect(Math.ceil((49_144_745 - GNOSIS_CHAIN.deployBlock) / (GNOSIS_CHAIN.budget.maxWindows * GNOSIS_CHAIN.maxLogRange))).toBe(5);
+ });
+});
+
describe("what the measurements ask of the caps", () => {
// The densest windows measured on 2026-10-20. A cap below one of these would stall the walk at that window.
const ETHEREUM_DENSEST_2000 = { events: 19_200, bytes: 12_994_910 };
@@ -282,7 +326,7 @@ describe("what the measurements ask of the caps", () => {
});
describe("every chain after BNB Chain", () => {
- const later: readonly Erc8004Chain[] = [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN];
+ const later: readonly Erc8004Chain[] = [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN];
it("has a switch named for its key, its own listing rules and a note that says only what happened", () => {
for (const chain of later) {
@@ -293,8 +337,8 @@ describe("every chain after BNB Chain", () => {
});
it("has listing rules of its own: a constant each, equal to BNB Chain's for now, which are provisional until its first census", () => {
- expect(new Set([ETHEREUM_LISTING_RULES, BASE_LISTING_RULES, ARC_LISTING_RULES, MONAD_LISTING_RULES]).size).toBe(4);
- for (const rules of [ETHEREUM_LISTING_RULES, BASE_LISTING_RULES, ARC_LISTING_RULES, MONAD_LISTING_RULES]) {
+ expect(new Set([ETHEREUM_LISTING_RULES, BASE_LISTING_RULES, ARC_LISTING_RULES, MONAD_LISTING_RULES, GNOSIS_LISTING_RULES]).size).toBe(5);
+ for (const rules of [ETHEREUM_LISTING_RULES, BASE_LISTING_RULES, ARC_LISTING_RULES, MONAD_LISTING_RULES, GNOSIS_LISTING_RULES]) {
expect(rules).toEqual(BSC_LISTING_RULES);
expect(rules).not.toBe(BSC_LISTING_RULES);
}
@@ -316,12 +360,14 @@ describe("every chain after BNB Chain", () => {
["erc8004_base", { registry: REPUTATION_REGISTRY, window: 50_000 }],
["erc8004_arc", { registry: REPUTATION_REGISTRY, window: 100_000 }],
["erc8004_monad", { registry: REPUTATION_REGISTRY, window: 50_000 }],
+ ["erc8004_gnosis", { registry: REPUTATION_REGISTRY, window: 10_000 }],
]);
// BNB Chain keeps its own internal ratings read (docs/bsc-rater-credibility-2026-10-16.md) and is not counted by this step.
expect(BSC_CHAIN.reputation).toBeUndefined();
// No window is wider than the ceiling its provider gives the identity pass for a call.
expect(ETHEREUM_CHAIN.reputation!.window).toBeLessThanOrEqual(50_000);
expect(MONAD_CHAIN.reputation!.window).toBeLessThanOrEqual(MONAD_CHAIN.maxLogRange);
+ expect(GNOSIS_CHAIN.reputation!.window).toBeLessThanOrEqual(GNOSIS_CHAIN.maxLogRange);
// Base's is wider than Alchemy's 10,000-block answer in full: the plan answers any range of 10,000 logs or fewer, and a refusal halves the window.
});
@@ -377,7 +423,7 @@ describe("a chain's switch", () => {
describe("the endpoint each chain reads", () => {
it("is the variable the entry names and no other: each chain, with every variable set to a value of its own, reads its own", async () => {
- const names = ["BSC_RPC_URL", "ETH_RPC_URL", "BASE_RPC_URL", "MONAD_RPC_URL"];
+ const names = ["BSC_RPC_URL", "ETH_RPC_URL", "BASE_RPC_URL", "MONAD_RPC_URL", "GNOSIS_RPC_URL"];
const before = Object.fromEntries(names.map(name => [name, process.env[name]]));
const value = (name: string) => `https://node.example/${name}`;
for (const name of names) process.env[name] = value(name);
@@ -401,7 +447,7 @@ describe("the endpoint each chain reads", () => {
describe("the list of chains", () => {
it("is sound", () => {
expect(validateErc8004Chains(ERC8004_CHAINS)).toEqual([]);
- expect(ERC8004_CHAINS.map(chain => chain.protocol)).toEqual(["erc8004_bsc", "erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_monad"]);
+ expect(ERC8004_CHAINS.map(chain => chain.protocol)).toEqual(["erc8004_bsc", "erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_monad", "erc8004_gnosis"]);
});
it("stays sound with a further chain beside the others, so a chain can be added by an entry alone", () => {
diff --git a/apps/nooscape-relay/server/ingestion/erc8004Chains.ts b/apps/nooscape-relay/server/ingestion/erc8004Chains.ts
index cfac4e1..cc7a5c4 100644
--- a/apps/nooscape-relay/server/ingestion/erc8004Chains.ts
+++ b/apps/nooscape-relay/server/ingestion/erc8004Chains.ts
@@ -191,6 +191,7 @@ export const ETHEREUM_LISTING_RULES: RegistryListingRules = { sharedProfileLinkF
export const BASE_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom: 2, sharedHostFrom: 50, sharedWalletFrom: 10 };
export const ARC_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom: 2, sharedHostFrom: 50, sharedWalletFrom: 10 };
export const MONAD_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom: 2, sharedHostFrom: 50, sharedWalletFrom: 10 };
+export const GNOSIS_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom: 2, sharedHostFrom: 50, sharedWalletFrom: 10 };
/**
* The most registry rows one host may hold on the chains added after BNB Chain (docs/flood-host-cap-2026-10-21.md). One platform
@@ -200,7 +201,7 @@ export const MONAD_LISTING_RULES: RegistryListingRules = { sharedProfileLinkFrom
*/
export const FLOOD_HOST_ROW_CAP = 2_000;
-/** The ERC-8004 reputation registry, at the same address on Ethereum, Base, Arc and Monad (Arc's contract page names it; the first three had code there on 2026-10-21, and Monad on 2026-11-01). */
+/** The ERC-8004 reputation registry, at the same address on Ethereum, Base, Arc, Monad and Gnosis (Arc's contract page names it; the first three had code there on 2026-10-21, Monad on 2026-11-01 and Gnosis on 2026-11-06). */
export const ERC8004_REPUTATION_REGISTRY = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
/**
@@ -492,8 +493,71 @@ export const MONAD_CHAIN: PinnedErc8004Chain = {
feature: "chain_monad",
};
+/**
+ * Gnosis Chain (chain id 100, `eth_chainId` 0x64; the registry authors' contracts README names it). Read through Alchemy, the plan the Base
+ * and Monad passes use. Facts measured 2026-11-06 (docs/gnosis-erc8004-2026-11-06.md):
+ * - the identity registry is the same 130-byte proxy at the same address, and its implementation (0x7274e874ca62410a93bd8bf61c69d8045e399c02)
+ * has the same 14,474 bytes of code as Ethereum's, so the decoding is shared. The code's SHA-256 prefixes equal Ethereum's.
+ * - deploy block 44,505,010 (2026-02-04 09:49:00 UTC), found by binary search on `eth_getCode` (empty at 44,505,009, 130 bytes at
+ * 44,505,010) through the keyed endpoint, which archives to it. 4,639,735 blocks lie between it and the finalized head, which sat
+ * 40 blocks behind the head.
+ * - 5.0827 s per block over the last 100,000 blocks, so an hour is 708 blocks.
+ * - the keyed endpoint answers `eth_getLogs` over at most 10,000 blocks and puts no cap on the response: the first 10,000 blocks
+ * returned 21,217 logs of every kind (18 MB). A wider window is refused with an HTTP 400 that reads "You can make eth_getLogs requests
+ * with up to a 10000 block range" and names a range that works; the pass never asks for one, so that refusal is a planner fault.
+ * - the whole history, read as 740 windows of at most 10,000 blocks (79 s, none failed): 32,826 logs of every kind. The three kinds the
+ * pass asks for are 8,412 of them (4,179 Registered, 4,184 Transfer, 49 URIUpdated), 779 bytes each as JSON, in 238 of the 464
+ * windows of 10,000 blocks. The registry holds 4,179 tokens, ids 0 to 4,178. The busiest window holds 5,304 of those events (4.0 MB;
+ * blocks 44,505,010 to 44,515,009, the launch) and the next busiest 202.
+ * - quiet now: a few registrations a month since August; the last log of any kind was on 2026-11-04.
+ */
+export const GNOSIS_CHAIN: PinnedErc8004Chain = {
+ protocol: "erc8004_gnosis",
+ chainKey: "gnosis",
+ chainId: 100,
+ chainIdHex: "0x64",
+ label: "Gnosis",
+ chainLabel: "Gnosis",
+ identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
+ deployBlock: 44_505_010,
+ maxLogRange: 10_000,
+ /** 3.8 times the busiest window measured (5,304 events). A read that comes back holding more is a provider fault. */
+ maxWindowLogs: 20_000,
+ handoutBlockWindow: 708,
+ sourceKey: "gnosis-erc8004-identity-registry",
+ provider: { kind: "pinned", rootUrl: "https://gnosis-mainnet.g.alchemy.com", allowedHostname: "gnosis-mainnet.g.alchemy.com" },
+ rpcEnvVar: "GNOSIS_RPC_URL",
+ readRpcUrl: () => ENV.gnosisRpcUrl,
+ rpc: {
+ timeoutMs: 30_000,
+ /** 4.2 times the busiest window measured (3.8 MiB). A read that passes it is split in halves, not failed. */
+ maxResponseBytes: 16 * MIB,
+ retryStatuses: [429, 500, 502, 503, 504],
+ backoffMs: [1_000, 3_000],
+ /** Alchemy explains a refused range, in words, in the body of an HTTP 400. */
+ readErrorBodies: true,
+ },
+ budget: {
+ /** 100 windows of 10,000 blocks: 1,000,000 blocks a run, so the 4.6 million blocks of history are read in five runs. */
+ maxWindows: 100,
+ concurrency: 3,
+ maxElapsedMs: 30_000,
+ /** Almost two of the busiest window. Only the launch window is that dense; the rest of the history is read a hundred windows at a time. */
+ maxEvents: 10_000,
+ },
+ cursorPrefix: "gnosis",
+ errorPrefix: "Gnosis",
+ logTag: "GNOSIS",
+ fetchSentence: RECORDED_ONLY_SENTENCE,
+ listingRules: GNOSIS_LISTING_RULES,
+ hostRowCap: FLOOD_HOST_ROW_CAP,
+ /** Read from the identity registry's deploy block, where the reputation registry was deployed with it (its first rating is six blocks later). Window: Alchemy's ceiling here is 10,000 blocks, and the registry had 4,341 ratings and no revocation in all on 2026-11-06, in 23 of its 465 windows. */
+ reputation: { registry: ERC8004_REPUTATION_REGISTRY, window: 10_000 },
+ feature: "chain_gnosis",
+};
+
/** Every chain the pass reads, in the order they were added. */
-export const ERC8004_CHAINS: readonly Erc8004Chain[] = [BSC_CHAIN, ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN];
+export const ERC8004_CHAINS: readonly Erc8004Chain[] = [BSC_CHAIN, ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, MONAD_CHAIN, GNOSIS_CHAIN];
/** The chain a source protocol belongs to, or null when the protocol is not read by this pass. */
export function erc8004ChainOfProtocol(protocol: string): Erc8004Chain | null {
diff --git a/apps/nooscape-relay/server/ingestion/multichainDispatch.test.ts b/apps/nooscape-relay/server/ingestion/multichainDispatch.test.ts
index c9c1a90..04820ce 100644
--- a/apps/nooscape-relay/server/ingestion/multichainDispatch.test.ts
+++ b/apps/nooscape-relay/server/ingestion/multichainDispatch.test.ts
@@ -17,7 +17,7 @@ describe("the scheduled worker", () => {
it("sends Ethereum, Base and Arc to the one chain pass, looked up by the source's protocol, as a scheduled trigger", () => {
const block = worker.slice(worker.indexOf('case "erc8004_eth":'), worker.indexOf('case "solana_said":'));
- for (const protocol of ["erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_monad"]) expect(block).toContain(`case "${protocol}":`);
+ for (const protocol of ["erc8004_eth", "erc8004_base", "erc8004_arc", "erc8004_monad", "erc8004_gnosis"]) expect(block).toContain(`case "${protocol}":`);
expect(block).toContain("erc8004ChainOfProtocol(source.protocol)");
expect(block).toContain('runApprovedErc8004ChainSource(chain, source, "scheduled")');
expect(block).not.toContain("runApprovedBscRegistrySource");
@@ -49,9 +49,9 @@ describe("the operator's page", () => {
});
describe("every chain of the pass is a protocol the database knows", () => {
- it("is in the list of ingestion protocols, in the schema's enum on every table that carries it, and in the migration that added it if it is a later one (0046, or 0053 for Monad)", () => {
+ it("is in the list of ingestion protocols, in the schema's enum on every table that carries it, and in the migration that added it if it is a later one (0046, 0053 for Monad or 0057 for Gnosis)", () => {
const schema = read("drizzle", "schema.ts");
- const addedBy: Record = { erc8004_monad: "0053_monad_erc8004_protocol.sql" };
+ const addedBy: Record = { erc8004_monad: "0053_monad_erc8004_protocol.sql", erc8004_gnosis: "0057_gnosis_erc8004_protocol.sql" };
for (const chain of ERC8004_CHAINS) {
expect(INGESTION_PROTOCOLS as readonly string[], chain.protocol).toContain(chain.protocol);
expect(schema.split(`"${chain.protocol}"`).length - 1, chain.protocol).toBeGreaterThanOrEqual(3);
diff --git a/apps/nooscape-relay/server/ingestion/multichainWording.test.ts b/apps/nooscape-relay/server/ingestion/multichainWording.test.ts
index e3e95cf..2d3a8f3 100644
--- a/apps/nooscape-relay/server/ingestion/multichainWording.test.ts
+++ b/apps/nooscape-relay/server/ingestion/multichainWording.test.ts
@@ -2,7 +2,7 @@ import { readFileSync } from "node:fs";
import path from "node:path";
import { afterEach, describe, expect, it, vi } from "vitest";
import { chainSourcePreset } from "./chainPresets";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, type Erc8004Chain } from "./erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, type Erc8004Chain } from "./erc8004Chains";
import { resolveRpcUrl } from "./erc8004Rpc";
/**
@@ -84,12 +84,12 @@ describe("the strings of the new code", () => {
for (const line of lines) expect(line).not.toMatch(FORBIDDEN);
});
- const chains: readonly Erc8004Chain[] = [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN];
+ const chains: readonly Erc8004Chain[] = [ETHEREUM_CHAIN, BASE_CHAIN, ARC_CHAIN, GNOSIS_CHAIN];
it("say none of the four words in what a chain is called, what its notes say about a link, or what its source is called", () => {
vi.stubEnv("X402_RPC", "https://arc-node.example/v1/x");
for (const chain of chains) {
- const preset = chainSourcePreset(chain, "chain_ethereum,chain_base,chain_arc,chain_monad");
+ const preset = chainSourcePreset(chain, "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis");
for (const text of [chain.label, chain.chainLabel, chain.fetchSentence, preset.label, preset.sourceKey]) expect(text, chain.protocol).not.toMatch(FORBIDDEN);
}
});
diff --git a/apps/nooscape-relay/server/ingestion/runA2aRegistry.test.ts b/apps/nooscape-relay/server/ingestion/runA2aRegistry.test.ts
new file mode 100644
index 0000000..b80b2cc
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/runA2aRegistry.test.ts
@@ -0,0 +1,99 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import type { IngestionSource } from "../../drizzle/schema";
+
+/**
+ * Runner wiring for the A2A registries: a host that already holds a reviewed record from another source is left out before the records
+ * are picked, every record taken is stored under the registry's own parser version (and not the Agenstry feed's), and the run is
+ * closed once with the counts the adapter gave, or as failed with the error. The database and the adapter are replaced.
+ */
+const mocks = vi.hoisted(() => ({
+ beginIngestionRun: vi.fn(async (_source: unknown, _trigger: string) => "run-1"),
+ finishIngestionRun: vi.fn(async (_input: unknown) => {}),
+ persistCatalogObservation: vi.fn(async (_input: unknown) => {}),
+ listReviewedAddressesOfOtherSources: vi.fn(async (_sourceId: string) => [] as string[]),
+ fetchA2aRegistryCatalog: vi.fn(async (_source: unknown, _options: unknown) => ({}) as unknown),
+}));
+
+vi.mock("../db", () => ({
+ beginIngestionRun: mocks.beginIngestionRun,
+ finishIngestionRun: mocks.finishIngestionRun,
+ persistCatalogObservation: mocks.persistCatalogObservation,
+ listReviewedAddressesOfOtherSources: mocks.listReviewedAddressesOfOtherSources,
+}));
+vi.mock("./a2aRegistryCatalog", async importOriginal => ({
+ ...(await importOriginal()),
+ fetchA2aRegistryCatalog: mocks.fetchA2aRegistryCatalog,
+}));
+
+import { A2A_REGISTRY_PARSER_VERSION } from "./a2aRegistryCatalog";
+import { runApprovedA2aRegistrySource } from "./runA2aRegistry";
+
+const source = { id: "source-1", sourceKey: "a2aregistry-public-api", state: "active", cursor: null } as unknown as IngestionSource;
+const observation = (id: string) => ({ candidate: { externalRecordId: id }, observation: { contentHash: `hash-${id}` } });
+
+beforeEach(() => {
+ vi.clearAllMocks();
+});
+afterEach(() => {
+ vi.restoreAllMocks();
+});
+
+describe("running an A2A registry", () => {
+ it("passes the parties other sources' reviewed records hold to the adapter, stores each record taken under the registry's parser version, and closes the run with the adapter's counts", async () => {
+ mocks.listReviewedAddressesOfOtherSources.mockResolvedValueOnce(["https://www.held.example/page", "https://a.two.example.org/", "not a url"]);
+ mocks.fetchA2aRegistryCatalog.mockResolvedValueOnce({
+ observations: [observation("a"), observation("b")],
+ discoveredCount: 10,
+ qualifiedCount: 4,
+ rejectedCount: 8,
+ requestCount: 2,
+ });
+
+ const result = await runApprovedA2aRegistrySource(source, "manual");
+
+ expect(mocks.listReviewedAddressesOfOtherSources).toHaveBeenCalledWith("source-1");
+ const [, options] = mocks.fetchA2aRegistryCatalog.mock.calls[0] as [unknown, { skipUnits: Set }];
+ expect(Array.from(options.skipUnits).sort()).toEqual(["example.org", "held.example"]);
+ expect(mocks.persistCatalogObservation).toHaveBeenCalledTimes(2);
+ expect(mocks.persistCatalogObservation).toHaveBeenNthCalledWith(1, expect.objectContaining({ source, runId: "run-1", parserVersion: A2A_REGISTRY_PARSER_VERSION }));
+ expect(A2A_REGISTRY_PARSER_VERSION).not.toContain("agenstry");
+ expect(result).toEqual({ requestCount: 2, discoveredCount: 10, acceptedCount: 2, rejectedCount: 8, nextCursor: null });
+ expect(mocks.finishIngestionRun).toHaveBeenCalledTimes(1);
+ expect(mocks.finishIngestionRun).toHaveBeenCalledWith(expect.objectContaining({ runId: "run-1", status: "completed", counts: result }));
+ });
+
+ it("says in the log how many parties qualified, since the run page counts everything not taken as rejected", async () => {
+ const log = vi.spyOn(console, "log").mockImplementation(() => {});
+ mocks.fetchA2aRegistryCatalog.mockResolvedValueOnce({
+ observations: [observation("a")],
+ discoveredCount: 649,
+ qualifiedCount: 285,
+ rejectedCount: 648,
+ requestCount: 7,
+ });
+
+ await runApprovedA2aRegistrySource(source, "manual");
+
+ expect(log).toHaveBeenCalledTimes(1);
+ expect(JSON.parse(log.mock.calls[0]![0] as string)).toEqual({
+ event: "nooscape_a2a_registry_run",
+ sourceKey: "a2aregistry-public-api",
+ discovered: 649,
+ qualified: 285,
+ accepted: 1,
+ rejected: 648,
+ });
+ });
+
+ it("closes the run as failed with the error, stores nothing and rethrows when the read fails", async () => {
+ const failure = new Error("registry list ended early");
+ mocks.fetchA2aRegistryCatalog.mockRejectedValueOnce(failure);
+
+ await expect(runApprovedA2aRegistrySource(source, "scheduled")).rejects.toBe(failure);
+
+ expect(mocks.persistCatalogObservation).not.toHaveBeenCalled();
+ expect(mocks.finishIngestionRun).toHaveBeenCalledTimes(1);
+ expect(mocks.finishIngestionRun).toHaveBeenCalledWith(expect.objectContaining({ runId: "run-1", status: "failed", error: failure }));
+ expect(mocks.beginIngestionRun).toHaveBeenCalledWith(source, "scheduled");
+ });
+});
diff --git a/apps/nooscape-relay/server/ingestion/runA2aRegistry.ts b/apps/nooscape-relay/server/ingestion/runA2aRegistry.ts
new file mode 100644
index 0000000..be5003b
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/runA2aRegistry.ts
@@ -0,0 +1,40 @@
+import { listReviewedAddressesOfOtherSources, persistCatalogObservation } from "../db";
+import type { IngestionSource } from "../../drizzle/schema";
+import { A2A_REGISTRY_PARSER_VERSION, fetchA2aRegistryCatalog, unitsOfUrls } from "./a2aRegistryCatalog";
+import { withIngestionRun } from "./runLifecycle";
+import type { CatalogIngestionResult } from "./types";
+
+/**
+ * Runs one capped, read-only snapshot of an approved A2A registry's public list. A host that already holds a reviewed record from
+ * another source is left out, so the same agent is not shown once for each registry that lists it.
+ */
+export async function runApprovedA2aRegistrySource(
+ source: IngestionSource,
+ trigger: "manual" | "scheduled" | "replay" = "manual"
+): Promise {
+ return withIngestionRun(source, trigger, 1, async runId => {
+ const skipUnits = unitsOfUrls(await listReviewedAddressesOfOtherSources(source.id));
+ const snapshot = await fetchA2aRegistryCatalog(source, { skipUnits });
+ for (const entry of snapshot.observations) {
+ await persistCatalogObservation({ source, runId, candidate: entry.candidate, observation: entry.observation, parserVersion: A2A_REGISTRY_PARSER_VERSION });
+ }
+ // The run page counts everything not taken as rejected, so a run that hit the ceiling looks like any other. This says how many parties qualified.
+ console.log(
+ JSON.stringify({
+ event: "nooscape_a2a_registry_run",
+ sourceKey: source.sourceKey,
+ discovered: snapshot.discoveredCount,
+ qualified: snapshot.qualifiedCount,
+ accepted: snapshot.observations.length,
+ rejected: snapshot.rejectedCount,
+ })
+ );
+ return {
+ requestCount: snapshot.requestCount,
+ discoveredCount: snapshot.discoveredCount,
+ acceptedCount: snapshot.observations.length,
+ rejectedCount: snapshot.rejectedCount,
+ nextCursor: null,
+ };
+ });
+}
diff --git a/apps/nooscape-relay/server/ingestion/runCatalog.test.ts b/apps/nooscape-relay/server/ingestion/runCatalog.test.ts
new file mode 100644
index 0000000..1080d3b
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/runCatalog.test.ts
@@ -0,0 +1,37 @@
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import type { IngestionSource } from "../../drizzle/schema";
+
+/**
+ * Every catalog source runs through one dispatcher: the two A2A registries by their own source keys, and the Agenstry feed otherwise.
+ * A source key that is nobody's goes to the Agenstry adapter, which refuses it, and is never read as a registry.
+ */
+const mocks = vi.hoisted(() => ({
+ runApprovedAgenstrySource: vi.fn(async (_source: unknown, _trigger: string) => ({ via: "agenstry" })),
+ runApprovedA2aRegistrySource: vi.fn(async (_source: unknown, _trigger: string) => ({ via: "registry" })),
+}));
+vi.mock("./runAgenstry", () => ({ runApprovedAgenstrySource: mocks.runApprovedAgenstrySource }));
+vi.mock("./runA2aRegistry", () => ({ runApprovedA2aRegistrySource: mocks.runApprovedA2aRegistrySource }));
+
+import { runApprovedCatalogSource } from "./runCatalog";
+
+const withKey = (sourceKey: string) => ({ id: "s", sourceKey, protocol: "catalog" }) as unknown as IngestionSource;
+
+beforeEach(() => {
+ vi.clearAllMocks();
+});
+
+describe("running a catalog source", () => {
+ it.each(["a2aregistry-public-api", "a2a-registry-org-public-api"])("sends %s to the registry runner, with the trigger it was given", async key => {
+ const source = withKey(key);
+ expect(await runApprovedCatalogSource(source, "manual")).toEqual({ via: "registry" });
+ expect(mocks.runApprovedA2aRegistrySource).toHaveBeenCalledWith(source, "manual");
+ expect(mocks.runApprovedAgenstrySource).not.toHaveBeenCalled();
+ });
+
+ it.each(["agenstry-public-catalog", "somebody-else"])("sends %s to the Agenstry runner", async key => {
+ const source = withKey(key);
+ expect(await runApprovedCatalogSource(source, "scheduled")).toEqual({ via: "agenstry" });
+ expect(mocks.runApprovedAgenstrySource).toHaveBeenCalledWith(source, "scheduled");
+ expect(mocks.runApprovedA2aRegistrySource).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/nooscape-relay/server/ingestion/runCatalog.ts b/apps/nooscape-relay/server/ingestion/runCatalog.ts
new file mode 100644
index 0000000..9f10de7
--- /dev/null
+++ b/apps/nooscape-relay/server/ingestion/runCatalog.ts
@@ -0,0 +1,18 @@
+import type { IngestionSource } from "../../drizzle/schema";
+import { isA2aRegistrySourceKey } from "./a2aRegistryCatalog";
+import { runApprovedA2aRegistrySource } from "./runA2aRegistry";
+import { runApprovedAgenstrySource } from "./runAgenstry";
+import type { CatalogIngestionResult } from "./types";
+
+/**
+ * Every `catalog` source runs through here: the A2A registries by their own key, and the Agenstry feed otherwise (its adapter refuses
+ * any source that is not the approved feed, so a source key that is nobody's fails and is never read as Agenstry's).
+ */
+export function runApprovedCatalogSource(
+ source: IngestionSource,
+ trigger: "manual" | "scheduled" | "replay" = "manual"
+): Promise {
+ return isA2aRegistrySourceKey(source.sourceKey)
+ ? runApprovedA2aRegistrySource(source, trigger)
+ : runApprovedAgenstrySource(source, trigger);
+}
diff --git a/apps/nooscape-relay/server/ingestion/runErc8004ChainFixtures.test.ts b/apps/nooscape-relay/server/ingestion/runErc8004ChainFixtures.test.ts
index b1ff6e9..d036db9 100644
--- a/apps/nooscape-relay/server/ingestion/runErc8004ChainFixtures.test.ts
+++ b/apps/nooscape-relay/server/ingestion/runErc8004ChainFixtures.test.ts
@@ -47,9 +47,9 @@ vi.mock("../agentRegistryRows", () => ({
}));
import { Erc8004ChainOffError } from "./erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./erc8004Chains";
import { Erc8004RpcRangeError } from "./erc8004Rpc";
-import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./erc8004ChainFixtures";
+import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, GNOSIS_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./erc8004ChainFixtures";
import { runApprovedErc8004ChainSource } from "./runErc8004Chain";
const CASES: Array<[string, Erc8004Chain, ChainFixtures]> = [
@@ -57,6 +57,7 @@ const CASES: Array<[string, Erc8004Chain, ChainFixtures]> = [
["Base", BASE_CHAIN, BASE_FIXTURES],
["Arc", ARC_CHAIN, ARC_FIXTURES],
["Monad", MONAD_CHAIN, MONAD_FIXTURES],
+ ["Gnosis", GNOSIS_CHAIN, GNOSIS_FIXTURES],
];
const hex = (value: number) => `0x${value.toString(16)}`;
const blockOf = (log: ChainFixtureLog) => Number.parseInt(log.blockNumber as string, 16);
@@ -109,7 +110,7 @@ beforeEach(() => {
vi.clearAllMocks();
state.order.length = 0;
vi.spyOn(console, "warn").mockImplementation(() => {});
- vi.stubEnv("VITE_FEATURES", "chain_ethereum,chain_base,chain_arc,chain_monad");
+ vi.stubEnv("VITE_FEATURES", "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis");
});
afterEach(() => vi.unstubAllEnvs());
diff --git a/apps/nooscape-relay/server/ingestion/types.ts b/apps/nooscape-relay/server/ingestion/types.ts
index d493c1d..bf7284e 100644
--- a/apps/nooscape-relay/server/ingestion/types.ts
+++ b/apps/nooscape-relay/server/ingestion/types.ts
@@ -1,4 +1,4 @@
-export const INGESTION_PROTOCOLS = ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad"] as const;
+export const INGESTION_PROTOCOLS = ["a2a", "anp", "agntcy", "erc8004", "erc8004_reputation", "catalog", "census", "solana_registry", "solana_8004", "usdg_settlement", "solana_said", "erc8004_bsc", "erc8004_base", "erc8004_eth", "erc8004_arc", "solana_agenc", "erc8004_monad", "erc8004_gnosis"] as const;
export type IngestionProtocol = (typeof INGESTION_PROTOCOLS)[number];
export type A2aNormalizedCandidate = {
diff --git a/apps/nooscape-relay/server/ingestion/worker.test.ts b/apps/nooscape-relay/server/ingestion/worker.test.ts
index 36187ae..a7664a1 100644
--- a/apps/nooscape-relay/server/ingestion/worker.test.ts
+++ b/apps/nooscape-relay/server/ingestion/worker.test.ts
@@ -32,6 +32,7 @@ const mocks = vi.hoisted(() => ({
recheckClaims: vi.fn(async () => ({ checked: 0, revoked: 0, unavailable: 0, stoppedBy: "done" as const })),
runApprovedA2aSource: vi.fn(async (_source: unknown, _trigger: string) => ({})),
runApprovedAgenstrySource: vi.fn(async (_source: unknown, _trigger: string) => ({})),
+ runApprovedA2aRegistrySource: vi.fn(async (_source: unknown, _trigger: string) => ({})),
runApprovedAgentEconomySource: vi.fn(async (_source: unknown, _trigger: string) => ({})),
runApproved8004SolanaSource: vi.fn(async (_source: unknown, _trigger: string) => ({})),
runApprovedMetaplexRegistrySource: vi.fn(async (_source: unknown, _trigger: string, _mode: string) => ({})),
@@ -53,6 +54,7 @@ vi.mock("../chainNames", () => ({ runChainNames: mocks.runChainNames }));
vi.mock("../claims", () => ({ recheckClaims: mocks.recheckClaims }));
vi.mock("./runA2a", () => ({ runApprovedA2aSource: mocks.runApprovedA2aSource }));
vi.mock("./runAgenstry", () => ({ runApprovedAgenstrySource: mocks.runApprovedAgenstrySource }));
+vi.mock("./runA2aRegistry", () => ({ runApprovedA2aRegistrySource: mocks.runApprovedA2aRegistrySource }));
vi.mock("./runAgentEconomy", () => ({ runApprovedAgentEconomySource: mocks.runApprovedAgentEconomySource }));
vi.mock("./run8004Solana", () => ({ runApproved8004SolanaSource: mocks.runApproved8004SolanaSource }));
vi.mock("./runMetaplex", () => ({ runApprovedMetaplexRegistrySource: mocks.runApprovedMetaplexRegistrySource }));
@@ -60,8 +62,8 @@ vi.mock("./runRobinhood", () => ({ runApprovedRobinhoodRegistrySource: mocks.run
import { runRateLimitedIngestionTick } from "./worker";
-const scheduledSource = (id: string, protocol: string) =>
- ({ id, protocol, state: "active", executionPolicy: "scheduled" } as unknown as IngestionSource);
+const scheduledSource = (id: string, protocol: string, sourceKey?: string) =>
+ ({ id, protocol, sourceKey, state: "active", executionPolicy: "scheduled" } as unknown as IngestionSource);
describe("runRateLimitedIngestionTick", () => {
beforeEach(() => {
@@ -84,6 +86,17 @@ describe("runRateLimitedIngestionTick", () => {
});
});
+ it("dispatches a catalog source by its source key: an A2A registry to the registry runner and the Agenstry feed to its own, both with the scheduled trigger", async () => {
+ const registry = scheduledSource("src-registry", "catalog", "a2aregistry-public-api");
+ const feed = scheduledSource("src-feed", "catalog", "agenstry-public-catalog");
+ mocks.claimDueIngestionSources.mockResolvedValueOnce({ config: {}, sources: [registry, feed], reason: "due" });
+ await runRateLimitedIngestionTick();
+ expect(mocks.runApprovedA2aRegistrySource).toHaveBeenCalledTimes(1);
+ expect(mocks.runApprovedA2aRegistrySource).toHaveBeenCalledWith(registry, "scheduled");
+ expect(mocks.runApprovedAgenstrySource).toHaveBeenCalledTimes(1);
+ expect(mocks.runApprovedAgenstrySource).toHaveBeenCalledWith(feed, "scheduled");
+ });
+
it("runs every claimed source even when an earlier one fails, and reports the tick failed", async () => {
// Migration 0027 raises the per-tick limit to two: the first source's
// failure must not starve the second — each run owns its own run row,
@@ -352,7 +365,7 @@ describe("runRateLimitedIngestionTick", () => {
}
});
- it("runs the Base, Arc, Ethereum and Monad name step after the SAID names, on a tick that claimed sources, never on a paused or held-back one, and never lets it fail the tick or be stopped by the steps before it", async () => {
+ it("runs the Base, Arc, Ethereum, Monad and Gnosis name step after the SAID names, on a tick that claimed sources, never on a paused or held-back one, and never lets it fail the tick or be stopped by the steps before it", async () => {
const errorLog = vi.spyOn(console, "error").mockImplementation(() => {});
try {
const s8004 = scheduledSource("src-8004", "solana_8004");
diff --git a/apps/nooscape-relay/server/ingestion/worker.ts b/apps/nooscape-relay/server/ingestion/worker.ts
index bc2f0b5..f741800 100644
--- a/apps/nooscape-relay/server/ingestion/worker.ts
+++ b/apps/nooscape-relay/server/ingestion/worker.ts
@@ -10,7 +10,7 @@ import { runSaidNames } from "../saidNames";
import { selectTodaysCatch } from "../owlsCatch";
import type { IngestionSource } from "../../drizzle/schema";
import { runApprovedA2aSource } from "./runA2a";
-import { runApprovedAgenstrySource } from "./runAgenstry";
+import { runApprovedCatalogSource } from "./runCatalog";
import { runApprovedAgentEconomySource } from "./runAgentEconomy";
import { runApproved8004SolanaSource } from "./run8004Solana";
import { runApprovedSaidSource } from "./runSaid";
@@ -112,8 +112,8 @@ const runSaidNamesStep = (tickStartedAt: number) =>
bestEffort("nooscape_said_names_failed", "Unknown SAID names error", () => runSaidNames({ tickStartedAt }));
/**
- * Best-effort, after the SAID names for the same reasons: the Base, Arc, Ethereum and Monad name step reads the registration link of a directory
- * entry on any of the four chains that is still called "Agent #n", through the safe fetch, and lays the name it finds over the placeholder
+ * Best-effort, after the SAID names for the same reasons: the Base, Arc, Ethereum, Monad and Gnosis name step reads the registration link of a
+ * directory entry on any of the five chains that is still called "Agent #n", through the safe fetch, and lays the name it finds over the placeholder
* (docs/approvals/2026-10-26-base-arc-names.md). It reads the chain's own node and asks other people's hosts, so it runs only on a tick
* that claimed sources, it takes one chain a run in turn, and it never throws; a failure here never fails the tick, whatever it reports.
*/
@@ -146,7 +146,7 @@ async function runApprovedSource(source: IngestionSource) {
case "a2a":
return runApprovedA2aSource(source, "scheduled");
case "catalog":
- return runApprovedAgenstrySource(source, "scheduled");
+ return runApprovedCatalogSource(source, "scheduled");
case "census":
return runApprovedAgentEconomySource(source, "scheduled");
case "solana_registry":
@@ -190,8 +190,9 @@ async function runApprovedSource(source: IngestionSource) {
case "erc8004_eth":
case "erc8004_base":
case "erc8004_arc":
- case "erc8004_monad": {
- // The Ethereum, Base, Arc and Monad identity passes are the BNB Chain pass on another chain (erc8004Chains.ts), staged manual_only and
+ case "erc8004_monad":
+ case "erc8004_gnosis": {
+ // The Ethereum, Base, Arc, Monad and Gnosis identity passes are the BNB Chain pass on another chain (erc8004Chains.ts), staged manual_only and
// handed to the scheduler only by a later reviewed migration, after an operator has run and checked a first pass. The pass
// itself rejects a scheduled trigger unless the source holds the scheduled policy, and does not start while the chain's
// switch is off, so an unflipped source, or a chain that is switched off, can never run unattended.
diff --git a/apps/nooscape-relay/server/lifecycleLog.test.ts b/apps/nooscape-relay/server/lifecycleLog.test.ts
index 2a528f8..3b578de 100644
--- a/apps/nooscape-relay/server/lifecycleLog.test.ts
+++ b/apps/nooscape-relay/server/lifecycleLog.test.ts
@@ -9,6 +9,7 @@ import {
createLifecycleLog,
describeError,
hostSettings,
+ isOtherProcessAlive,
parseLimits,
parseProcStatus,
parseTrail,
@@ -136,6 +137,24 @@ describe("how the earlier processes ended", () => {
expect(summarizeTrail(ended, "b2", now, null, 5, () => true)[0]).toMatchObject({ ended: "exit", detail: 0 });
});
+ it("never takes this process's own pid for an earlier one still running: a container restarted in place gives the new process the old pid", () => {
+ // The container was killed with no end record and started again, so the new process has the pid, 7, that the trail holds.
+ const alive = (pid: number) => isOtherProcessAlive(pid, 7, () => undefined);
+ expect(summarizeTrail([start("a1", 0, { pid: 7 })], "b2", T0 + 60_000, null, 5, alive)[0]).toMatchObject({ id: "a1", pid: 7, ended: "unknown" });
+ // Another pid that answers is still another process running.
+ expect(summarizeTrail([start("a1", 0, { pid: 8 })], "b2", T0 + 60_000, null, 5, alive)[0]).toMatchObject({ ended: "running" });
+ });
+
+ it("asks the system whether another pid is there, and counts a process it may not signal as there", () => {
+ const probe = (code?: string) => () => {
+ if (code) throw Object.assign(new Error(code), { code });
+ };
+ expect(isOtherProcessAlive(8, 7, probe())).toBe(true);
+ expect(isOtherProcessAlive(8, 7, probe("EPERM"))).toBe(true);
+ expect(isOtherProcessAlive(8, 7, probe("ESRCH"))).toBe(false);
+ expect(isOtherProcessAlive(7, 7, probe())).toBe(false);
+ });
+
it("measures how long a running process has been silent from now, and a lost one from the next start", () => {
const events = [start("a1", 0, { pid: 111 }), beat("a1", 60), start("b2", 100, { pid: 222 })];
const running = summarizeTrail(events, "c3", T0 + 400 * 1000, null, 5, () => true);
diff --git a/apps/nooscape-relay/server/lifecycleLog.ts b/apps/nooscape-relay/server/lifecycleLog.ts
index 06ef05e..fd74bb7 100644
--- a/apps/nooscape-relay/server/lifecycleLog.ts
+++ b/apps/nooscape-relay/server/lifecycleLog.ts
@@ -468,6 +468,22 @@ function readText(file: string): string | null {
}
}
+/**
+ * Whether `pid` is another process that is still there. This process's own pid never counts: a container restarted in place gives the
+ * new process the pid of the one that was killed (it is the same inside the container's own pid space), and a process cannot be its own
+ * predecessor. Without this a killed process read from the trail would be called running, and listed as another instance beside this one.
+ */
+export function isOtherProcessAlive(pid: number, self: number = process.pid, probe: (pid: number) => void = target => process.kill(target, 0)): boolean {
+ if (pid === self) return false;
+ try {
+ probe(pid);
+ return true;
+ } catch (error) {
+ // EPERM is a process that exists and is not ours to signal.
+ return (error as NodeJS.ErrnoException).code === "EPERM";
+ }
+}
+
/** The real world: the files, the clock, the console and the process. */
function realIo(): { io: Io; stop: () => void } {
const histogram = monitorEventLoopDelay({ resolution: 20 });
@@ -485,15 +501,7 @@ function realIo(): { io: Io; stop: () => void } {
return null;
}
},
- alive: pid => {
- try {
- process.kill(pid, 0);
- return true;
- } catch (error) {
- // EPERM is a process that exists and is not ours to signal.
- return (error as NodeJS.ErrnoException).code === "EPERM";
- }
- },
+ alive: pid => isOtherProcessAlive(pid),
lag: () => {
const reading = { p99: histogram.percentile(99) / 1e6, max: histogram.max / 1e6 };
histogram.reset();
diff --git a/apps/nooscape-relay/server/mapFleets.test.ts b/apps/nooscape-relay/server/mapFleets.test.ts
index c7f7bdf..f36bb1e 100644
--- a/apps/nooscape-relay/server/mapFleets.test.ts
+++ b/apps/nooscape-relay/server/mapFleets.test.ts
@@ -12,7 +12,9 @@ import {
ETHEREUM_LIGHTS_LIMIT,
ethereumLightsCaption,
MONAD_LIGHTS_LIMIT,
+ GNOSIS_LIGHTS_LIMIT,
monadLightsCaption,
+ gnosisLightsCaption,
FLEET_KIND_LABEL,
FLEET_NOT_PROVED,
FLEET_OVERLAP_NOTE,
@@ -427,6 +429,25 @@ describe("the words around a light", () => {
expect(new Set(shapes).size).toBe(7);
});
+ it("words a Gnosis group as a formation on the Gnosis page, with the facts Arc's groups state, and draws it as an octagon", () => {
+ const gnosis = (kind: MapFleet["kind"], overrides: Partial = {}): MapFleet => fleet(kind, { chain: "gnosis", count: 2_000, ...overrides });
+ expect(fleetShape(gnosis("platform_host"))).toBe("octagon");
+ expect(fleetKindLabel(gnosis("platform_host"))).toBe("Same host");
+ expect(fleetFact(gnosis("wallet"))).toBe("2,000 registrations on Gnosis name the same registering wallet.");
+ expect(fleetFact(gnosis("shared_link"))).toBe("2,000 registrations on Gnosis record exactly the same profile link.");
+ expect(fleetFact(gnosis("platform_host", { name: "run.example.app" }))).toBe("2,000 registrations on Gnosis point their profile link at run.example.app.");
+ expect(fleetFact(gnosis("platform_host"))).toBe("2,000 registrations on Gnosis point their profile link at the same host.");
+ expect(fleetNotProved(gnosis("platform_host"))).toBe(FLEET_NOT_PROVED.platform_host);
+ // Like an Arc, Base, Ethereum or Monad group, a Gnosis group is a formation on a page, so it shares Arc's note.
+ expect(fleetOverlapNote(gnosis("wallet"))).toBe(ARC_OVERLAP_NOTE);
+ const words = MAP_FLEET_KINDS.map(kind => fleetFact(gnosis(kind))).join(" ");
+ expect(words).not.toMatch(/scam|fraud|fake|spam|bot farm|sybil|malicious|suspicious|junk|trust|score|rank|verified|safe/i);
+ expect(words).not.toMatch(new RegExp(`[${String.fromCharCode(0x2013, 0x2014)}]`));
+ // The shapes of the eight chains are eight, so a group is never told from another by colour alone.
+ const shapes = [gnosis("wallet"), fleet("wallet", { chain: "monad" }), fleet("wallet", { chain: "ethereum" }), fleet("wallet", { chain: "base" }), fleet("wallet", { chain: "arc" }), owner(), fleet("wallet", { chain: "robinhood" }), fleet("wallet")].map(fleetShape);
+ expect(new Set(shapes).size).toBe(8);
+ });
+
it("captions the Arc lights with how many are drawn of how many groups there are, and says what a dome is", () => {
expect(ARC_LIGHTS_LIMIT).toBe(8);
expect(arcLightsCaption({ groups: 11 }, 8)).toBe(
@@ -439,10 +460,11 @@ describe("the words around a light", () => {
expect(words).not.toMatch(/[–—]/);
});
- it("captions the Base, Ethereum and Monad lights the same way, naming the chain and its shape", () => {
+ it("captions the Base, Ethereum, Monad and Gnosis lights the same way, naming the chain and its shape", () => {
expect(BASE_LIGHTS_LIMIT).toBe(5);
expect(ETHEREUM_LIGHTS_LIMIT).toBe(5);
expect(MONAD_LIGHTS_LIMIT).toBe(5);
+ expect(GNOSIS_LIGHTS_LIMIT).toBe(5);
expect(baseLightsCaption({ groups: 121 }, 5)).toBe(
"Large crosses are Base groups of registrations that share one wallet, host or profile link, 50 or more registrations each: 5 of 121 groups, as the registry held them at its last read. Each cross is one group, not one agent. No individual Base registration is drawn."
);
@@ -452,7 +474,10 @@ describe("the words around a light", () => {
expect(monadLightsCaption({ groups: 40 }, 5)).toBe(
"Large stars are Monad groups of registrations that share one wallet, host or profile link, 50 or more registrations each: 5 of 40 groups, as the registry held them at its last read. Each star is one group, not one agent. No individual Monad registration is drawn."
);
- for (const caption of [baseLightsCaption, ethereumLightsCaption, monadLightsCaption]) {
+ expect(gnosisLightsCaption({ groups: 12 }, 5)).toBe(
+ "Large octagons are Gnosis groups of registrations that share one wallet, host or profile link, 50 or more registrations each: 5 of 12 groups, as the registry held them at its last read. Each octagon is one group, not one agent. No individual Gnosis registration is drawn."
+ );
+ for (const caption of [baseLightsCaption, ethereumLightsCaption, monadLightsCaption, gnosisLightsCaption]) {
expect(caption({ groups: 0 }, 1)).toContain("1 of 1 group,");
expect(caption({ groups: 3 }, 0)).toBeNull();
const words = caption({ groups: 9 }, 8)!;
diff --git a/apps/nooscape-relay/server/multichainPass.integration.test.ts b/apps/nooscape-relay/server/multichainPass.integration.test.ts
index b3db5fb..e2a56f0 100644
--- a/apps/nooscape-relay/server/multichainPass.integration.test.ts
+++ b/apps/nooscape-relay/server/multichainPass.integration.test.ts
@@ -4,8 +4,8 @@ import { readFile } from "node:fs/promises";
import { createConnection, createPool } from "mysql2/promise";
import { afterAll, beforeAll, describe, expect, it } from "vitest";
import * as schema from "../drizzle/schema";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
-import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./ingestion/erc8004ChainFixtures";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, type Erc8004Chain } from "./ingestion/erc8004Chains";
+import { ARC_FIXTURES, BASE_FIXTURES, ETHEREUM_FIXTURES, GNOSIS_FIXTURES, MONAD_FIXTURES, type ChainFixtureLog, type ChainFixtures } from "./ingestion/erc8004ChainFixtures";
/**
* The identity pass on Ethereum, Base and Arc against a real database, with a fake node that serves the REAL registry logs
@@ -36,6 +36,7 @@ const CASES: Array<[string, Erc8004Chain, ChainFixtures]> = [
["Base", BASE_CHAIN, BASE_FIXTURES],
["Arc", ARC_CHAIN, ARC_FIXTURES],
["Monad", MONAD_CHAIN, MONAD_FIXTURES],
+ ["Gnosis", GNOSIS_CHAIN, GNOSIS_FIXTURES],
];
/** The URI an agent ends the walk with: its latest recorded update, else the one it registered with. */
@@ -50,7 +51,7 @@ function finalFacts(fixtures: ChainFixtures, agentId: string) {
/** What the listing rules do to one registration: a web link, an IPFS reference or inline JSON that parsed is listed (nothing here is shared); the rest is held out. */
const expectedListing = (kind: string) => (kind === "web" || kind === "ipfs" || kind === "inline-json" ? 1 : 0);
-describe.skipIf(!dbReachable)("the Ethereum, Base, Arc and Monad identity passes against a real database", { timeout: 120_000 }, () => {
+describe.skipIf(!dbReachable)("the Ethereum, Base, Arc, Monad and Gnosis identity passes against a real database", { timeout: 120_000 }, () => {
type Db = typeof import("./db");
let db: Db;
let writer: MySql2Database;
@@ -136,7 +137,7 @@ describe.skipIf(!dbReachable)("the Ethereum, Base, Arc and Monad identity passes
await admin.end();
process.env.DATABASE_URL = `${BASE_URL}/${TEST_DB}`;
- process.env.VITE_FEATURES = "chain_ethereum,chain_base,chain_arc,chain_monad";
+ process.env.VITE_FEATURES = "chain_ethereum,chain_base,chain_arc,chain_monad,chain_gnosis";
const { applyPendingMigrations, collectMigrationFiles, splitMigrationStatements } = await import("./dbMigrations");
const baselineReplay = await createConnection(process.env.DATABASE_URL);
for (const file of (await collectMigrationFiles("drizzle")).filter(f => f.version <= 14)) {
@@ -185,9 +186,9 @@ describe.skipIf(!dbReachable)("the Ethereum, Base, Arc and Monad identity passes
for (const statement of splitMigrationStatements(content)) await connection.query(statement);
await connection.end();
columnTypes.afterSecond = await columnTypesNow(process.env.DATABASE_URL);
- // Monad's value arrives with migration 0053, which restates the list that 0051 ended, so both are pasted after 0046, as production has them.
+ // Monad's value arrives with migration 0053 and Gnosis's with 0057, each restating the list the one before ended, so all are pasted after 0046, as production has them.
const later = await createConnection(process.env.DATABASE_URL);
- for (const migrationFile of ["0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql"]) {
+ for (const migrationFile of ["0051_solana_agenc_protocol.sql", "0053_monad_erc8004_protocol.sql", "0057_gnosis_erc8004_protocol.sql"]) {
for (const statement of splitMigrationStatements(await readFile(`drizzle/${migrationFile}`, "utf8"))) await later.query(statement);
}
await later.end();
@@ -370,7 +371,7 @@ describe.skipIf(!dbReachable)("the Ethereum, Base, Arc and Monad identity passes
});
});
- describe("four chains in one database", () => {
+ describe("five chains in one database", () => {
it("keeps each chain's rows to its own source: the counts add up and no key belongs to another chain", async () => {
let total = 0;
for (const [, chain, fixtures] of CASES) {
@@ -391,7 +392,7 @@ describe.skipIf(!dbReachable)("the Ethereum, Base, Arc and Monad identity passes
it("shows each protocol once in the directory, with no entry under BNB Chain's", async () => {
const rows = await writer.select({ protocol: schema.agentDirectoryEntries.protocol, total: sql`count(*)` }).from(schema.agentDirectoryEntries).groupBy(schema.agentDirectoryEntries.protocol);
- expect(rows.map(row => row.protocol).sort()).toEqual(["erc8004_arc", "erc8004_base", "erc8004_eth", "erc8004_monad"]);
+ expect(rows.map(row => row.protocol).sort()).toEqual(["erc8004_arc", "erc8004_base", "erc8004_eth", "erc8004_gnosis", "erc8004_monad"]);
});
});
});
diff --git a/apps/nooscape-relay/server/multichainRoute.test.ts b/apps/nooscape-relay/server/multichainRoute.test.ts
index 4156e0a..dbccb6f 100644
--- a/apps/nooscape-relay/server/multichainRoute.test.ts
+++ b/apps/nooscape-relay/server/multichainRoute.test.ts
@@ -65,7 +65,7 @@ describe("staging a source for another chain", { timeout: 30_000 }, () => {
it("refuses a chain whose switch is off, and says which switch, creating nothing", async () => {
const caller = await callerWith(OPERATOR);
- for (const [name, label, feature] of [["ethereum", "Ethereum", "chain_ethereum"], ["base", "Base", "chain_base"], ["arc", "Arc", "chain_arc"], ["monad", "Monad", "chain_monad"]] as const) {
+ for (const [name, label, feature] of [["ethereum", "Ethereum", "chain_ethereum"], ["base", "Base", "chain_base"], ["arc", "Arc", "chain_arc"], ["monad", "Monad", "chain_monad"], ["gnosis", "Gnosis", "chain_gnosis"]] as const) {
const error = await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: name }));
expect(error.code, name).toBe("PRECONDITION_FAILED");
expect(error.message, name).toBe(`The ${label} identity pass is switched off (${feature}), so its source cannot be staged.`);
@@ -142,6 +142,37 @@ describe("staging a source for another chain", { timeout: 30_000 }, () => {
expect((await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: "base" }))).message).toBe("Live data is temporarily unavailable.");
});
+ it("stages Gnosis from its entry: its own key, protocol and provider host, in review, manual only", async () => {
+ vi.stubEnv("VITE_FEATURES", "chain_gnosis");
+ const caller = await callerWith(OPERATOR);
+ expect(await caller.liveData.admin.registerApprovedPublicSource({ source: "gnosis" })).toMatchObject({ created: true, state: "review" });
+ expect(mocks.createIngestionSource).toHaveBeenLastCalledWith({
+ sourceKey: "gnosis-erc8004-identity-registry",
+ label: "Gnosis ERC-8004 identity registry",
+ protocol: "erc8004_gnosis",
+ rootUrl: "https://gnosis-mainnet.g.alchemy.com",
+ allowedHostname: "gnosis-mainnet.g.alchemy.com",
+ executionPolicy: "manual_only",
+ scheduleMinutes: 1_440,
+ state: "review",
+ createdByUserId: OPERATOR.id,
+ });
+ });
+
+ it("says which migration is missing when the database refuses Gnosis's protocol value, and takes no other refusal for it", async () => {
+ vi.stubEnv("VITE_FEATURES", "chain_gnosis,chain_base");
+ const caller = await callerWith(OPERATOR);
+ mocks.createIngestionSource.mockRejectedValueOnce(Object.assign(new Error("Failed query: insert into ingestion_sources"), { cause: Object.assign(new Error("Data truncated for column 'protocol' at row 1"), { code: "WARN_DATA_TRUNCATED", errno: 1265 }) }));
+ const missing = await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: "gnosis" }));
+ expect(missing.code).toBe("PRECONDITION_FAILED");
+ expect(missing.message).toContain("Paste migration 0057 first");
+ // Another column, another failure and another chain's refusal of its protocol say nothing about 0057.
+ mocks.createIngestionSource.mockRejectedValueOnce(Object.assign(new Error("Data truncated for column 'label' at row 1"), { code: "WARN_DATA_TRUNCATED" }));
+ expect((await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: "gnosis" }))).message).toBe("Live data is temporarily unavailable.");
+ mocks.createIngestionSource.mockRejectedValueOnce(Object.assign(new Error("Data truncated for column 'protocol' at row 1"), { code: "WARN_DATA_TRUNCATED" }));
+ expect((await rejected(caller.liveData.admin.registerApprovedPublicSource({ source: "base" }))).message).toBe("Live data is temporarily unavailable.");
+ });
+
it("stages Arc on the host X402_RPC names, and keeps that host alone: no port, path, query or key", async () => {
vi.stubEnv("VITE_FEATURES", "chain_arc");
vi.stubEnv("X402_RPC", `https://Arc-Node.example:8443/pfx-secret-9/v1/${KEY}?token=abc123`);
@@ -208,8 +239,8 @@ describe("running a source of another chain", { timeout: 30_000 }, () => {
it("sends each protocol to the one chain pass with its own chain, as a manual run", async () => {
const caller = await callerWith(OPERATOR);
- const { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN } = await import("./ingestion/erc8004Chains");
- for (const [protocol, chain] of [["erc8004_eth", ETHEREUM_CHAIN], ["erc8004_base", BASE_CHAIN], ["erc8004_arc", ARC_CHAIN], ["erc8004_monad", MONAD_CHAIN]] as const) {
+ const { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN } = await import("./ingestion/erc8004Chains");
+ for (const [protocol, chain] of [["erc8004_eth", ETHEREUM_CHAIN], ["erc8004_base", BASE_CHAIN], ["erc8004_arc", ARC_CHAIN], ["erc8004_monad", MONAD_CHAIN], ["erc8004_gnosis", GNOSIS_CHAIN]] as const) {
mocks.getIngestionSource.mockResolvedValueOnce(active(protocol));
await caller.liveData.admin.runSource({ sourceId: SOURCE_ID, mode: "activity" });
expect(mocks.runApprovedErc8004ChainSource).toHaveBeenLastCalledWith(chain, expect.objectContaining({ protocol }), "manual");
diff --git a/apps/nooscape-relay/server/partyHost.test.ts b/apps/nooscape-relay/server/partyHost.test.ts
new file mode 100644
index 0000000..77488ed
--- /dev/null
+++ b/apps/nooscape-relay/server/partyHost.test.ts
@@ -0,0 +1,22 @@
+import { describe, expect, it } from "vitest";
+import { partyHostOf } from "./partyHost";
+
+describe("the host a catalog record's card is served from", () => {
+ it("is the host of the address in lower case, without its port, credentials, path or query", () => {
+ expect(partyHostOf("https://Agent.Example.COM:8443/.well-known/agent-card.json?x=1")).toBe("agent.example.com");
+ expect(partyHostOf("https://user:secret@a.example/")).toBe("a.example");
+ // The URL parser lowercases the host of an https address by itself and leaves the capitals of any other scheme alone, so the function folds them.
+ expect(partyHostOf("a2a://Agent.Example:99/x")).toBe("agent.example");
+ });
+
+ it("is null where the address names no host", () => {
+ for (const value of [null, undefined, "", "not a url", "https://", "mailto:someone@example.org"]) {
+ expect(partyHostOf(value), String(value)).toBeNull();
+ }
+ });
+
+ it("is null for a host longer than the column that keeps it, and not for one that fits", () => {
+ expect(partyHostOf(`https://${"a".repeat(250)}.example/`)).toBeNull();
+ expect(partyHostOf(`https://${"a".repeat(60)}.${"b".repeat(60)}.example/`)).toBe(`${"a".repeat(60)}.${"b".repeat(60)}.example`);
+ });
+});
diff --git a/apps/nooscape-relay/server/partyHost.ts b/apps/nooscape-relay/server/partyHost.ts
new file mode 100644
index 0000000..ebeb993
--- /dev/null
+++ b/apps/nooscape-relay/server/partyHost.ts
@@ -0,0 +1,13 @@
+/**
+ * The host an address names, in lower case, or null when it names none: not a URL, no host, or longer than the column that keeps it. A catalog
+ * record keeps this beside its public snapshot, so a registry run can tell which party another source's public record already holds.
+ */
+export function partyHostOf(address: string | null | undefined): string | null {
+ if (!address) return null;
+ try {
+ const host = new URL(address).hostname.toLowerCase();
+ return host.length > 0 && host.length <= 255 ? host : null;
+ } catch {
+ return null;
+ }
+}
diff --git a/apps/nooscape-relay/server/rawFetch.test.ts b/apps/nooscape-relay/server/rawFetch.test.ts
index 894c6ff..ba838ae 100644
--- a/apps/nooscape-relay/server/rawFetch.test.ts
+++ b/apps/nooscape-relay/server/rawFetch.test.ts
@@ -30,6 +30,7 @@ const DIRECT: Record = {
/** Files that call the deadline wrapper, which is a plain `fetch`, and how many times. */
const WRAPPED: Record = {
+ "server/ingestion/a2aRegistryCatalog.ts": { calls: 1, why: "the two A2A registries' list endpoints, the one URL fixed in the adapter for each registry, with no address taken from a record" },
"server/ingestion/agenteconomy.ts": { calls: 1, why: "the Agent Economy census feed, the one URL fixed in the adapter" },
"server/ingestion/erc8004Rpc.ts": { calls: 1, why: "the chains' RPC: a host pinned in the chain table, or the operator's own node" },
};
diff --git a/apps/nooscape-relay/server/registryFleets.integration.test.ts b/apps/nooscape-relay/server/registryFleets.integration.test.ts
index f252b66..ed61353 100644
--- a/apps/nooscape-relay/server/registryFleets.integration.test.ts
+++ b/apps/nooscape-relay/server/registryFleets.integration.test.ts
@@ -8,7 +8,7 @@ import * as schema from "../drizzle/schema";
import { ARC_CHAIN } from "./ingestion/erc8004Chains";
/**
- * The groups behind the formations on Arc's, Base's, Ethereum's and Monad's own pages, counted over the registry rows of a real database (docs/chain-worlds-2026-10-20.md,
+ * The groups behind the formations on Arc's, Base's, Ethereum's, Monad's and Gnosis's own pages, counted over the registry rows of a real database (docs/chain-worlds-2026-10-20.md,
* "The Arc world", and docs/base-world-2026-10-21.md): the registering wallets, hosts and profile links that 50 or more registrations share, every registration counted
* whether it is listed or held out, and a registration that is hidden counted in none. Skips when no database is reachable.
*/
@@ -85,6 +85,8 @@ describe.skipIf(!dbReachable)("the groups of an extra chain's registry, against
for (const statement of splitMigrationStatements(await readFile("drizzle/0051_solana_agenc_protocol.sql", "utf8"))) await owner.query(statement);
// And 0053, which restates 0051's list and adds Monad's protocol, for the Monad page's groups.
for (const statement of splitMigrationStatements(await readFile("drizzle/0053_monad_erc8004_protocol.sql", "utf8"))) await owner.query(statement);
+ // And 0057, which restates 0053's list and adds Gnosis's protocol, for the Gnosis page's groups.
+ for (const statement of splitMigrationStatements(await readFile("drizzle/0057_gnosis_erc8004_protocol.sql", "utf8"))) await owner.query(statement);
await owner.end();
readCache = await import("./readCache");
@@ -412,5 +414,47 @@ describe.skipIf(!dbReachable)("the groups of an extra chain's registry, against
expect((await caller().liveData.registryFleets({ chain: "monad" })).fleets.map(fleet => fleet.count)).toEqual([80, 55]);
features(undefined);
});
+
+ it("serves Gnosis's groups the same way, from Gnosis's own rows and only while its switch is on, and never mixes the chains", async () => {
+ await writer.insert(schema.ingestionSources).values({ id: "src-gnosis", sourceKey: "fleets-gnosis", label: "Gnosis", protocol: "erc8004_gnosis", rootUrl: "https://gnosis-mainnet.g.alchemy.com", allowedHostname: "gnosis-mainnet.g.alchemy.com", state: "active", createdByUserId: operatorUserId });
+ const [row] = await writer.select().from(schema.ingestionSources).where(eq(schema.ingestionSources.id, "src-gnosis"));
+ const gnosisSource = row!;
+ // A wallet of 80, a host of 55 and three registrations that stand alone, which the pass publishes.
+ await register(gnosisSource, 80, { owner: () => wallet(12) });
+ await register(gnosisSource, 55, { host: "gnosis-host.example.app" });
+ await register(gnosisSource, 3);
+ await registry.refreshAgentRegistryListing(gnosisSource, { classify: true, publish: true });
+
+ features(undefined);
+ expect(await caller().liveData.registryFleets({ chain: "gnosis" })).toEqual({ fleets: [], groups: 0, walletGroups: 0, recorded: null, counted: 0, asOf: null });
+ features("chain_arc,chain_base,chain_ethereum,chain_monad");
+ expect((await caller().liveData.registryFleets({ chain: "gnosis" })).fleets).toEqual([]);
+ features("chain_gnosis");
+ const gnosis = await caller().liveData.registryFleets({ chain: "gnosis" });
+ expect(gnosis.fleets.map(fleet => [fleet.chain, fleet.kind, fleet.count])).toEqual([
+ ["gnosis", "wallet", 80],
+ ["gnosis", "platform_host", 55],
+ ]);
+ expect(gnosis.recorded).toBe(138);
+ expect(gnosis.groups).toBe(2);
+ expect(gnosis.walletGroups).toBe(1);
+ expect(gnosis.fleets.every(fleet => /^gnosis-fleet-[0-9a-f]{16}$/.test(fleet.id))).toBe(true);
+ // The other chains' switches are off, so they answer nothing, and none of their wallets or hosts is among Gnosis's groups.
+ for (const chain of ["arc", "base", "ethereum", "monad"] as const) expect((await caller().liveData.registryFleets({ chain })).fleets, chain).toEqual([]);
+ expect(gnosis.fleets.some(fleet => fleet.wallet === wallet(1) || fleet.wallet === wallet(7) || fleet.wallet === wallet(9) || fleet.wallet === wallet(11) || fleet.name === "monad-host.example.app" || fleet.name === "busy.example.app" || fleet.name === "base-host.example.app" || fleet.name === "eth-host.example.app")).toBe(false);
+ // With all five on, each chain answers from its own rows only.
+ features("chain_arc,chain_base,chain_ethereum,chain_monad,chain_gnosis");
+ const ethereum = await caller().liveData.registryFleets({ chain: "ethereum" });
+ expect(ethereum.fleets.every(fleet => fleet.chain === "ethereum")).toBe(true);
+ expect(ethereum.fleets.some(fleet => fleet.wallet === wallet(12) || fleet.name === "gnosis-host.example.app")).toBe(false);
+ const monad = await caller().liveData.registryFleets({ chain: "monad" });
+ expect(monad.fleets.every(fleet => fleet.chain === "monad")).toBe(true);
+ expect(monad.fleets.some(fleet => fleet.wallet === wallet(12) || fleet.name === "gnosis-host.example.app")).toBe(false);
+ expect((await caller().liveData.registryFleets({ chain: "base" })).fleets.map(fleet => fleet.count)).toEqual([70, 55]);
+ expect(ethereum.fleets.map(fleet => fleet.count)).toEqual([90, 60]);
+ expect((await caller().liveData.registryFleets({ chain: "gnosis" })).fleets.map(fleet => fleet.count)).toEqual([80, 55]);
+ expect(monad.fleets.map(fleet => fleet.count)).toEqual([80, 55]);
+ features(undefined);
+ });
});
});
diff --git a/apps/nooscape-relay/server/registryFleets.ts b/apps/nooscape-relay/server/registryFleets.ts
index dc3a804..c5aa0cd 100644
--- a/apps/nooscape-relay/server/registryFleets.ts
+++ b/apps/nooscape-relay/server/registryFleets.ts
@@ -7,7 +7,7 @@ import { sanitizePublicText } from "./publicText";
import { cachedDirectoryRead } from "./readCache";
/**
- * The groups behind the formations on an extra chain's own page (docs/chain-worlds-2026-10-20.md, "The Arc world", docs/base-world-2026-10-21.md, docs/ethereum-world-2026-10-27.md and docs/monad-world-2026-11-01.md): the registering
+ * The groups behind the formations on an extra chain's own page (docs/chain-worlds-2026-10-20.md, "The Arc world", docs/base-world-2026-10-21.md, docs/ethereum-world-2026-10-27.md, docs/monad-world-2026-11-01.md and docs/gnosis-world-2026-11-06.md): the registering
* wallets, hosts and profile links that {@link FLEET_MIN} or more of the chain's registrations share. They come straight from the
* registry rows the chain pass stores, so there is no table to migrate and no step to run, and the figures are the ones the
* listing rules count (docs/multichain-erc8004-2026-10-20.md). Nothing about any one registration is returned: a shared fact, its
@@ -18,7 +18,7 @@ import { cachedDirectoryRead } from "./readCache";
*/
/** The chain a group is on, for the chains that have a page of their own. */
-type WorldExtraChain = Extract;
+type WorldExtraChain = Extract;
const cleaned = (value: string | null): string | null => sanitizePublicText(value, 80);
diff --git a/apps/nooscape-relay/server/registryHostSkip.integration.test.ts b/apps/nooscape-relay/server/registryHostSkip.integration.test.ts
new file mode 100644
index 0000000..60feda0
--- /dev/null
+++ b/apps/nooscape-relay/server/registryHostSkip.integration.test.ts
@@ -0,0 +1,290 @@
+import { eq, inArray } from "drizzle-orm";
+import { drizzle, type MySql2Database } from "drizzle-orm/mysql2";
+import { readFile } from "node:fs/promises";
+import path from "node:path";
+import { createConnection, createPool } from "mysql2/promise";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+import * as schema from "../drizzle/schema";
+
+/**
+ * Database-backed test of the lookup an A2A registry run makes before it picks records: the addresses of the records that are public today
+ * from sources other than its own. A record of a direct source gives its endpoint row; a catalog record has none, on purpose, and gives the
+ * host its card is served from, kept on its snapshot (migration 0059). The lookup composes the reviewed-run gate every public read uses, so
+ * a record counts only while its source is active, its decision is public, its observation belongs to the approved run, and an operator has
+ * not withdrawn it. The first version of this file seeded endpoint rows for catalog sources, which production never writes, and so passed
+ * while the rule saw nothing between catalog sources (docs/catalog-party-rule-2026-11-07.md). It runs against a throwaway local schema built
+ * with the project's own migration runner; the file skips when no database is reachable.
+ */
+
+const TEST_DB = "nooscape_registry_skip_test";
+const BASE_URL = process.env.GATE_TEST_DATABASE_URL ?? "mysql://root:nooscape@127.0.0.1:3307";
+
+const dbReachable = await (async () => {
+ try {
+ const probe = await createConnection(`${BASE_URL}/mysql`);
+ await probe.end();
+ return true;
+ } catch {
+ return false;
+ }
+})();
+
+describe.skipIf(!dbReachable)("reviewed addresses of other sources, against a real database", () => {
+ type Db = typeof import("./db");
+ let db: Db;
+ let writer: MySql2Database;
+ let closePool: () => Promise;
+ let operatorUserId: number;
+
+ async function seed(input: {
+ key: string;
+ /** A direct source's record has an endpoint row. */
+ endpoint?: string;
+ /** A catalog record has none, and the host of its card on its snapshot. */
+ partyHost?: string;
+ /** The parser that read the record, and the catalog identity it was given, for the migration's backfill. */
+ parserVersion?: string;
+ identityExternalId?: string;
+ sourceState?: "active" | "paused";
+ decision?: "public" | "review";
+ observationInApprovedRun?: boolean;
+ withdrawn?: boolean;
+ }) {
+ const sourceId = `src-${input.key}`;
+ const agentId = `agent-${input.key}`;
+ const runId = `run-${input.key}`;
+ const observationId = `obs-${input.key}`;
+ const pad = (value: string) => value.padEnd(64, "0").slice(0, 64);
+ await writer.insert(schema.agents).values({ id: agentId, displayName: `Agent ${input.key}`, handle: `handle-${input.key}` });
+ await writer.insert(schema.ingestionSources).values({
+ id: sourceId,
+ sourceKey: `skip-test-${input.key}`,
+ label: `Skip test ${input.key}`,
+ protocol: "catalog",
+ rootUrl: `https://skip-test.example/${input.key}`,
+ allowedHostname: "skip-test.example",
+ state: input.sourceState ?? "active",
+ createdByUserId: operatorUserId,
+ });
+ await writer.insert(schema.ingestionRuns).values({ id: runId, sourceId, trigger: "manual", status: "completed", startedAt: new Date(), finishedAt: new Date() });
+ await writer.insert(schema.sourceObservations).values({
+ id: observationId,
+ sourceId,
+ protocol: "catalog",
+ canonicalLocator: `https://skip-test.example/${input.key}#1`,
+ locatorHash: pad(`loc-${input.key}`),
+ contentHash: pad(`hash-${input.key}`),
+ rawObjectKey: `skip-test/${input.key}`,
+ contentType: "application/json",
+ parserVersion: input.parserVersion ?? "skip-test",
+ validationStatus: "valid",
+ validationFindings: "[]",
+ observedAt: new Date(),
+ });
+ if (input.observationInApprovedRun !== false) await writer.insert(schema.sourceObservationRuns).values({ runId, observationId });
+ if (input.identityExternalId) {
+ await writer.insert(schema.agentIdentities).values({
+ id: `identity-${input.key}`,
+ agentId,
+ identityType: "catalog_record",
+ externalId: input.identityExternalId,
+ externalIdHash: pad(`identity-${input.key}`),
+ sourceObservationId: observationId,
+ });
+ }
+ if (input.endpoint) {
+ await writer.insert(schema.agentEndpoints).values({
+ id: `ep-${input.key}`,
+ agentId,
+ protocol: "a2a",
+ endpointUrl: input.endpoint,
+ endpointHash: pad(`endpoint-${input.key}`),
+ sourceObservationId: observationId,
+ });
+ }
+ await writer.insert(schema.agentPublicSnapshots).values({
+ id: `snapshot-${input.key}`,
+ agentId,
+ sourceId,
+ sourceObservationId: observationId,
+ displayName: `Agent ${input.key}`,
+ displayHandle: `handle-${input.key}`,
+ protocols: "[]",
+ partyHost: input.partyHost ?? null,
+ });
+ await writer.insert(schema.sourceProjectionDecisions).values({
+ sourceId,
+ state: input.decision ?? "public",
+ rationale: "skip test projection",
+ decidedByUserId: operatorUserId,
+ approvedRunId: input.decision === "review" ? null : runId,
+ });
+ if (input.withdrawn) {
+ await writer.insert(schema.agentRecordWithdrawals).values({ agentId, action: "withdraw", reason: "skip test withdrawal", decidedByUserId: operatorUserId });
+ }
+ }
+
+ beforeAll(async () => {
+ const admin = await createConnection(`${BASE_URL}/mysql`);
+ await admin.query(`DROP DATABASE IF EXISTS \`${TEST_DB}\``);
+ await admin.query(`CREATE DATABASE \`${TEST_DB}\``);
+ await admin.end();
+
+ process.env.DATABASE_URL = `${BASE_URL}/${TEST_DB}`;
+ const { applyPendingMigrations, collectMigrationFiles, splitMigrationStatements } = await import("./dbMigrations");
+ // The boot runner stamps baseline versions 0000-0014 without executing them, so a fresh schema replays those files by hand first.
+ const baselineReplay = await createConnection(process.env.DATABASE_URL);
+ for (const file of (await collectMigrationFiles("drizzle")).filter(f => f.version <= 14)) {
+ const content = await readFile(file.file, "utf8");
+ for (const statement of splitMigrationStatements(content)) {
+ await baselineReplay.query(statement);
+ }
+ }
+ await baselineReplay.end();
+ await applyPendingMigrations(process.env.DATABASE_URL);
+
+ db = await import("./db");
+ writer = drizzle(createPool(process.env.DATABASE_URL!));
+ closePool = async () => {
+ const client = (writer as unknown as { $client: { end(): Promise } }).$client;
+ await client.end();
+ };
+
+ await writer.insert(schema.users).values({ openId: "skip-test-operator", role: "admin" });
+ const [operatorRow] = await writer.select({ id: schema.users.id }).from(schema.users).where(eq(schema.users.openId, "skip-test-operator"));
+ operatorUserId = operatorRow.id;
+
+ // A direct source's record: an endpoint row and no host on its snapshot.
+ await seed({ key: "held", endpoint: "https://www.held.example/" });
+ // A catalog record: no endpoint row, the host of its card on its snapshot.
+ await seed({ key: "catheld", partyHost: "cat-held.example" });
+ await seed({ key: "mine", endpoint: "https://mine.example/", partyHost: "mine-host.example" });
+ // The conditions that keep a record out hold for both ways of saying where it is.
+ await seed({ key: "withdrawn", endpoint: "https://withdrawn.example/", partyHost: "withdrawn-host.example", withdrawn: true });
+ await seed({ key: "paused", endpoint: "https://paused.example/", partyHost: "paused-host.example", sourceState: "paused" });
+ await seed({ key: "unlinked", endpoint: "https://unreviewed.example/", partyHost: "unreviewed-host.example", observationInApprovedRun: false });
+ await seed({ key: "undecided", endpoint: "https://undecided.example/", partyHost: "undecided-host.example", decision: "review" });
+ }, 120_000);
+
+ afterAll(async () => {
+ if (closePool) await closePool();
+ }, 30_000);
+
+ it("returns the addresses of the public records of other sources, an endpoint row's or a catalog record's host, and only those", async () => {
+ expect((await db.listReviewedAddressesOfOtherSources("src-mine")).sort()).toEqual(["https://cat-held.example/", "https://www.held.example/"]);
+ });
+
+ it("leaves out the asking source's own records, and returns another source's to it", async () => {
+ expect((await db.listReviewedAddressesOfOtherSources("src-held")).sort()).toEqual(["https://cat-held.example/", "https://mine-host.example/", "https://mine.example/"]);
+ });
+
+ it("leaves a catalog record out for its own source and returns its host to another", async () => {
+ expect(await db.listReviewedAddressesOfOtherSources("src-catheld")).not.toContain("https://cat-held.example/");
+ expect(await db.listReviewedAddressesOfOtherSources("src-held")).toContain("https://cat-held.example/");
+ });
+
+ it("returns nothing for the records an operator withdrew, a paused source, an observation outside the approved run or a decision that is not public, by either address", async () => {
+ const urls = await db.listReviewedAddressesOfOtherSources("src-unrelated");
+ for (const gone of ["withdrawn", "paused", "unreviewed", "undecided"]) {
+ expect(urls).not.toContain(`https://${gone}.example/`);
+ expect(urls).not.toContain(`https://${gone}-host.example/`);
+ }
+ expect(urls.sort()).toEqual(["https://cat-held.example/", "https://mine-host.example/", "https://mine.example/", "https://www.held.example/"]);
+ });
+
+ it("returns a record again once the operator reinstates it", async () => {
+ await writer.insert(schema.agentRecordWithdrawals).values({ agentId: "agent-withdrawn", action: "reinstate", reason: "skip test reinstatement", decidedByUserId: operatorUserId });
+
+ const urls = await db.listReviewedAddressesOfOtherSources("src-unrelated");
+ expect(urls).toContain("https://withdrawn.example/");
+ expect(urls).toContain("https://withdrawn-host.example/");
+ });
+
+ it("holds the host of a catalog record written by the persist path, with no endpoint row, once its run is public", async () => {
+ const sourceId = "src-persisted";
+ await writer.insert(schema.ingestionSources).values({
+ id: sourceId,
+ sourceKey: "skip-test-persisted",
+ label: "Skip test persisted",
+ protocol: "catalog",
+ rootUrl: "https://skip-test.example/persisted",
+ allowedHostname: "skip-test.example",
+ state: "active",
+ createdByUserId: operatorUserId,
+ });
+ await writer.insert(schema.ingestionRuns).values({ id: "run-persisted", sourceId, trigger: "manual", status: "completed", startedAt: new Date(), finishedAt: new Date() });
+ const [source] = await writer.select().from(schema.ingestionSources).where(eq(schema.ingestionSources.id, sourceId));
+ const candidate = {
+ displayName: "Persisted Agent",
+ handle: "persisted-agent",
+ summary: "A test agent.",
+ primaryCapability: "testing",
+ specialties: [],
+ agentCardUrl: "https://Agent.Persisted.EXAMPLE:8443/.well-known/agent-card.json",
+ endpointUrl: "https://service.persisted.example/a2a",
+ authentication: null,
+ externalRecordId: "persisted-1",
+ catalogSignals: [],
+ };
+ const observation = {
+ canonicalLocator: "https://skip-test.example/persisted#1",
+ contentHash: "c".repeat(64),
+ rawObjectKey: "skip-test/persisted",
+ contentType: "application/json",
+ httpStatus: 200,
+ validationStatus: "valid" as const,
+ validationFindings: [],
+ observedAt: new Date(),
+ };
+
+ // A second record whose card address names no host: the host of its service address stands in.
+ const second = {
+ candidate: { ...candidate, displayName: "Second Agent", handle: "second-agent", externalRecordId: "persisted-2", agentCardUrl: "not a url", endpointUrl: "https://service2.persisted.example/a2a" },
+ observation: { ...observation, canonicalLocator: "https://skip-test.example/persisted#2", contentHash: "d".repeat(64), rawObjectKey: "skip-test/persisted-2" },
+ };
+
+ await db.persistCatalogObservation({ source: source!, runId: "run-persisted", candidate, observation });
+ // A row written before the column has no host; seeing the record again gives it one.
+ await writer.update(schema.agentPublicSnapshots).set({ partyHost: null }).where(eq(schema.agentPublicSnapshots.sourceId, sourceId));
+ await db.persistCatalogObservation({ source: source!, runId: "run-persisted", candidate, observation });
+ await db.persistCatalogObservation({ source: source!, runId: "run-persisted", ...second });
+
+ const snapshots = await writer.select().from(schema.agentPublicSnapshots).where(eq(schema.agentPublicSnapshots.sourceId, sourceId));
+ expect(snapshots).toHaveLength(2);
+ const hostOf = (name: string) => snapshots.find(snapshot => snapshot.displayName === name)?.partyHost;
+ expect(hostOf("Persisted Agent")).toBe("agent.persisted.example");
+ expect(hostOf("Second Agent")).toBe("service2.persisted.example");
+ expect(await writer.select().from(schema.agentEndpoints).where(inArray(schema.agentEndpoints.agentId, snapshots.map(snapshot => snapshot.agentId)))).toEqual([]);
+ // Not public yet: no decision binds the run.
+ expect(await db.listReviewedAddressesOfOtherSources("src-asker")).not.toContain("https://agent.persisted.example/");
+
+ await writer.insert(schema.sourceProjectionDecisions).values({ sourceId, state: "public", rationale: "persist test projection", decidedByUserId: operatorUserId, approvedRunId: "run-persisted" });
+
+ const held = await db.listReviewedAddressesOfOtherSources("src-asker");
+ expect(held).toContain("https://agent.persisted.example/");
+ expect(held).toContain("https://service2.persisted.example/");
+ expect(await db.listReviewedAddressesOfOtherSources(sourceId)).not.toContain("https://agent.persisted.example/");
+ });
+
+ it("fills the host of the Agenstry feed's snapshots from their identity in migration 0059, and leaves the registries' and any host already there alone", async () => {
+ const { collectMigrationFiles, splitMigrationStatements } = await import("./dbMigrations");
+ const file = (await collectMigrationFiles(path.resolve(process.cwd(), "drizzle"))).find(entry => entry.version === 59)!;
+ const statements = splitMigrationStatements(await readFile(file.file, "utf8"));
+ expect(statements).toHaveLength(2);
+ await seed({ key: "agenstryish", parserVersion: "agenstry-catalog-v2-source-scoped", identityExternalId: "src-agenstryish:Backfill.Example" });
+ await seed({ key: "agenstrykept", parserVersion: "agenstry-catalog-v1-source-scoped", identityExternalId: "src-agenstrykept:other.example", partyHost: "kept.example" });
+ await seed({ key: "registryish", parserVersion: "a2a-registry-catalog-v1-source-scoped", identityExternalId: "src-registryish:5f3c9a10-0000-4000-8000-000000000000" });
+
+ const connection = await createConnection(process.env.DATABASE_URL!);
+ try {
+ await connection.query(statements[1]!);
+ } finally {
+ await connection.end();
+ }
+
+ const hostOf = async (key: string) => (await writer.select().from(schema.agentPublicSnapshots).where(eq(schema.agentPublicSnapshots.id, `snapshot-${key}`)))[0]!.partyHost;
+ expect(await hostOf("agenstryish")).toBe("backfill.example");
+ expect(await hostOf("agenstrykept")).toBe("kept.example");
+ expect(await hostOf("registryish")).toBeNull();
+ });
+});
diff --git a/apps/nooscape-relay/server/routeHead.test.ts b/apps/nooscape-relay/server/routeHead.test.ts
index 9ba46f0..cd417cb 100644
--- a/apps/nooscape-relay/server/routeHead.test.ts
+++ b/apps/nooscape-relay/server/routeHead.test.ts
@@ -124,12 +124,13 @@ describe("the card of a chain page", () => {
["/chains/base", "Base"],
["/chains/ethereum", "Ethereum"],
["/chains/monad", "Monad"],
+ ["/chains/gnosis", "Gnosis"],
];
const publicDir = path.resolve(import.meta.dirname, "../client/public");
const cardOf = (route: string) => ROUTE_HEADS[route]!.image!;
const IMAGE_TAGS = [/ ]*>/, / ]*>/, / ]*>/, / ]*>/, / ]*>/];
- it("belongs to the seven chain pages and to no other fixed page", () => {
+ it("belongs to the eight chain pages and to no other fixed page", () => {
expect(Object.keys(ROUTE_HEADS).filter(route => ROUTE_HEADS[route]!.image).sort()).toEqual(CHAINS.map(([route]) => route).sort());
});
@@ -435,6 +436,31 @@ describe("the routes", () => {
}
});
+ it("serves the Gnosis page's head only while its switch is on, and indexes it with its own card", async () => {
+ const saved = process.env.VITE_FEATURES;
+ try {
+ delete process.env.VITE_FEATURES;
+ expect((await get("/chains/gnosis")).body).toBe("FALLBACK");
+ process.env.VITE_FEATURES = "chain_arc,chain_base,chain_ethereum,chain_monad";
+ expect((await get("/chains/gnosis")).body).toBe("FALLBACK");
+ process.env.VITE_FEATURES = "claims, chain_gnosis";
+ const page = await get("/chains/gnosis");
+ expect(page.status).toBe(200);
+ expect(page.body).toContain("Gnosis registry groups | Nooscape ");
+ expect(tag(page.body, / ]*>/)).toContain('href="https://nooscape.si/chains/gnosis"');
+ expect(tag(page.body, / ]*>/)).toContain(`content="${INDEXED}"`);
+ const card = ROUTE_HEADS["/chains/gnosis"]!.image!;
+ const url = `https://nooscape.si/${card.file}`;
+ const html = flat(page.body);
+ expect(card.file).toBe("nooscape-card-chain-gnosis.png");
+ for (const pattern of [/ ]*>/, / ]*>/, / ]*>/]) expect(tag(html, pattern)).toContain(`content="${url}"`);
+ for (const pattern of [/ ]*>/, / ]*>/]) expect(tag(html, pattern)).toContain(`content="${card.alt}"`);
+ } finally {
+ if (saved === undefined) delete process.env.VITE_FEATURES;
+ else process.env.VITE_FEATURES = saved;
+ }
+ });
+
it("keeps the operator console and the 404 page out of search, and every other fixed page in", async () => {
expect(tag((await get("/admin/sources")).body, / ]*>/)).toContain('content="noindex, nofollow"');
expect(tag((await get("/404")).body, / ]*>/)).toContain(`content="${NOT_INDEXED}"`);
diff --git a/apps/nooscape-relay/server/routeHead.ts b/apps/nooscape-relay/server/routeHead.ts
index a0d4f0e..b541e78 100644
--- a/apps/nooscape-relay/server/routeHead.ts
+++ b/apps/nooscape-relay/server/routeHead.ts
@@ -93,6 +93,14 @@ export const ROUTE_HEADS: Record = {
alt: `Nooscape, World 07, Monad: three platforms, same host, same profile link and same wallet, each with star formations, beside the words The coral loom, A young registry, read in groups, the note Illustration, not agent activity, and the line ${PROMISES}`,
},
},
+ "/chains/gnosis": {
+ title: "Gnosis registry groups",
+ description: "Explore the groups of Gnosis registrations that share a wallet, a link or a host. A group is not an agent, and a registration is not an endorsement.",
+ image: {
+ file: "nooscape-card-chain-gnosis.png",
+ alt: `Nooscape, World 08, Gnosis: three platforms, same host, same profile link and same wallet, each with octagon formations, beside the words The teal lantern, A quiet registry, read in groups, the note Illustration, not agent activity, and the line ${PROMISES}`,
+ },
+ },
"/field/arc-registry-2026-10-20": {
title: "Arc registry census, 2026-10-20",
description: "A dated count of the ERC-8004 identity registry on Arc as the directory holds it: who registered, what the listing rules held out and what the chain records. Counts only, with no agent, wallet or host named.",
@@ -113,6 +121,10 @@ export const ROUTE_HEADS: Record = {
title: "Monad registry census, 2026-11-01",
description: "A dated count of the ERC-8004 identity registry on Monad as the directory holds it: who registered, what the listing rules held out, what the chain records and when. Counts only, with no agent, wallet or host named.",
},
+ "/field/gnosis-registry-2026-11-06": {
+ title: "Gnosis registry census, 2026-11-06",
+ description: "A dated count of the ERC-8004 identity registry on Gnosis as the directory holds it: who registered, what the listing rules held out, what the chain records and when. Counts only, with no agent, wallet or host named.",
+ },
"/chains/bnb": {
title: "BNB Chain registry groups",
description: "Explore the groups of BNB Chain registrations that share a wallet, a link, a host or a template. A group is not an agent, and a registration is not an endorsement.",
diff --git a/apps/nooscape-relay/server/routers/liveData.ts b/apps/nooscape-relay/server/routers/liveData.ts
index e473cd8..860cd70 100644
--- a/apps/nooscape-relay/server/routers/liveData.ts
+++ b/apps/nooscape-relay/server/routers/liveData.ts
@@ -65,9 +65,11 @@ import { extraChainsOn, extraProtocolOf, type ChainStat, type ExtraChainKey, typ
import { readCatchArchive, readCatchForDate, readTodaysCatch, unavailableCatch } from "../owlsCatch";
import { storagePut, verifyStoredObject } from "../storage";
import { isCatchDate } from "@shared/owlsCatch";
+import { CENSUS_CHAINS, censusChainOn } from "@shared/censusToday";
+import { readCensusToday } from "../censusToday";
import { validateA2aSourceRoot } from "../ingestion/a2a";
import { runApprovedA2aSource } from "../ingestion/runA2a";
-import { runApprovedAgenstrySource } from "../ingestion/runAgenstry";
+import { runApprovedCatalogSource } from "../ingestion/runCatalog";
import { runApprovedAgentEconomySource } from "../ingestion/runAgentEconomy";
import { runApproved8004SolanaSource } from "../ingestion/run8004Solana";
import { runApprovedSaidSource } from "../ingestion/runSaid";
@@ -78,7 +80,7 @@ import { BSC_ALLOWED_HOSTNAME, BSC_ROOT_URL, BSC_SOURCE_KEY, BscRegistryValidati
import { BscRpcError, BscRpcNotConfiguredError } from "../ingestion/bscRpc";
import { runApprovedErc8004ChainSource } from "../ingestion/runErc8004Chain";
import { Erc8004ChainOffError } from "../ingestion/erc8004Chain";
-import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, MONAD_CHAIN, erc8004ChainOfProtocol } from "../ingestion/erc8004Chains";
+import { ARC_CHAIN, BASE_CHAIN, ETHEREUM_CHAIN, GNOSIS_CHAIN, MONAD_CHAIN, erc8004ChainOfProtocol } from "../ingestion/erc8004Chains";
import { Erc8004RpcNotConfiguredError } from "../ingestion/erc8004Rpc";
import { chainSourcePreset } from "../ingestion/chainPresets";
import { runApprovedMetaplexRegistrySource } from "../ingestion/runMetaplex";
@@ -128,6 +130,27 @@ const approvedPublicSources = {
// keeps the first population wave deliberately below that boundary.
scheduleMinutes: 1_440,
},
+ // Two public A2A registries read as catalogs (docs/a2a-registries-2026-11-06.md). Both are staged manual_only: nothing reads either
+ // registry until an operator runs it, and a2aregistry.org has given no written permission.
+ a2aregistry: {
+ sourceKey: "a2aregistry-public-api",
+ label: "a2aregistry.org community A2A registry",
+ protocol: "catalog" as const,
+ rootUrl: "https://a2aregistry.org/api/agents",
+ allowedHostname: "a2aregistry.org",
+ scheduleMinutes: 1_440,
+ executionPolicy: "manual_only" as const,
+ },
+ a2aRegistryApi: {
+ sourceKey: "a2a-registry-org-public-api",
+ label: "A2A Registry public API (a2a-registry.org)",
+ protocol: "catalog" as const,
+ rootUrl: "https://api.a2a-registry.org/public/agents",
+ allowedHostname: "api.a2a-registry.org",
+ // The approval allows at most one read a week.
+ scheduleMinutes: 10_080,
+ executionPolicy: "manual_only" as const,
+ },
agentEconomy: {
sourceKey: "agent-economy-public-census",
label: "Agent Economy public aggregate census",
@@ -254,7 +277,7 @@ const approvedPublicSources = {
* The chains of the identity pass that have a switch (docs/multichain-erc8004-2026-10-20.md), by the name the staging action gives them.
* Their sources are made from the chain's entry (ingestion/chainPresets.ts), not from a constant here.
*/
-const switchedChains = { ethereum: ETHEREUM_CHAIN, base: BASE_CHAIN, arc: ARC_CHAIN, monad: MONAD_CHAIN } as const;
+const switchedChains = { ethereum: ETHEREUM_CHAIN, base: BASE_CHAIN, arc: ARC_CHAIN, monad: MONAD_CHAIN, gnosis: GNOSIS_CHAIN } as const;
/** The preset for one of them, with the two refusals it can make (switched off; endpoint not set) put to the operator as what they are. */
function stageableChainSource(name: keyof typeof switchedChains) {
@@ -455,6 +478,17 @@ export const liveDataRouter = router({
return { chains: [] };
}
}),
+ // The Today block on a registry census page: the counts of the page's first table as the directory holds them now. Counts only. A chain
+ // whose switch is off, or whose source is not active, has none; a read that fails gives none, never zeros.
+ censusToday: publicProcedure.input(z.object({ chain: z.enum(CENSUS_CHAINS) })).query(async ({ input }) => {
+ try {
+ if (!censusChainOn(input.chain, process.env.VITE_FEATURES)) return { today: null } as const;
+ return { today: await readCensusToday(input.chain) } as const;
+ } catch (error) {
+ if (!isCircuitOpenError(error)) console.warn("[LiveData] Census today read failed:", describeStorageFailure(error));
+ return { today: null } as const;
+ }
+ }),
// What entered the directory in the last 24 hours, per chain, and the newest few by name: the Home page's "new to the
// Owl" lines. Counts of visible entries by their own first-seen time; fails closed to no figures, never to zeros.
arrivals: publicProcedure.query(async () => {
@@ -555,7 +589,7 @@ export const liveDataRouter = router({
// more of its registrations share, from the registry rows (docs/chain-worlds-2026-10-20.md). No registration is returned, only the
// shared fact. Fails closed to no groups, which is also what it answers while the chain's switch is off or before its first
// complete pass has published.
- registryFleets: publicProcedure.input(z.object({ chain: z.enum(["arc", "base", "ethereum", "monad"]) })).query(async ({ input }) => {
+ registryFleets: publicProcedure.input(z.object({ chain: z.enum(["arc", "base", "ethereum", "monad", "gnosis"]) })).query(async ({ input }) => {
try {
if (!extraChainsOn(process.env.VITE_FEATURES).includes(input.chain)) return EMPTY_REGISTRY_FLEETS;
return await readRegistryFleets(input.chain);
@@ -763,10 +797,10 @@ export const liveDataRouter = router({
}
}),
registerApprovedPublicSource: operatorProcedure
- .input(z.object({ source: z.enum(["agenstry", "agentEconomy", "metaplex", "robinhood", "usdgSettlements", "robinhoodReputation", "solana8004", "said", "agenc", "bsc", "ethereum", "base", "arc", "monad"]) }))
+ .input(z.object({ source: z.enum(["agenstry", "a2aregistry", "a2aRegistryApi", "agentEconomy", "metaplex", "robinhood", "usdgSettlements", "robinhoodReputation", "solana8004", "said", "agenc", "bsc", "ethereum", "base", "arc", "monad", "gnosis"]) }))
.mutation(async ({ ctx, input }) => {
const candidate =
- input.source === "ethereum" || input.source === "base" || input.source === "arc" || input.source === "monad"
+ input.source === "ethereum" || input.source === "base" || input.source === "arc" || input.source === "monad" || input.source === "gnosis"
? stageableChainSource(input.source)
: approvedPublicSources[input.source];
try {
@@ -784,6 +818,10 @@ export const liveDataRouter = router({
if (input.source === "monad" && driverErrorHas(error, "WARN_DATA_TRUNCATED") && describeFailure(error).includes("'protocol'")) {
throw new TRPCError({ code: "PRECONDITION_FAILED", message: "The database does not have the Monad protocol value yet. Paste migration 0053 first (docs/monad-erc8004-2026-11-01.md), then stage the source again." });
}
+ // The same for Gnosis's value (migration 0057).
+ if (input.source === "gnosis" && driverErrorHas(error, "WARN_DATA_TRUNCATED") && describeFailure(error).includes("'protocol'")) {
+ throw new TRPCError({ code: "PRECONDITION_FAILED", message: "The database does not have the Gnosis protocol value yet. Paste migration 0057 first (docs/gnosis-erc8004-2026-11-06.md), then stage the source again." });
+ }
return databaseFailure(error);
}
}),
@@ -1224,7 +1262,7 @@ export const liveDataRouter = router({
});
}
if (source.protocol === "a2a") return await runApprovedA2aSource(source, "manual");
- if (source.protocol === "catalog") return await runApprovedAgenstrySource(source, "manual");
+ if (source.protocol === "catalog") return await runApprovedCatalogSource(source, "manual");
if (source.protocol === "census") return await runApprovedAgentEconomySource(source, "manual");
if (source.protocol === "solana_registry") {
// The API pilot (observe) and the on-chain chain pass (activity)
diff --git a/apps/nooscape-relay/server/sitemap.test.ts b/apps/nooscape-relay/server/sitemap.test.ts
index 2091645..5e108bf 100644
--- a/apps/nooscape-relay/server/sitemap.test.ts
+++ b/apps/nooscape-relay/server/sitemap.test.ts
@@ -47,7 +47,7 @@ describe("the sitemap text", () => {
});
describe("the pages behind a switch that the sitemap lists", () => {
- it("lists the Arc, Base, Ethereum and Monad pages and their census reports once their switches are on, and no scaffold page", () => {
+ it("lists the Arc, Base, Ethereum, Monad and Gnosis pages and their census reports once their switches are on, and no scaffold page", () => {
expect(flaggedSitemapUrls(undefined)).toEqual([]);
expect(flaggedSitemapUrls("")).toEqual([]);
expect(flaggedSitemapUrls("watch,patrols,claims")).toEqual([]);
@@ -73,6 +73,20 @@ describe("the pages behind a switch that the sitemap lists", () => {
`${SITE_ORIGIN}/chains/monad`,
`${SITE_ORIGIN}/field/monad-registry-2026-11-01`,
]);
+ expect(flaggedSitemapUrls("chain_gnosis")).toEqual([`${SITE_ORIGIN}/chains/gnosis`, `${SITE_ORIGIN}/field/gnosis-registry-2026-11-06`]);
+ expect(flaggedSitemapUrls("chain_gnosis,chain_monad,chain_ethereum,chain_base,chain_arc")).toEqual([
+ `${SITE_ORIGIN}/chains/arc`,
+ `${SITE_ORIGIN}/field/arc-registry-2026-10-20`,
+ `${SITE_ORIGIN}/field/arc-registry-2026-11-06`,
+ `${SITE_ORIGIN}/chains/base`,
+ `${SITE_ORIGIN}/field/base-registry-2026-10-21`,
+ `${SITE_ORIGIN}/chains/ethereum`,
+ `${SITE_ORIGIN}/field/ethereum-registry-2026-10-28`,
+ `${SITE_ORIGIN}/chains/monad`,
+ `${SITE_ORIGIN}/field/monad-registry-2026-11-01`,
+ `${SITE_ORIGIN}/chains/gnosis`,
+ `${SITE_ORIGIN}/field/gnosis-registry-2026-11-06`,
+ ]);
expect(flaggedSitemapUrls("chain_base")).toEqual([`${SITE_ORIGIN}/chains/base`, `${SITE_ORIGIN}/field/base-registry-2026-10-21`]);
expect(flaggedSitemapUrls("chain_base,chain_arc")).toEqual([
`${SITE_ORIGIN}/chains/arc`,
diff --git a/apps/nooscape-relay/server/sitemap.ts b/apps/nooscape-relay/server/sitemap.ts
index 3b11a70..b1e5b14 100644
--- a/apps/nooscape-relay/server/sitemap.ts
+++ b/apps/nooscape-relay/server/sitemap.ts
@@ -50,6 +50,7 @@ const SITEMAP_FLAGGED_ROUTES: Partial> = {
chain_base: ["/chains/base", "/field/base-registry-2026-10-21"],
chain_ethereum: ["/chains/ethereum", "/field/ethereum-registry-2026-10-28"],
chain_monad: ["/chains/monad", "/field/monad-registry-2026-11-01"],
+ chain_gnosis: ["/chains/gnosis", "/field/gnosis-registry-2026-11-06"],
};
export function flaggedSitemapUrls(features: string | undefined = process.env.VITE_FEATURES): string[] {
diff --git a/apps/nooscape-relay/shared/censusToday.test.ts b/apps/nooscape-relay/shared/censusToday.test.ts
new file mode 100644
index 0000000..c7f13a7
--- /dev/null
+++ b/apps/nooscape-relay/shared/censusToday.test.ts
@@ -0,0 +1,52 @@
+import { describe, expect, it } from "vitest";
+import { EXTRA_CHAINS, extraProtocolOf } from "./chains";
+import {
+ CENSUS_CHAINS,
+ CENSUS_FIGURES,
+ CENSUS_FIGURE_LABEL,
+ CENSUS_SOURCE,
+ censusChainOn,
+ censusFigureOfLabel,
+} from "./censusToday";
+
+describe("the chains with a Today block", () => {
+ it("are the extra chains and the two older ones with a census report", () => {
+ expect([...CENSUS_CHAINS].sort()).toEqual([...EXTRA_CHAINS, "bnb", "robinhood"].sort());
+ });
+
+ it("read each extra chain's own source, and its ratings under the chain's own key", () => {
+ for (const chain of EXTRA_CHAINS) {
+ expect(CENSUS_SOURCE[chain]).toEqual({ kind: "rows", protocol: extraProtocolOf(chain), ratingsKey: chain });
+ }
+ });
+
+ it("keep BNB Chain's registrations in rows and Robinhood Chain's as entries, neither with a ratings count of this kind", () => {
+ expect(CENSUS_SOURCE.bnb).toEqual({ kind: "rows", protocol: "erc8004_bsc", ratingsKey: null });
+ expect(CENSUS_SOURCE.robinhood).toEqual({ kind: "entries", protocol: "erc8004", ratingsKey: null });
+ });
+
+ it("are on while their switch is, and BNB Chain and Robinhood Chain always", () => {
+ expect(censusChainOn("bnb", undefined)).toBe(true);
+ expect(censusChainOn("robinhood", "")).toBe(true);
+ expect(censusChainOn("monad", undefined)).toBe(false);
+ expect(censusChainOn("monad", "chain_monad")).toBe(true);
+ expect(censusChainOn("gnosis", "claims,chain_gnosis")).toBe(true);
+ expect(censusChainOn("gnosis", "chain_monad")).toBe(false);
+ expect(censusChainOn("arc", "claims_arc")).toBe(false);
+ });
+});
+
+describe("the counts of a first table", () => {
+ it("have a label each, and no two share one", () => {
+ expect(new Set(CENSUS_FIGURES.map(figure => CENSUS_FIGURE_LABEL[figure])).size).toBe(CENSUS_FIGURES.length);
+ });
+
+ it("are found again from the label a page uses", () => {
+ for (const figure of CENSUS_FIGURES) expect(censusFigureOfLabel(CENSUS_FIGURE_LABEL[figure])).toBe(figure);
+ expect(censusFigureOfLabel("Entries the directory shows")).toBeNull();
+ });
+
+ it("are written without a long dash", () => {
+ for (const figure of CENSUS_FIGURES) expect(CENSUS_FIGURE_LABEL[figure]).not.toMatch(/[\u2013\u2014]/);
+ });
+});
diff --git a/apps/nooscape-relay/shared/censusToday.ts b/apps/nooscape-relay/shared/censusToday.ts
new file mode 100644
index 0000000..151bef8
--- /dev/null
+++ b/apps/nooscape-relay/shared/censusToday.ts
@@ -0,0 +1,65 @@
+import { extraChainsOn, type ExtraChainKey } from "./chains";
+
+/**
+ * The "Today" block on a registry census page: the same counts the page's first table makes, read from the directory as it stands now,
+ * beside the figures the report measured on its own date. The report is a dated measurement and does not change; this is the one part
+ * of the page that does (docs/census-today-2026-11-06.md).
+ */
+
+/** The chains with a registry census report that has a Today block. */
+export const CENSUS_CHAINS = ["arc", "base", "ethereum", "monad", "gnosis", "bnb", "robinhood"] as const;
+export type CensusChain = (typeof CENSUS_CHAINS)[number];
+
+/**
+ * Where a chain's registrations are kept and which source they belong to. `rows` chains keep every registration in the registry rows
+ * table and list a part of them in the directory; `entries` chains keep each registration as a directory entry.
+ */
+export const CENSUS_SOURCE: Record = {
+ arc: { kind: "rows", protocol: "erc8004_arc", ratingsKey: "arc" },
+ base: { kind: "rows", protocol: "erc8004_base", ratingsKey: "base" },
+ ethereum: { kind: "rows", protocol: "erc8004_eth", ratingsKey: "ethereum" },
+ monad: { kind: "rows", protocol: "erc8004_monad", ratingsKey: "monad" },
+ gnosis: { kind: "rows", protocol: "erc8004_gnosis", ratingsKey: "gnosis" },
+ bnb: { kind: "rows", protocol: "erc8004_bsc", ratingsKey: null },
+ robinhood: { kind: "entries", protocol: "erc8004", ratingsKey: null },
+};
+
+/** The counts of a census page's first table. A registry has the ones that mean something for it. */
+export const CENSUS_FIGURES = ["onChain", "stored", "overflow", "listed", "wallets", "withHttpsHost", "hosts", "profileLinks"] as const;
+export type CensusFigure = (typeof CENSUS_FIGURES)[number];
+
+/** The words the census pages use for each count in their first table. */
+export const CENSUS_FIGURE_LABEL: Record = {
+ onChain: "Registrations the directory counts on the chain",
+ stored: "Registrations the directory has stored",
+ overflow: "Registrations counted past a host's cap and not stored",
+ listed: "Registrations the directory lists",
+ wallets: "Registering wallets",
+ withHttpsHost: "Registrations with an https link",
+ hosts: "Host names of those links",
+ profileLinks: "Different profile links",
+};
+
+/** The count a page's label stands for, or null for a label this table does not use. */
+export function censusFigureOfLabel(label: string): CensusFigure | null {
+ return CENSUS_FIGURES.find(figure => CENSUS_FIGURE_LABEL[figure] === label) ?? null;
+}
+
+/** What the answer says about one chain. Counts only: no name, wallet, host or link. */
+export type CensusToday = {
+ chain: CensusChain;
+ /** When the registry's source last finished a pass, as an ISO time, or null if it has not. */
+ asOf: string | null;
+ /** The counts that mean something for this registry. */
+ figures: Partial>;
+ /** Registrations the listing rules hold out, by where they stand now. Only for a registry that keeps its registrations in rows. */
+ heldOut: { noLink: number; grouped: number; numericName: number; pending: number } | null;
+ /** The ratings the chain's reputation registry holds, once the count has read the whole history, and null before. */
+ ratings: number | null;
+};
+
+/** Whether a chain's census is on: the original two always, an extra chain while its switch is. */
+export function censusChainOn(chain: CensusChain, features: string | undefined): boolean {
+ if (chain === "bnb" || chain === "robinhood") return true;
+ return extraChainsOn(features).includes(chain as ExtraChainKey);
+}
diff --git a/apps/nooscape-relay/shared/chains.ts b/apps/nooscape-relay/shared/chains.ts
index 9074972..c889df3 100644
--- a/apps/nooscape-relay/shared/chains.ts
+++ b/apps/nooscape-relay/shared/chains.ts
@@ -43,7 +43,7 @@ export function protocolsOf(chain: ChainKey): string[] {
}
/**
- * Ethereum, Base, Arc and Monad: the chains the ERC-8004 identity pass reads besides the three above (docs/multichain-erc8004-2026-10-20.md).
+ * Ethereum, Base, Arc, Monad and Gnosis: the chains the ERC-8004 identity pass reads besides the three above (docs/multichain-erc8004-2026-10-20.md).
* Each is behind a switch in `VITE_FEATURES` that is off until the owner turns it on, and while it is off nothing of it is listed,
* counted or served. They are kept apart from {@link ChainKey} on purpose: a chain in that list gets a map light, a page and a
* place in the Owl's Catch, and an extra chain takes each of those on its own. Arc has a page (`WorldKey` in
@@ -51,19 +51,20 @@ export function protocolsOf(chain: ChainKey): string[] {
* (docs/chain-worlds-2026-10-20.md and the arc-*.md records it links). Every extra chain that is on is in "just arrived", in the
* Owl's Catch's round numbers and in the watchlist and the webhook, and is otherwise listed and counted.
*/
-export type ExtraChainKey = "ethereum" | "base" | "arc" | "monad";
+export type ExtraChainKey = "ethereum" | "base" | "arc" | "monad" | "gnosis";
/** Every chain the directory lists: the three that need no switch, then the extra ones. */
export type ListedChainKey = ChainKey | ExtraChainKey;
/** The extra chains in the order the tabs and the API list them. */
-export const EXTRA_CHAINS: readonly ExtraChainKey[] = ["ethereum", "base", "arc", "monad"];
+export const EXTRA_CHAINS: readonly ExtraChainKey[] = ["ethereum", "base", "arc", "monad", "gnosis"];
export const EXTRA_CHAIN_LABEL: Record = {
ethereum: "Ethereum",
base: "Base",
arc: "Arc",
monad: "Monad",
+ gnosis: "Gnosis",
};
/** The switch that turns each extra chain on (shared/features.ts). */
@@ -72,6 +73,7 @@ export const EXTRA_CHAIN_SWITCH: Record = {
base: "chain_base",
arc: "chain_arc",
monad: "chain_monad",
+ gnosis: "chain_gnosis",
};
const EXTRA_CHAIN_OF_PROTOCOL: Record = {
@@ -79,6 +81,7 @@ const EXTRA_CHAIN_OF_PROTOCOL: Record = {
erc8004_base: "base",
erc8004_arc: "arc",
erc8004_monad: "monad",
+ erc8004_gnosis: "gnosis",
};
/** The extra chains whose switch is on in this list, in {@link EXTRA_CHAINS} order. Empty for an unset list. */
@@ -109,7 +112,7 @@ export function protocolsOfChainsOff(features: string | undefined): string[] {
/** The name a chain goes by, for any listed chain. */
export function listedChainLabel(chain: ListedChainKey): string {
- return chain === "ethereum" || chain === "base" || chain === "arc" || chain === "monad" ? EXTRA_CHAIN_LABEL[chain] : CHAIN_LABEL[chain];
+ return chain === "ethereum" || chain === "base" || chain === "arc" || chain === "monad" || chain === "gnosis" ? EXTRA_CHAIN_LABEL[chain] : CHAIN_LABEL[chain];
}
/** The `protocols` text a reviewed record stores (a JSON array of strings); anything else is no protocols. */
diff --git a/apps/nooscape-relay/shared/features.ts b/apps/nooscape-relay/shared/features.ts
index a0c4a44..08f1469 100644
--- a/apps/nooscape-relay/shared/features.ts
+++ b/apps/nooscape-relay/shared/features.ts
@@ -6,16 +6,17 @@
* - `watch` and `patrols`: the two scaffold pages (docs/watch-patrols-scaffold-2026-10-15.md), each with a route of its own.
* - `claims`: the "Claim this agent" panel on the page of an EVM registry entry (docs/claims-2026-10-18.md). It has no route: it
* is a section of an existing page. It stays off until the Privacy and Terms pages say what it does and the owner turns it on.
- * - `chain_base`, `chain_ethereum`, `chain_arc` and `chain_monad`: one switch for each chain the ERC-8004 identity pass reads besides BNB Chain
- * (docs/multichain-erc8004-2026-10-20.md, and docs/monad-erc8004-2026-11-01.md for Monad). While a chain's switch is off its pass does
+ * - `chain_base`, `chain_ethereum`, `chain_arc`, `chain_monad` and `chain_gnosis`: one switch for each chain the ERC-8004 identity pass reads besides BNB Chain
+ * (docs/multichain-erc8004-2026-10-20.md, docs/monad-erc8004-2026-11-01.md for Monad and docs/gnosis-erc8004-2026-11-06.md for Gnosis). While a chain's switch is off its pass does
* not run, its source cannot be staged, and nothing of it is shown or served.
* - `claims_arc`: the claim flow for agents on Arc (docs/arc-claims-2026-10-20.md). It works only while `chain_arc` is on as well, and the
* panel itself is `claims`. It is a switch of its own so that Arc's claims are turned on on purpose and not when its page goes live.
* - `claims_base` and `claims_ethereum`: the same for agents on Base and on Ethereum (docs/base-ethereum-claims-2026-10-28.md), each working
* only while its chain's own switch is on as well.
* - `claims_monad`: the same for agents on Monad (docs/monad-claims-2026-11-01.md), working only while `chain_monad` is on as well.
+ * - `claims_gnosis`: the same for agents on Gnosis (docs/gnosis-claims-2026-11-06.md), working only while `chain_gnosis` is on as well.
*/
-export const FEATURES = ["watch", "patrols", "claims", "chain_base", "chain_ethereum", "chain_arc", "claims_arc", "claims_base", "claims_ethereum", "chain_monad", "claims_monad"] as const;
+export const FEATURES = ["watch", "patrols", "claims", "chain_base", "chain_ethereum", "chain_arc", "claims_arc", "claims_base", "claims_ethereum", "chain_monad", "claims_monad", "chain_gnosis", "claims_gnosis"] as const;
export type Feature = (typeof FEATURES)[number];
@@ -37,3 +38,6 @@ export const ethereumClaimsOn = (list: string | undefined): boolean => featureOn
/** Whether agents on Monad can be claimed: Monad itself is on and its claims have been switched on. */
export const monadClaimsOn = (list: string | undefined): boolean => featureOn("chain_monad", list) && featureOn("claims_monad", list);
+
+/** Whether agents on Gnosis can be claimed: Gnosis itself is on and its claims have been switched on. */
+export const gnosisClaimsOn = (list: string | undefined): boolean => featureOn("chain_gnosis", list) && featureOn("claims_gnosis", list);
diff --git a/apps/nooscape-relay/shared/mapFleets.ts b/apps/nooscape-relay/shared/mapFleets.ts
index 04086d7..21776a2 100644
--- a/apps/nooscape-relay/shared/mapFleets.ts
+++ b/apps/nooscape-relay/shared/mapFleets.ts
@@ -16,12 +16,12 @@ export type MapFleetKind = (typeof MAP_FLEET_KINDS)[number];
/**
* The chain a light is on: BNB Chain groups are drawn as circles, Solana owner wallets as diamonds, Robinhood Chain registering wallets as hexagons.
- * Arc's groups are drawn as domes, Base's as crosses, Ethereum's as pentagons and Monad's as stars, on the chain's own page and, while its switch is on, on the home map.
+ * Arc's groups are drawn as domes, Base's as crosses, Ethereum's as pentagons, Monad's as stars and Gnosis's as octagons, on the chain's own page and, while its switch is on, on the home map.
*/
-type MapFleetChain = "bnb" | "solana" | "robinhood" | "arc" | "base" | "ethereum" | "monad";
+type MapFleetChain = "bnb" | "solana" | "robinhood" | "arc" | "base" | "ethereum" | "monad" | "gnosis";
/** The outline of a light. Each chain has its own, so no light is told apart from another by colour alone. */
-export type FleetShape = "circle" | "diamond" | "hexagon" | "dome" | "cross" | "pentagon" | "star";
+export type FleetShape = "circle" | "diamond" | "hexagon" | "dome" | "cross" | "pentagon" | "star" | "octagon";
/** The most BNB Chain lights the map draws. The rest are counted, not drawn. */
export const MAP_FLEETS_LIMIT = 10;
@@ -48,10 +48,11 @@ export const ROBINHOOD_LIGHTS_LIMIT = 8;
/** The most Arc lights the home map draws: the largest groups of the Arc page's, whatever their kind. The rest are counted, not drawn. */
export const ARC_LIGHTS_LIMIT = 8;
-/** The same for Base, Ethereum and Monad, each with a constant of its own so that tuning one never moves another. Five each and not eight: with the other chains' lights the map is already full at the width of a phone (docs/base-ethereum-lights-2026-10-28.md). */
+/** The same for Base, Ethereum, Monad and Gnosis, each with a constant of its own so that tuning one never moves another. Five each and not eight: with the other chains' lights the map is already full at the width of a phone (docs/base-ethereum-lights-2026-10-28.md). */
export const BASE_LIGHTS_LIMIT = 5;
export const ETHEREUM_LIGHTS_LIMIT = 5;
export const MONAD_LIGHTS_LIMIT = 5;
+export const GNOSIS_LIGHTS_LIMIT = 5;
export type MapFleet = {
/** A stable id for the light, derived from the shared fact. It is not the fact itself. */
@@ -106,7 +107,7 @@ export type MapFleets = {
};
/**
- * The groups of registrations an extra chain's own page draws (Arc, Base, Ethereum and Monad): the registering wallets, hosts and profile links that
+ * The groups of registrations an extra chain's own page draws (Arc, Base, Ethereum, Monad and Gnosis): the registering wallets, hosts and profile links that
* {@link FLEET_MIN} or more registrations share, counted over every registration the registry holds, listed or not. Read from the
* registry rows, so it needs no table of its own, and it carries a shared fact and a count and nothing about any one registration.
*/
@@ -174,9 +175,9 @@ export const FLEET_KIND_LABEL: Record = {
/** A Solana light's kind in words: the wallet is the owner the registry records today, not necessarily the one that registered. */
export const SOLANA_WALLET_LABEL = "Same owner wallet";
-/** The outline a light is drawn with: a circle for BNB Chain, a diamond for Solana, a hexagon for Robinhood Chain, a dome for Arc, a cross for Base, a pentagon for Ethereum, a star for Monad. */
+/** The outline a light is drawn with: a circle for BNB Chain, a diamond for Solana, a hexagon for Robinhood Chain, a dome for Arc, a cross for Base, a pentagon for Ethereum, a star for Monad, an octagon for Gnosis. */
export const fleetShape = (fleet: Pick | undefined): FleetShape =>
- fleet?.chain === "solana" ? "diamond" : fleet?.chain === "robinhood" ? "hexagon" : fleet?.chain === "arc" ? "dome" : fleet?.chain === "base" ? "cross" : fleet?.chain === "ethereum" ? "pentagon" : fleet?.chain === "monad" ? "star" : "circle";
+ fleet?.chain === "solana" ? "diamond" : fleet?.chain === "robinhood" ? "hexagon" : fleet?.chain === "arc" ? "dome" : fleet?.chain === "base" ? "cross" : fleet?.chain === "ethereum" ? "pentagon" : fleet?.chain === "monad" ? "star" : fleet?.chain === "gnosis" ? "octagon" : "circle";
/** The kind of a light in words, whichever chain it is on. */
export const fleetKindLabel = (fleet: Pick): string => (fleet.chain === "solana" ? SOLANA_WALLET_LABEL : FLEET_KIND_LABEL[fleet.kind]);
@@ -191,7 +192,7 @@ export function fleetFact(fleet: Pick): string =>
- fleet.chain === "robinhood" ? ROBINHOOD_OVERLAP_NOTE : fleet.chain === "solana" ? SOLANA_OVERLAP_NOTE : fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" ? ARC_OVERLAP_NOTE : FLEET_OVERLAP_NOTE;
+ fleet.chain === "robinhood" ? ROBINHOOD_OVERLAP_NOTE : fleet.chain === "solana" ? SOLANA_OVERLAP_NOTE : fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" || fleet.chain === "gnosis" ? ARC_OVERLAP_NOTE : FLEET_OVERLAP_NOTE;
/** The sentence under the map about the BNB Chain lights, with how many are drawn of how many are stored. */
export function fleetsCaption(fleets: Pick): string | null {
@@ -271,6 +272,9 @@ export const ethereumLightsCaption = (ethereum: Pick,
/** The sentence under the map about the Monad lights, which are stars. */
export const monadLightsCaption = (monad: Pick, drawn: number): string | null => registryLightsCaption("Monad", "star", "stars", monad, drawn);
+/** The sentence under the map about the Gnosis lights, which are octagons. */
+export const gnosisLightsCaption = (gnosis: Pick, drawn: number): string | null => registryLightsCaption("Gnosis", "octagon", "octagons", gnosis, drawn);
+
/** The sentence under the map about the Robinhood Chain lights: how many are drawn of how many there are, and what a hexagon is. */
export function robinhoodLightsCaption(robinhood: Pick): string | null {
if (robinhood.fleets.length === 0) return null;
diff --git a/apps/nooscape-relay/todo.md b/apps/nooscape-relay/todo.md
index 1180393..7434faf 100644
--- a/apps/nooscape-relay/todo.md
+++ b/apps/nooscape-relay/todo.md
@@ -217,6 +217,7 @@
167. [x] The warm-up limit and the ratings flag ([the record](docs/reputation-ingest-2026-10-11.md), addendum of 2026-11-04), from the third outside review of 2026-11-04 (its finding C2 and part of B1). The entry read asks for one row more than the 200 it shows and says when the agent has more (`ratings.truncated` on the agent page, in the REST agent record and in the OpenAPI document), and the pre-flight check then gives no revoked share and no "none" (`present` is null unless a revocation was read, and its basis says why). The boot and post-write warm-up reads two public procedures at a time instead of eleven: a deploy starts two processes, so it was up to 22 full-table counts at once on the shared database. No migration, no setting, no new field in the check. Tests, each guard failed by a planted bug: a real-database test on MySQL 8 and MariaDB 10.11 (201 events are cut, 200 are not), the check's unit test, the summary's, the REST record's and the warm-up's concurrency. Merged and live (PR 262, 2026-11-04 19:55 UTC, `main` d99eea3); read on the live site: the OpenAPI document lists `ratings.truncated`, an agent's REST record gives it as false beside its counts, and its page shows the ratings with no note. Not done: the order flip and the revocation-aware tail the 12 October response queued, which would mix counts of events read with counts of events not read; at the census average of about 2 ratings an agent almost no page is cut.
168. [x] A stop signal waits for what the app has to finish ([the record](docs/graceful-shutdown-2026-11-04.md)), from the third outside review of 2026-11-04 (its finding S5, and B3). On SIGTERM or SIGINT the process stops listening, lets the requests in flight finish (a paid one among them), writes what the meter has counted and then ends by the same signal as before, waiting 15 seconds at most; a second signal ends it at once; SIGHUP never waits. One line, `nooscape_shutdown`, says how it went. No migration, no setting. Checked on real processes on Linux (a 2 second request in flight finished with a 200 and the process ended by SIGTERM; a request that never finishes was given up at the ceiling) and by planted bugs, each caught. Merged and live (PR 263, 2026-11-04 20:49 UTC). First real stops read on the host (2026-11-05): the deploys of PRs 273, 274 and 275 each stopped two processes that ran this code (SIGTERM at 15:38:03, 15:41:29 and 15:49:07 UTC), and the next start printed `shutdown` with `ceilingHit` false and nothing failed on all six `previous` lines (1 ms or less). So the wait runs on the host. There was no request in flight, so it answered at once; what lsnode does with a process that is still busy after SIGTERM is still not known.
169. [x] A database can be built from nothing ([the record](docs/bootstrap-from-empty-2026-11-04.md)), from the third outside review of 2026-11-04 (its finding C1) and the remainder of finding 9 of the 12 October response. The boot runner used to stamp 0000 to 0014 on an empty database and fail on the next file; a real empty database reproduced it. It now refuses an empty database, with what to do, unless the operator starts once with `NOOSCAPE_BOOTSTRAP_EMPTY_DATABASE=1`: then it applies every file in order, the fourteen manual migrations included, and records each. A database with any table or any recorded migration takes the path it always took. Checked: all 56 files build exactly the 48 tables of `schema.ts` on MySQL 8 and MariaDB 10.11, a real-database test holds the two to each other, and each guard was failed by a planted bug. No migration, no setting for the host. Merged and live (PR 263, 2026-11-04 20:49 UTC); the first boots on the production database took the path they always took (`Schema is current; nothing to apply`), so the new path has not run on the host. Not done: the restore drill (a dump restored into a scratch database), the census-context gate skip and the per-source lease.
+170. [x] Move the app to a server of its own (the record is withheld from the public tree; it is kept in the private archive).
171. [ ] One count of what is listed, and a page that says what each number counts ([the record](docs/numbers-once-2026-11-04.md)), from item 6 of the outside list of 2026-11-04. The home hero said 46,038 registered agents next to a seven-chain sentence, a total over the three chains the map draws, while the chain tabs and `/api/v1/stats` add up to 61,282. The first figure is now the agents listed on every chain (`listedTotal` takes the whole chain stats answer, extras included), the map's caption says it is the map's count, and `/about` has "Reading the numbers" (`client/src/lib/readingNumbers.ts`). Checked against the live data through a local client with its API calls sent to the live site. No migration, no setting. Live: merged as PR 264 on 2026-11-05 (main 6937799) and checked on the live site (the hero reads 61,288, the API's total, and `/about` has the section; verify-live 48/0/0). Not done: drawing the other four chains on the map, and the README's dated figures. (Item 170 is the move kit, on hold on its own branch.)
172. [ ] The first screen of /developers, in plain words ([the record](docs/plain-quickstart-2026-11-04.md)), from item 1 of the outside list of 2026-11-04. The page opened with "Query the evidence graph ... publisher-key states" and the check was eight screens down. It now says what the API is for and numbers the three calls to start with (look up, search, check before you pay, with the 402 and the $0.01 in USDC over x402), the skill file link moved up beside them, the README opens with what Nooscape does, and a source guard holds the first screen. Checked through a local client with its API calls sent to the live site, at desktop width and at 375 px. Live: merged as PR 265 on 2026-11-05 (main fab0ca4) and checked on the live site (the first screen, the three calls, one skill file link; verify-live 48/0/0). The public README's tagline reaches the mirror with the refresh of 2026-11-05. Not done: the deeper sections, which keep the internal terms for the reader who goes on.
173. [ ] Growing Tier 3 with outside operators ([the options](docs/tier3-self-serve-options-2026-11-05.md)), item 5 of the outside list of 2026-11-04. Tier 3 is one record of 76 (the operator's own domain, verified 8 October, window to about 6 January 2027 unless rechecked) and the flow needs the operator at three steps. The note sets out five options (stay operator-run and invite; owner starts and the operator approves; fully self-serve by rule; read the ERC-8004 endpoint-domain proof the standard already defines, where 29% of 213 sampled hosts publish it, about 5% of listed EVM entries; wait for demand) and recommends the invitation page now and sizing the standard's proof, both done. Option A is built: `/domain-control` says what Tier 3 is and is not, the four steps and what is read, a Tier 2 record's page links to it, and the flow stays operator-run (guard `client/src/pages/domainControl.test.ts`; no migration, no setting). Open: the operator's choice about B to E (D is sized and worth building as a dated fact); recheck the Tier 3 record before 6 January 2027.
@@ -229,6 +230,16 @@
180. [ ] The reference policy example (2026-11-05, the second of the three small builds proposed after the second outside review; the policy stays in the caller's code, as [the brief](docs/preflight-integration-brief-2026-11-05.md) says). `examples/preflight-policy.ts` is the brief's policy as a runnable file: the thresholds are a `Policy`, a 404, an empty answer and a flag that is not measured are handled on purpose, it prints "proceed" or "ask a person" and never "safe", and `node examples/preflight-policy.ts search ` runs against the free API. `server/preflightPolicyExample.test.ts` builds each answer with `checkFlags`, so a renamed field breaks it; `examples/` is in both tsconfigs. Open: the merge, and a line for the folder in the public README at the next refresh.
181. [ ] The data license: CC BY 4.0 (2026-11-06, item 7 of the outside list of 4 November, on the owner's order; [the record](docs/data-license-2026-11-06.md)). `server/apiLicense.ts` says CC BY 4.0 with the attribution line carrying the name and the link, the OpenAPI `info.license`, the Developers page and the Terms say the same, and `server/apiLicense.test.ts` holds the four together. No lawyer has read the wording (the owner's rule of 18 October). Open: the merge; a daily bulk export (stage D6's other half, not built); the `nooscape-mcp` README, which still says provisional terms (its own repository, the owner's publish); one sentence in the public README at the next mirror refresh.
182. [ ] The second Arc registry census (2026-11-06, [the record](docs/arc-census-2026-11-06.md)). The operator ran the first census's queries again (queries 0 to 10) and two more that count what the host cap leaves out (queries 11 and 12). The directory counts 385,752 registrations on the chain and has stored 5,016, because one host name past the 2,000-row cap has 380,736 registrations counted and not stored. The report is `/field/arc-registry-2026-11-06` (`client/src/lib/arcRegistryReport20261106.ts`, `client/src/pages/ArcRegistryReport20261106.tsx` and its test); the census of 2026-10-20 stays at its address and is linked from it, and the Arc tab, the map's caption and the Arc page's share note link to the new one. Open: the merge.
+183. [ ] Gnosis, an eighth chain, built and off ([the record](docs/gnosis-erc8004-2026-11-06.md)): the operator said "lets add gnosis" on 2026-11-06. Gnosis (chain 100) is the sixth entry of the one chain list, behind `chain_gnosis`, with the protocol value `erc8004_gnosis` added by hand in migration 0057. It runs the same contract as Ethereum and Monad (same proxy and implementation code), deployed 2026-02-04; the registry holds 4,179 registrations and 8,412 events of the three kinds the pass reads, and one wallet and one host hold 92% of the registrations. It is read through the keyed Alchemy endpoint in windows of 10,000 blocks, the widest range the plan answers (the busiest holds 5,304 events). A rehearsal of the whole first pass with the pass's own code on a MariaDB 10.11 took 6 runs and 43 seconds and published 41 entries (1.0%). Held by tests: the entry's facts against the measurements, real Gnosis logs (eight registrations, their mints, six URI updates, a hand-over and the provider's real refusal of a wide window) decoded to independent expectations, and migration 0057 on MySQL 8 and MariaDB 10.11. Open: the operator's steps (migration 0057, `GNOSIS_RPC_URL`, the switch, deploy, staging, the first pass), then the names, the copy, the MCP package, lights and a page, ratings and the scheduled flip, each its own change. Update 2026-11-06 (evening): merged as PR 299 (main `ba84611`) and switched on the same hour, on the operator's order, by Claude on the server and through the admin API: backup, migration 0057 applied and recorded, `GNOSIS_RPC_URL` set, `chain_gnosis` added and deployed, the source staged, approved and run in five passes. `[GNOSIS] listing published: 41 added`, 4,179 on the chain, `verify-live` 50 of 50, as rehearsed ([section 9](docs/gnosis-erc8004-2026-11-06.md)). Still open, each its own change: the names, the copy (the hero still names seven chains), the MCP package, lights and a page, ratings and the scheduled flip. Update 2026-11-06 (later): the names, the ratings and the scheduled flip are built together as item 184, and the chain page, its share card and the map lights as item 185, and the claims as item 186.
+184. [ ] Gnosis keeps itself up to date: its names, its ratings and a daily run ([the names addendum](docs/approvals/2026-10-26-base-arc-names.md), [the ratings record](docs/gnosis-ratings-2026-11-06.md), [the record](docs/gnosis-erc8004-2026-11-06.md) section 10): the operator said "lets go fully live with gnosos once you have all you need to do it" on 2026-11-06, after Gnosis went live. Three small changes on one branch, none of them touching the site's copy ("seven skies works"). Names: `GNOSIS_CHAIN` is the fifth chain of the names step, with no limit of its own, no migration and no setting; the step's real chain read answered for 40 of 40 ids on Gnosis, each equal to a plain `tokenURI` call and to the latest link in the registry's events, and the five sentences on `/checker` and the sources page name it. Ratings: the entry names the reputation registry with a window of 10,000 blocks (the most the plan answers); the registry holds 4,341 ratings and no revocation, and the real step caught up in 14 runs and counted the same. Daily run: migration 0058 is one guarded UPDATE in the pattern of 0054 (the Gnosis source key, active, `manual_only`, a `gnosis:` cursor, a recorded success, no recorded failure; it names no protocol and runs at boot), with `erc8004_gnosis: 36` in `scripts/verify-live.mjs`; the registry recorded no event in the day to 2026-11-06 and 48 in the month. Production's migration log (2026-11-06) showed 57 as the newest. Held by tests, on MySQL 8 and MariaDB 10.11, and twenty-two planted changes are each caught. Open: the merge and the deploy, then the first scheduled run, the ratings figure about seven hours later and the names (10 of the 41 show a number); and, each its own change, the chain page with its card and map lights, claims, a census report and the MCP package's chain list.
+185. [ ] Gnosis's chain page, share card and map lights ([the page](docs/gnosis-world-2026-11-06.md), [the lights](docs/gnosis-lights-2026-11-06.md)): the operator said "lets go fully live with gnosos once you have all you need to do it" on 2026-11-06. `/chains/gnosis`, World 08, "The teal lantern": groups only, standing on the platforms of the shared fact, as Monad's page does, with a share card (1200 by 630, 472 KB) and the page's place in the route list, the sitemap and the head table; and the largest five groups as octagons on the home map, behind `chain_gnosis`, from the same `registryFleets` read (which now accepts `gnosis`). The registry gives it two groups today (the host with 3,851 registrations and one wallet with 2,000). Robinhood Chain's lights and page plates are already hexagons, so the Gnosis tab's icon, lights and plates are an octagon (the tab was a hexagon), held apart from every other chain's outline by a test. No migration, no new read, no census report and no claims. Checked on a client build against the real groups from a scratch database: the page and the key and caption on the home map, no overflow at 375 pixels, no console error; 26 planted changes are each caught. Open: the merge (after item 184's), the census report if the operator wants one, claims, and the MCP package's chain list (the operator's publish).
+186. [ ] Claims for Gnosis, built and off ([the record](docs/gnosis-claims-2026-11-06.md)): the operator said "do the census report and claims" on 2026-11-06. The claim flow opens to the owners of agents on Gnosis behind `claims_gnosis`, which works only while `chain_gnosis` is on as well and stays off until the operator adds it to `VITE_FEATURES` (production has `claims_arc` only). `CLAIM_CHAINS` gains Gnosis (chain 100); `server/claimsPinned.ts` builds a fourth node from the shared module on `GNOSIS_RPC_URL`, pinned to the host the chain entry names; the flow, the entry's colour and one conditional Privacy sentence with its own date (6 November 2026) follow. No migration. Read against the real chain on 2026-11-06 through the flow's own client: chain 100, `ownerOf` of a listed registration answers one address word and a missing token reverts. Held by tests on MySQL 8 and MariaDB 10.11, and twelve planted changes are each caught. Open: the operator's read of the Privacy sentence, the switch, and the first real claim (no wallet was connected here).
+187. [ ] The Gnosis registry census ([the measurement](docs/gnosis-census-2026-11-06.md), [the queries](docs/gnosis-census-queries-2026-11-06.sql)): the operator said "do the census report and claims" on 2026-11-06 (the claims are item 186). The 15 read-only queries of the other chains' censuses, for the Gnosis registry (protocol `erc8004_gnosis`), were run on production the same evening, at about 23:30 UTC, after the pass that finished at 21:12 UTC (a manual one: the first scheduled pass had not finished), and the measurement holds every row they returned: 2,328 registrations stored of the 4,179 the directory counts, 1,851 more counted past the host cap, 41 listed, none hidden. Counts and size buckets only: no name, wallet, host or link comes back. One host name holds 3,851 of the 4,179 (92.2%) and one wallet made the 2,000 stored for it, only 8 host names exist among the 2,051 https links, and no profile link is used by 50 or more registrations. Gnosis's block time is close to constant (about 5.1 to 5.2 seconds), so one set of 19 stretches of 250,000 blocks, read from the chain, dates the days and the months, with no separate day rate; checked against the block times in the logs of all 4,179 registrations, a date is within about 148 minutes at the worst and 1.6 at the median. The report is `/field/gnosis-registry-2026-11-06` (behind `chain_gnosis`, linked from the home Gnosis tab, the inspector of a group on the Gnosis page and the line under the map, in the sitemap), built on the branch `feat/gnosis-census` on top of `feat/gnosis-extras`. Its data file holds each returned row and the figures worked out from them, the page reads only that, and a test fails if a number on the page is not in the file or the document, or a total does not add up. The sentences written for this data (one wallet, one host past the cap, a name that is only a number, one transfer that was not a hand-out, two days, months with none) each have the fact they rest on pinned, and the stretches in the queries file are checked to meet end to end and to date the oldest and the newest mint block of the ledger into the first month and onto the last day. The months and days describe the 2,328 stored rows only: the 1,851 counted and not stored were made after their host's first 2,000, so the later months look thinner than the chain's and the registry's own history is longer than the table shows. Open: the merge, after the extras; the census is a snapshot, to be redone and dated again.
+188. [ ] The Agenstry feed limits, raised ([the record](docs/agenstry-limits-2026-11-06.md), [the approval addendum](docs/approvals/2026-10-08-agenstry-catalog.md)): the operator said "merge 302 and build the limits pr" on 2026-11-06. The feed was at 93 percent of the compressed bound, 99.7 percent of the line walk and 96 percent of the directory ceiling, and the daily run had reached the intake cap (96 of 99 qualifying records); four of the five bounds drop records without a failure. The compressed bound is now 48 MiB, the walk 450,000 lines, the evidence window 24,000, the intake cap 128 and the directory ceiling 300,000, each exported and held by a test; the expanded cap and the 120 second timeout are unchanged (a pull took 51 seconds from the production server, and the timeout is the next to watch). No migration. Held by tests, and twelve planted changes are each caught. Open: the first scheduled run after the deploy (it should accept at least 96 and fail nothing); the operator's evidence check and "Publish reviewed run" for the latest Agenstry run (the published set is still the 48 records of 2026-10-09); and the intake cap again in five or six weeks.
+189. [ ] Two public A2A registries as catalog sources, built, run and published on 2026-11-07 ([the record](docs/a2a-registries-2026-11-06.md), approvals for [a2aregistry.org](docs/approvals/2026-11-06-a2aregistry-catalog.md) and [a2a-registry.org](docs/approvals/2026-11-06-a2a-registry-org-catalog.md)): the operator said "Two public A2A registries could add reviewed records with a small adapter variant. add this" on 2026-11-06. A variant of the Agenstry catalog adapter for paged JSON, one policy per registry; a record is taken by the registry's own rule, one per party (the oldest), none on a party another source's reviewed record holds, the oldest first up to 96. Both sources are staged manual only (two buttons on /admin/sources), a scheduled run needs a reviewed change, and every catalog run goes through one door (runCatalog.ts). No migration. Read through the adapter from the scout's saved pages of 2026-11-06: 285 parties qualify at a2aregistry.org (96 taken) and 86 at api.a2a-registry.org. Held by tests (the lookup of other sources' reviewed hosts also on MySQL 8 and MariaDB 10.11), and 56 planted changes are each caught. On 2026-11-07 the operator staged, approved, ran and published both (api.a2a-registry.org: 90 records, run 149b2fea; a2aregistry.org: 96, run 310e2bd7) and Agenstry's latest run (99), taking the public records from 76 to 313; the party rule had worked only against direct sources, fixed by migration 0059 (item 192). Open: the operator's word that Verify evidence was green, to tick the last box of each approval; no written permission at a2aregistry.org and no reuse licence at api.a2a-registry.org (ask the maintainers, now that the records are public); the ceiling of 96 (it binds at a2aregistry.org); no directory acknowledgement; no schedule.
+190. [ ] The Today block on the registry census reports ([the record](docs/census-today-2026-11-06.md)): the operator said "update each chain registry census data page daily" on 2026-11-06 and chose a Today block on each page, the dated body kept. A block at the top of the Arc (both), Base, Ethereum, Monad, Gnosis, Robinhood Chain and BNB Chain registry reports: the counts of the report's first table as the directory holds them now, beside the figures the report measured and the change, with the time of the chain's last pass. A cached read (`liveData.censusToday`, `server/censusToday.ts`) and no migration or job; about two seconds of database time once for the largest registry on production. Counts only, and it fails closed to nothing. Held by tests (the counts also on MySQL 8 and MariaDB 10.11), and the planted changes are each caught. Open: the Solana report (three registries) and no history kept. The first look at the deployed pages (2026-11-07) found that Base's report, measured before the host cap was cleared, reads as a loss of 283,000 registrations, so its block now carries a note.
+191. [ ] The trademark mark, once on the site and once in the README (2026-11-07): the operator said "My recommendation: ™ is free, so add it, but only once: in the site footer with the ownership line, and in the README". It is after the name in the home page footer's ownership line ("Nooscape™ is run by RunTimeAdmin.") and after the name in the README's title, and nowhere else; `trademarkMark.test.ts` holds the site's one mark (it does not read the README, because a test that names README.md makes the CI scope count every README.md as read by a test). No footer carried an ownership line when the mark was added (Terms and Privacy say Nooscape is run by RunTimeAdmin), so it first sat on the footer's first line. The operator then gave the wording "Nooscape™ is run by RunTimeAdmin" (2026-11-07): the footer now has that as its own line under the two paragraphs, the mark moved onto it, and the first line is back to "Nooscape. A public agent observatory." The line repeats the stand-in entity name of the Terms, so the TODO there (swap in a registered entity name) covers the footer too, and a comment above the line says so.
+192. [ ] The cross-source party rule, holding between catalog sources ([the record](docs/catalog-party-rule-2026-11-07.md)): after the operator published Agenstry, api.a2a-registry.org and a2aregistry.org on 2026-11-07 (76 to 313 public records), 36 of the 313 were copies of an agent another source showed (25 at a2aregistry.org, 11 at api.a2a-registry.org). The rule that leaves out a party another source's public record holds read endpoint rows, a catalog record has none on purpose, and its test seeded endpoint rows for catalog sources. Migration 0059 adds `agent_public_snapshots.partyHost`, written for every catalog record from the card's host (the service address's host when the card's names none), filled for the Agenstry feed's snapshots from their identity, and read by the lookup, now `listReviewedAddressesOfOtherSources`; no endpoint row is written. Held by tests on MySQL 8 and MariaDB 10.11, including the real persist path and the backfill statement. Open: the operator runs api.a2a-registry.org again (an exception to its once-a-week limit before 2026-11-15, or after it) and then a2aregistry.org, each with Verify evidence and Publish reviewed run, to clear the copies; Agenstry lists some parties twice under two hosts of one domain.
## Guardrails