diff --git a/README.md b/README.md index 825035f..4188e98 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ ## What Nooscape is -Nooscape is a public atlas of AI agents. It reads the public agent registries on **Robinhood Chain, BNB Chain, Solana, Ethereum, Base, Arc and Monad**, keeps what it read together with the date or block it was read at, and shows it as facts. Anyone can look an agent up, see where each fact came from, and decide for themselves. +Nooscape™ is a public atlas of AI agents. It reads the public agent registries on **Robinhood Chain, BNB Chain, Solana, Ethereum, Base, Arc, Monad and Gnosis**, keeps what it read together with the date or block it was read at, and shows it as facts. Anyone can look an agent up, see where each fact came from, and decide for themselves. It states facts and never a verdict. @@ -36,7 +36,7 @@ It states facts and never a verdict. - **Payment changes nothing.** A key, a payment or a claim never changes a record, a tier or an evidence level. - **Every answer says when it was read and where from.** -On 6 November 2026 the atlas listed 61,498 agents from the chain registries (Robinhood Chain 21,496, Solana 17,996, Base 9,186, BNB Chain 6,976, Ethereum 5,216, Arc 481, Monad 147), out of many more registrations recorded, and 76 records were reviewed with signed evidence kept. The live figures are on the [home page](https://nooscape.si) and in the [API](https://nooscape.si/api/v1). +On 8 November 2026 the atlas listed 62,759 agents from the chain registries (Robinhood Chain 22,541, Solana 18,084, Base 9,214, BNB Chain 6,980, Ethereum 5,219, Arc 533, Monad 147, Gnosis 41), out of many more registrations recorded, and 302 records were reviewed with signed evidence kept. The live figures are on the [home page](https://nooscape.si) and in the [API](https://nooscape.si/api/v1). ## See it @@ -82,14 +82,14 @@ curl -i -X POST https://nooscape.si/api/v1/check \ -d '{"agent":{"chain":"arc","id":"1"}}' ``` -Chains are `robinhood`, `bnb`, `solana`, `ethereum`, `base`, `arc` and `monad`. Every answer carries `as_of`, `source` and `license`. Free, Builder and Pro keys raise the limits ([get a key](https://nooscape.si/developers/keys)). The full description is the [OpenAPI document](https://nooscape.si/api/v1/openapi.json), and [`/llms.txt`](https://nooscape.si/llms.txt) is the same API written for a model. +Chains are `robinhood`, `bnb`, `solana`, `ethereum`, `base`, `arc`, `monad` and `gnosis`. Every answer carries `as_of`, `source` and `license`. Free, Builder and Pro keys raise the limits ([get a key](https://nooscape.si/developers/keys)). The full description is the [OpenAPI document](https://nooscape.si/api/v1/openapi.json), and [`/llms.txt`](https://nooscape.si/llms.txt) is the same API written for a model. ## How it works ```mermaid flowchart LR subgraph Sources["Public sources"] - A["ERC-8004 registries
Robinhood, BNB, Ethereum, Base, Arc, Monad"] + A["ERC-8004 registries
Robinhood, BNB, Ethereum, Base, Arc, Monad, Gnosis"] B["Solana agent registries"] C["A2A cards and catalogs"] end @@ -169,7 +169,7 @@ The root of the repository also holds dated design and research notes. They reco |---|---| | [`AGENT_TRUST_TIER_DESIGN.md`](AGENT_TRUST_TIER_DESIGN.md) | The thesis, the dedup pipeline, trust tiers 0 to 3 and the phased build plan | | [`INGEST_POINTS.md`](INGEST_POINTS.md) | Named ingest sources, their limits and the signals each gives | -| [`SCOPE.md`](SCOPE.md) | The v1 chain scope decided on 7 October 2026. BNB Chain, Base, Ethereum and Monad were added after it. | +| [`SCOPE.md`](SCOPE.md) | The v1 chain scope decided on 7 October 2026. BNB Chain, Base, Ethereum, Monad and Gnosis were added after it. | | [`ARC_INGEST_RESEARCH.md`](ARC_INGEST_RESEARCH.md) | Arc: first-party evidence, source requirements and priorities | ### Independence @@ -192,4 +192,4 @@ The code is released under the [MIT License](LICENSE). The facts and records Noo ## About this repository -This is the public home of Nooscape's source, started from a snapshot taken on 21 October 2026 and refreshed from the private repository's main on 6 November 2026. Earlier history lives in a private archive, so the pull request and commit numbers that the docs and code comments mention (for example "PR 174") refer to that archive, and a few records are withheld from this tree and replaced with a short note. +This is the public home of Nooscape's source, started from a snapshot taken on 21 October 2026 and refreshed from the private repository's main on 8 November 2026. Earlier history lives in a private archive, so the pull request and commit numbers that the docs and code comments mention (for example "PR 174") refer to that archive, and a few records are withheld from this tree and replaced with a short note. diff --git a/apps/nooscape-relay/client/public/nooscape-card-chain-gnosis.png b/apps/nooscape-relay/client/public/nooscape-card-chain-gnosis.png new file mode 100644 index 0000000..d12a351 Binary files /dev/null and b/apps/nooscape-relay/client/public/nooscape-card-chain-gnosis.png differ diff --git a/apps/nooscape-relay/client/src/App.tsx b/apps/nooscape-relay/client/src/App.tsx index b3df7f0..3201a4e 100644 --- a/apps/nooscape-relay/client/src/App.tsx +++ b/apps/nooscape-relay/client/src/App.tsx @@ -34,6 +34,7 @@ const ArcRegistryReport20261106 = lazy(() => import("./pages/ArcRegistryReport20 const BaseRegistryReport = lazy(() => import("./pages/BaseRegistryReport")); const EthereumRegistryReport = lazy(() => import("./pages/EthereumRegistryReport")); const MonadRegistryReport = lazy(() => import("./pages/MonadRegistryReport")); +const GnosisRegistryReport = lazy(() => import("./pages/GnosisRegistryReport")); const Disputes = lazy(() => import("./pages/Disputes")); const Privacy = lazy(() => import("./pages/Privacy")); const Terms = lazy(() => import("./pages/Terms")); @@ -60,6 +61,7 @@ function Router() { {featureOn("chain_base", FEATURES) && {() => }} {featureOn("chain_ethereum", FEATURES) && {() => }} {featureOn("chain_monad", FEATURES) && {() => }} + {featureOn("chain_gnosis", FEATURES) && {() => }} @@ -69,6 +71,7 @@ function Router() { {featureOn("chain_base", FEATURES) && } {featureOn("chain_ethereum", FEATURES) && } {featureOn("chain_monad", FEATURES) && } + {featureOn("chain_gnosis", FEATURES) && } diff --git a/apps/nooscape-relay/client/src/components/CensusToday.test.ts b/apps/nooscape-relay/client/src/components/CensusToday.test.ts new file mode 100644 index 0000000..27f5691 --- /dev/null +++ b/apps/nooscape-relay/client/src/components/CensusToday.test.ts @@ -0,0 +1,157 @@ +import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { createElement } from "react"; +import { renderToStaticMarkup } from "react-dom/server"; +import { beforeEach, describe, expect, it, vi } from "vitest"; +import type { CensusToday as Today } from "@shared/censusToday"; + +/** + * The Today block on a census page: the counts of the page's first table as the directory holds them now, beside the figures the report + * measured and the change between. It asks for one chain's counts in a request of its own, writes what the answer holds and nothing + * else, and fails closed to nothing: a read that has not answered, an answer with no counts, or a page rendered with no query client + * (as the report tests render it) is the report alone. + */ +const mocks = vi.hoisted(() => ({ useQuery: vi.fn() })); +vi.mock("@/lib/trpc", () => ({ + trpc: { liveData: { censusToday: { useQuery: (...args: unknown[]) => mocks.useQuery(...args) } } }, + ownRequest: { trpc: { context: { ownRequest: true } } }, +})); + +import { CensusToday } from "./CensusToday"; + +const FIGURES = [ + ["Registrations the directory counts on the chain", 10_421], + ["Registrations the directory has stored", 4_327], + ["Registrations the directory lists", 144], + ["Registering wallets", 69], +] as const; + +const answer = (overrides: Partial = {}): { data: { today: Today | null } } => ({ + data: { + today: { + chain: "monad", + asOf: "2026-11-07T18:47:03.000Z", + figures: { onChain: 10_500, stored: 4_400, listed: 144, wallets: 71 }, + heldOut: { noLink: 5, grouped: 4_200, numericName: 0, pending: 3 }, + ratings: null, + ...overrides, + }, + }, +}); + +const decode = (value: string) => value.replace(/’/g, "’").replace(/'/g, "'").replace(/&/g, "&"); +const text = (markup: string) => decode(markup.replace(/<[^>]+>/g, " ")).replace(/\s+/g, " ").trim(); +const render = (withClient = true, note?: string) => { + const block = createElement(CensusToday, { chain: "monad", measuredOn: "2026-11-01", figures: FIGURES, note }); + return renderToStaticMarkup(withClient ? createElement(QueryClientProvider, { client: new QueryClient() }, block) : block); +}; + +beforeEach(() => { + mocks.useQuery.mockReset(); +}); + +describe("the Today block", () => { + it("asks for the chain's counts in a request of its own, and not again for a while", () => { + mocks.useQuery.mockReturnValue(answer()); + + render(); + + expect(mocks.useQuery).toHaveBeenCalledTimes(1); + expect(mocks.useQuery).toHaveBeenCalledWith( + { chain: "monad" }, + expect.objectContaining({ trpc: { context: { ownRequest: true } }, staleTime: 5 * 60_000, refetchOnWindowFocus: false, retry: false }) + ); + }); + + it("shows each line of the page's table with the figure measured, the count today and the change", () => { + mocks.useQuery.mockReturnValue(answer()); + + const markup = render(); + + expect(markup).toContain('data-census-today="monad"'); + const body = text(markup); + expect(body).toContain("Today"); + expect(body).toContain("The report below is a measurement of 2026-11-01 and does not change."); + expect(body).toContain("after the registry pass that finished at 2026-11-07 18:47 UTC"); + expect(body).toContain("What was counted 2026-11-01 Today Change"); + expect(body).toContain("Registrations the directory counts on the chain 10,421 10,500 +79"); + expect(body).toContain("Registrations the directory has stored 4,327 4,400 +73"); + expect(body).toContain("Registrations the directory lists 144 144 no change"); + expect(body).toContain("Registering wallets 69 71 +2"); + }); + + it("leaves out a line the answer has no count for", () => { + mocks.useQuery.mockReturnValue(answer({ figures: { listed: 150 } })); + + const body = text(render()); + + expect(body).toContain("Registrations the directory lists 144 150 +6"); + expect(body).not.toContain("Registering wallets"); + expect(body).not.toContain("counts on the chain"); + }); + + it("says what is held out today, for a registry that keeps its registrations in rows, and nothing of the kind for one that does not", () => { + mocks.useQuery.mockReturnValue(answer()); + expect(text(render())).toContain( + "Held out of the directory today: 5 with no usable profile link, 4,200 that share a profile link, a host name or a wallet with many others, 0 with a name that is only a number, and 3 not yet sorted." + ); + + mocks.useQuery.mockReturnValue(answer({ heldOut: null })); + expect(text(render())).not.toContain("Held out of the directory today"); + }); + + it("states the ratings once the count has read the whole history, and not before", () => { + mocks.useQuery.mockReturnValue(answer({ ratings: 9_436 })); + expect(text(render())).toContain("The chain’s reputation registry holds 9,436 ratings, counted from its first block."); + + mocks.useQuery.mockReturnValue(answer({ ratings: null })); + expect(text(render())).not.toContain("reputation registry"); + }); + + it("does not say when the pass finished if the source has not finished one", () => { + mocks.useQuery.mockReturnValue(answer({ asOf: null })); + + const body = text(render()); + + expect(body).toContain("taken from the directory as it stands now."); + expect(body).not.toContain("registry pass that finished at"); + }); + + it("says the page's note between the table and the held-out line, and nothing of the kind when the page gives none", () => { + mocks.useQuery.mockReturnValue(answer()); + + const withNote = render(true, "The way the rows are kept changed on the day the report was measured."); + expect(text(withNote)).toContain("The way the rows are kept changed on the day the report was measured."); + expect(withNote.indexOf("")).toBeLessThan(withNote.indexOf("The way the rows are kept changed")); + expect(withNote.indexOf("The way the rows are kept changed")).toBeLessThan(withNote.indexOf("Held out of the directory today")); + + expect(text(render())).not.toContain("The way the rows are kept changed"); + }); + + it("is nothing while the answer has not come, when it holds no counts, and when none of its counts is on the page", () => { + mocks.useQuery.mockReturnValue({ data: undefined }); + expect(render()).toBe(""); + + mocks.useQuery.mockReturnValue({ data: { today: null } }); + expect(render()).toBe(""); + + mocks.useQuery.mockReturnValue(answer({ figures: { profileLinks: 5 } })); + expect(render()).toBe(""); + }); + + it("is nothing, and asks for nothing, with no query client around it", () => { + mocks.useQuery.mockReturnValue(answer()); + + expect(render(false)).toBe(""); + expect(mocks.useQuery).not.toHaveBeenCalled(); + }); + + it("holds counts only: no address, no long dash", () => { + mocks.useQuery.mockReturnValue(answer({ ratings: 9_436 })); + + const markup = render(); + + expect(markup).not.toMatch(/0x[0-9a-fA-F]{6}/); + expect(markup).not.toMatch(/https?:\/\//); + expect(markup).not.toMatch(/[\u2013\u2014]/); + }); +}); diff --git a/apps/nooscape-relay/client/src/components/CensusToday.tsx b/apps/nooscape-relay/client/src/components/CensusToday.tsx new file mode 100644 index 0000000..8e7b805 --- /dev/null +++ b/apps/nooscape-relay/client/src/components/CensusToday.tsx @@ -0,0 +1,87 @@ +import { QueryClientContext } from "@tanstack/react-query"; +import { useContext } from "react"; +import type { CensusChain } from "@shared/censusToday"; +import { censusTodayRows, formatAsOf, formatChange, type CensusTodayFigure } from "@/lib/censusTodayModel"; +import { ownRequest, trpc } from "@/lib/trpc"; +import { headingClass, textClass } from "@/components/InfoPage"; + +/** + * The part of a registry census page that is not dated: the counts of the page's first table as the directory holds them now, beside + * the figures the report measured, and the change between. The report below it is a measurement of its own date and does not change. + * Counts only; it fails closed to nothing, so a page whose read fails is the report alone. With no query client around it (the tests + * that render a report by itself) it renders nothing, which leaves those pages as they were. + */ +type Props = { + chain: CensusChain; + /** The date the report was measured, as the report writes it. */ + measuredOn: string; + /** The counts of the report's first table. */ + figures: readonly CensusTodayFigure[]; + /** What a reader needs to compare today's counts with the report's, when the way the directory keeps them changed in between. */ + note?: string; +}; + +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"; +const n = (value: number) => value.toLocaleString("en-US"); + +export function CensusToday(props: Props) { + const queryClient = useContext(QueryClientContext); + if (!queryClient) return null; + return ; +} + +function CensusTodayBlock({ chain, measuredOn, figures, note }: Props) { + const query = trpc.liveData.censusToday.useQuery({ chain }, { ...ownRequest, staleTime: 5 * 60_000, refetchOnWindowFocus: false, retry: false }); + const today = query.data?.today; + if (!today) return null; + const rows = censusTodayRows(figures, today); + if (rows.length === 0) return null; + const held = today.heldOut; + + return ( +
+

Today

+

+ The report below is a measurement of {measuredOn} and does not change. This table is the same count, taken from the directory as it stands now + {today.asOf ? `, after the registry pass that finished at ${formatAsOf(today.asOf)}` : ""}. +

+
+ + + + + + + + + + + + {rows.map(row => ( + + + + + + + ))} + +
The counts of the first table of the report, measured and today
What was counted{measuredOn}TodayChange
{row.label}{n(row.measured)}{n(row.today)}{formatChange(row.change)}
+
+ {note ?

{note}

: null} + {held ? ( +

+ Held out of the directory today: {n(held.noLink)} with no usable profile link, {n(held.grouped)} that share a profile link, a host name or a wallet with many others, + {" "}{n(held.numericName)} with a name that is only a number, and {n(held.pending)} not yet sorted. +

+ ) : null} + {today.ratings !== null ? ( +

The chain’s reputation registry holds {n(today.ratings)} ratings, counted from its first block.

+ ) : null} +
+ ); +} diff --git a/apps/nooscape-relay/client/src/components/chain/ChainEventRail.tsx b/apps/nooscape-relay/client/src/components/chain/ChainEventRail.tsx index 72c80ac..6613b62 100644 --- a/apps/nooscape-relay/client/src/components/chain/ChainEventRail.tsx +++ b/apps/nooscape-relay/client/src/components/chain/ChainEventRail.tsx @@ -79,6 +79,18 @@ function EmptyState({ ); } + if (chain === "gnosis" && status === "unsupported") { + return ( +
+ Global feed unavailable +

+ No global Gnosis activity feed is published. No event is shown in + its place. +

+
+ ); + } + if (status === "unmeasured") { return (
diff --git a/apps/nooscape-relay/client/src/components/chain/FormationMark.tsx b/apps/nooscape-relay/client/src/components/chain/FormationMark.tsx index 5235ee6..120309e 100644 --- a/apps/nooscape-relay/client/src/components/chain/FormationMark.tsx +++ b/apps/nooscape-relay/client/src/components/chain/FormationMark.tsx @@ -4,7 +4,7 @@ import type { FleetShape } from "@shared/mapFleets"; /** * The mark for a group of registrations that share one fact: three stacked plates in the group's chain outline (a disc for BNB Chain, a * diamond for Solana, a hexagon for Robinhood Chain, the same outlines as the lights on the home map, a dome for Arc, a cross for Base, a - * pentagon for Ethereum and a four-pointed star for Monad, which take the shapes of their home tabs). It is a landmark, not an agent: + * pentagon for Ethereum, a four-pointed star for Monad and an octagon for Gnosis, which take the shapes of their home tabs). It is a landmark, not an agent: * its size says how many registrations share the fact, and nothing else. */ const PLATE: Record = { @@ -15,6 +15,7 @@ const PLATE: Record = { cross: "M-14 -19H14V-8H44V8H14V19H-14V8H-44V-8H-14Z", pentagon: "M0 -22L44 -6L27 19L-27 19L-44 -6Z", star: "M0 -21L11 -5.5L44 0L11 5.5L0 21L-11 5.5L-44 0L-11 -5.5Z", + octagon: "M-18 -21L18 -21L44 -9L44 9L18 21L-18 21L-44 9L-44 -9Z", }; type FormationMarkProps = { shape: FleetShape; size: number; tone: string }; diff --git a/apps/nooscape-relay/client/src/components/chain/chainComponents.test.ts b/apps/nooscape-relay/client/src/components/chain/chainComponents.test.ts index d670024..bd01879 100644 --- a/apps/nooscape-relay/client/src/components/chain/chainComponents.test.ts +++ b/apps/nooscape-relay/client/src/components/chain/chainComponents.test.ts @@ -264,4 +264,11 @@ describe("the share of the registrations the registering wallets are recorded ag expect(markup).not.toMatch(/BNB|Base|Arc|census|Select an entry/); expect(markup).toContain("Monad"); }); + + it("words the Gnosis event rail's missing feed as Gnosis's, with no census to point at and no entry to select", () => { + const markup = renderToStaticMarkup(createElement(ChainEventRail, { chain: "gnosis", events: [], activeId: null, playing: false, onSelect: noop, onTogglePlayback: noop, motionReduced: false, status: "unsupported", coverage: "Global feed not published" })); + expect(markup).toContain("No global Gnosis activity feed is published. No event is shown in its place."); + expect(markup).not.toMatch(/BNB|Base|Arc|Monad|census|Select an entry/); + expect(markup).toContain("Gnosis"); + }); }); diff --git a/apps/nooscape-relay/client/src/components/chain/chainWorld.css b/apps/nooscape-relay/client/src/components/chain/chainWorld.css index d8776a0..2482d2c 100644 --- a/apps/nooscape-relay/client/src/components/chain/chainWorld.css +++ b/apps/nooscape-relay/client/src/components/chain/chainWorld.css @@ -1196,6 +1196,14 @@ repeating-linear-gradient(0deg, color-mix(in srgb, var(--cw-secondary) 7%, transparent) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, color-mix(in srgb, var(--cw-secondary) 7%, transparent) 0 1px, transparent 1px 26px); } +.cw-theater[data-chain="gnosis"] .cw-zone { + border-radius: 12px; + border-color: color-mix(in srgb, var(--cw-secondary) 26%, transparent); + background: + radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--cw-accent) 17%, transparent), transparent 70%), + repeating-linear-gradient(45deg, color-mix(in srgb, var(--cw-secondary) 7%, transparent) 0 1px, transparent 1px 24px), + repeating-linear-gradient(135deg, color-mix(in srgb, var(--cw-secondary) 7%, transparent) 0 1px, transparent 1px 24px); +} .cw-theater[data-chain="bnb"] .cw-zone { border-radius: 8px; border-top: 3px solid color-mix(in srgb, var(--cw-accent) 55%, transparent); diff --git a/apps/nooscape-relay/client/src/components/claim/claimClient.test.ts b/apps/nooscape-relay/client/src/components/claim/claimClient.test.ts index b7be808..cd9fbb9 100644 --- a/apps/nooscape-relay/client/src/components/claim/claimClient.test.ts +++ b/apps/nooscape-relay/client/src/components/claim/claimClient.test.ts @@ -91,6 +91,6 @@ describe("where the panel is", () => { it("is off in a build that does not name it", () => { const features = read(join(client, "..", "..", "shared", "features.ts")); - expect(features).toContain('export const FEATURES = ["watch", "patrols", "claims", "chain_base", "chain_ethereum", "chain_arc", "claims_arc", "claims_base", "claims_ethereum", "chain_monad", "claims_monad"] as const;'); + expect(features).toContain('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;'); }); }); diff --git a/apps/nooscape-relay/client/src/components/home/AgentConstellation.tsx b/apps/nooscape-relay/client/src/components/home/AgentConstellation.tsx index 214f572..6f71825 100644 --- a/apps/nooscape-relay/client/src/components/home/AgentConstellation.tsx +++ b/apps/nooscape-relay/client/src/components/home/AgentConstellation.tsx @@ -54,6 +54,7 @@ const MARKERS: Record = { cross: new Path2D(markerPath("cross")), pentagon: new Path2D(markerPath("pentagon")), star: new Path2D(markerPath("star")), + octagon: new Path2D(markerPath("octagon")), }; const ARROWS: Record = { ArrowLeft: "left", ArrowRight: "right", ArrowUp: "up", ArrowDown: "down" }; @@ -61,7 +62,7 @@ const ARROWS: Record = { ArrowLeft: "left", ArrowRight: "righ /** The red, green and blue of a #RRGGBB colour, for the translucent fills of a light. */ const rgbOf = (hex: string): [number, number, number] => [parseInt(hex.slice(1, 3), 16), parseInt(hex.slice(3, 5), 16), parseInt(hex.slice(5, 7), 16)]; -/** The outline of a light centred on a point: a circle, a diamond, a hexagon, a dome, a cross, a pentagon or a star, whose points are `reach` away. It leaves the path ready to fill or stroke. */ +/** The outline of a light centred on a point: a circle, a diamond, a hexagon, a dome, a cross, a pentagon, a star or an octagon, whose points are `reach` away. It leaves the path ready to fill or stroke. */ function lightOutline(context: CanvasRenderingContext2D, x: number, y: number, reach: number, shape: FleetShape) { context.beginPath(); if (shape === "circle") { @@ -90,6 +91,16 @@ function lightOutline(context: CanvasRenderingContext2D, x: number, y: number, r context.closePath(); return; } + if (shape === "octagon") { + // A regular octagon with flat sides at the top, bottom, left and right, one corner `reach` away at each eighth of a turn, as on the Gnosis tab's icon. + for (let corner = 0; corner < 8; corner += 1) { + const angle = Math.PI / 8 + (corner * Math.PI) / 4; + if (corner === 0) context.moveTo(x + reach * Math.cos(angle), y + reach * Math.sin(angle)); + else context.lineTo(x + reach * Math.cos(angle), y + reach * Math.sin(angle)); + } + context.closePath(); + return; + } if (shape === "pentagon") { // Pointed at the top, one corner `reach` away at each fifth of a turn. for (let corner = 0; corner < 5; corner += 1) { diff --git a/apps/nooscape-relay/client/src/components/home/ChainTabs.tsx b/apps/nooscape-relay/client/src/components/home/ChainTabs.tsx index 63a0aac..075c0dc 100644 --- a/apps/nooscape-relay/client/src/components/home/ChainTabs.tsx +++ b/apps/nooscape-relay/client/src/components/home/ChainTabs.tsx @@ -95,6 +95,11 @@ export function ChainTabs({ bnbProfile }: Props) { Open the Monad page )} + {regions.includes("gnosis") && ( + + Open the Gnosis page + + )}
@@ -165,6 +170,12 @@ export function ChainTabs({ bnbProfile }: Props) { Monad registry census, 1 November 2026.

)} + {chain === "gnosis" && ( +

+ A dated count of what the registry holds: the{" "} + Gnosis registry census, 6 November 2026. +

+ )} {chain === "bnb" && bnbSentence(bnbProfile) &&

{bnbSentence(bnbProfile)}

} {"registry" in row && registrySentence(row.registry) &&

{registrySentence(row.registry)}

}

{asOfSentence(row.asOf)}

diff --git a/apps/nooscape-relay/client/src/components/home/CheckCard.tsx b/apps/nooscape-relay/client/src/components/home/CheckCard.tsx index a30247f..ad4a627 100644 --- a/apps/nooscape-relay/client/src/components/home/CheckCard.tsx +++ b/apps/nooscape-relay/client/src/components/home/CheckCard.tsx @@ -139,13 +139,13 @@ function FleetCard({ node, kind, onUnpin }: { node: ConstellationNode; kind: Sel
Chain
{chain.label}
{fleet?.wallet && ( <> -
{fleet.chain === "solana" ? "Owner wallet" : fleet.chain === "robinhood" || fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" ? "Registering wallet" : "Wallet"}
+
{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"}
{fleet.wallet} diff --git a/apps/nooscape-relay/client/src/components/home/chainTabsModel.test.ts b/apps/nooscape-relay/client/src/components/home/chainTabsModel.test.ts index f9ab30b..8c8077a 100644 --- a/apps/nooscape-relay/client/src/components/home/chainTabsModel.test.ts +++ b/apps/nooscape-relay/client/src/components/home/chainTabsModel.test.ts @@ -131,7 +131,7 @@ describe("the regions", () => { expect(REGION_ORDER.map(chain => CHAIN_LABEL[chain].split(" ")[0])).toEqual(["Robinhood", "BNB", "Solana"]); }); - it("link to a page of their own for the original three, and for Arc, Base, Ethereum and Monad while their switches are on", () => { + it("link to a page of their own for the original three, and for Arc, Base, Ethereum, Monad and Gnosis while their switches are on", () => { // The page links are the only use of REGION_ORDER in the component besides the import. expect(tabs.match(/REGION_ORDER\.map\(/g)).toHaveLength(1); expect(tabs).toContain("href={`/chains/${chain}`}"); @@ -143,6 +143,8 @@ describe("the regions", () => { expect(tabs).toContain('href="/chains/ethereum"'); expect(tabs).toContain('regions.includes("monad")'); expect(tabs).toContain('href="/chains/monad"'); + expect(tabs).toContain('regions.includes("gnosis")'); + expect(tabs).toContain('href="/chains/gnosis"'); }); }); @@ -157,11 +159,12 @@ describe("the extra chains' tabs", () => { } }); - it("appear after the original three for each switch that is on, in the order Ethereum, Base, Arc, Monad", () => { + it("appear after the original three for each switch that is on, in the order Ethereum, Base, Arc, Monad, Gnosis", () => { expect(regionsShown(extraRows, "chain_base")).toEqual(["robinhood", "bnb", "solana", "base"]); expect(regionsShown(extraRows, "chain_arc, chain_ethereum")).toEqual(["robinhood", "bnb", "solana", "ethereum", "arc"]); expect(regionsShown(extraRows, "claims,chain_base,chain_ethereum,chain_arc")).toEqual(["robinhood", "bnb", "solana", "ethereum", "base", "arc"]); expect(regionsShown(null, "chain_monad,chain_arc,chain_base,chain_ethereum")).toEqual(["robinhood", "bnb", "solana", "ethereum", "base", "arc", "monad"]); + expect(regionsShown(null, "chain_gnosis,chain_monad,chain_arc,chain_base,chain_ethereum")).toEqual(["robinhood", "bnb", "solana", "ethereum", "base", "arc", "monad", "gnosis"]); }); it("are left out when the server sent no row for them, and are all planned from the switches before the answer is in", () => { @@ -174,6 +177,7 @@ describe("the extra chains' tabs", () => { expect(regionsHeading(["robinhood", "bnb", "solana", "base"])).toBe("Robinhood, BNB, Solana, Base. Same Owl, four skies."); expect(regionsHeading(["robinhood", "bnb", "solana", "ethereum", "base", "arc"])).toBe("Robinhood, BNB, Solana, Ethereum, Base, Arc. Same Owl, six skies."); expect(regionsHeading(["robinhood", "bnb", "solana", "ethereum", "base", "arc", "monad"])).toBe("Robinhood, BNB, Solana, Ethereum, Base, Arc, Monad. Same Owl, seven skies."); + expect(regionsHeading(["robinhood", "bnb", "solana", "ethereum", "base", "arc", "monad", "gnosis"])).toBe("Robinhood, BNB, Solana, Ethereum, Base, Arc, Monad, Gnosis. Same Owl, eight skies."); }); it("each have a shape and a colour of their own, different from the three on the map and from each other", () => { diff --git a/apps/nooscape-relay/client/src/components/home/chainTabsModel.ts b/apps/nooscape-relay/client/src/components/home/chainTabsModel.ts index d892c45..fc51047 100644 --- a/apps/nooscape-relay/client/src/components/home/chainTabsModel.ts +++ b/apps/nooscape-relay/client/src/components/home/chainTabsModel.ts @@ -68,7 +68,7 @@ export function registrySplitText(registries: ReadonlyArray<{ protocol: string; export const REGION_ORDER: readonly ChainKey[] = ["robinhood", "bnb", "solana"]; /** - * The regions the tabs show: the three above, then each extra chain (Ethereum, Base, Arc, Monad) that is switched on in this build. Once the + * The regions the tabs show: the three above, then each extra chain (Ethereum, Base, Arc, Monad, Gnosis) that is switched on in this build. Once the * server has answered, an extra chain it sent no row for is left out too, so a switch that is on in the build and off on the server * shows nothing. `extras` is null until the answer is in, and the list is then the one the build asks for, so the heading does not * change when the figures arrive. @@ -78,15 +78,15 @@ export function regionsShown(extras: readonly Pick[] | return [...REGION_ORDER, ...planned.filter(chain => extras === null || extras.some(row => row.chain === chain))]; } -const REGION_NAME: Record = { robinhood: "Robinhood", bnb: "BNB", solana: "Solana", ethereum: "Ethereum", base: "Base", arc: "Arc", monad: "Monad" }; -const SKY_COUNT = ["no", "one", "two", "three", "four", "five", "six", "seven"]; +const REGION_NAME: Record = { robinhood: "Robinhood", bnb: "BNB", solana: "Solana", ethereum: "Ethereum", base: "Base", arc: "Arc", monad: "Monad", gnosis: "Gnosis" }; +const SKY_COUNT = ["no", "one", "two", "three", "four", "five", "six", "seven", "eight"]; /** The heading over the tabs: the regions by name, in order. With the original three it is the sentence the page has always had. */ export function regionsHeading(regions: readonly ListedChainKey[]): string { return `${regions.map(region => REGION_NAME[region]).join(", ")}. Same Owl, ${SKY_COUNT[regions.length] ?? String(regions.length)} skies.`; } -type RegionShape = MarkerShape | "pentagon" | "cross" | "dome" | "star"; +type RegionShape = MarkerShape | "pentagon" | "cross" | "dome" | "star" | "octagon"; /** * The icons of the extra chains. They have no lights on the map, so these are not the map key's shapes: each is its own, drawn in the @@ -97,11 +97,12 @@ const EXTRA_ICON: Record = base: { shape: "cross", path: "M-0.4 -1.2H0.4V-0.4H1.2V0.4H0.4V1.2H-0.4V0.4H-1.2V-0.4H-0.4Z" }, arc: { shape: "dome", path: "M-1.2 0.9A1.2 1.2 0 0 1 1.2 0.9Z" }, monad: { shape: "star", path: "M0 -1.3L0.35 -0.35L1.3 0L0.35 0.35L0 1.3L-0.35 0.35L-1.3 0L-0.35 -0.35Z" }, + gnosis: { shape: "octagon", path: "M-0.52 -1.25L0.52 -1.25L1.25 -0.52L1.25 0.52L0.52 1.25L-0.52 1.25L-1.25 0.52L-1.25 -0.52Z" }, }; /** A region's icon: the same shape its lights have on the map for the original three, so a tab reads like the map's key and colour is never the only way to tell the regions apart. */ export function regionIcon(chain: ListedChainKey): { shape: RegionShape; path: string } { - if (chain === "ethereum" || chain === "base" || chain === "arc" || chain === "monad") return EXTRA_ICON[chain]; + if (chain === "ethereum" || chain === "base" || chain === "arc" || chain === "monad" || chain === "gnosis") return EXTRA_ICON[chain]; const { shape } = CHAIN_STYLE[chain]; return { shape, path: markerPath(shape) }; } diff --git a/apps/nooscape-relay/client/src/components/home/constellationModel.test.ts b/apps/nooscape-relay/client/src/components/home/constellationModel.test.ts index e5cc6d2..35eb9e7 100644 --- a/apps/nooscape-relay/client/src/components/home/constellationModel.test.ts +++ b/apps/nooscape-relay/client/src/components/home/constellationModel.test.ts @@ -1,6 +1,6 @@ import { readFileSync } from "node:fs"; import { describe, expect, it } from "vitest"; -import { ARC_LIGHTS_LIMIT, BASE_LIGHTS_LIMIT, ETHEREUM_LIGHTS_LIMIT, MONAD_LIGHTS_LIMIT, type MapFleets } from "@shared/mapFleets"; +import { ARC_LIGHTS_LIMIT, BASE_LIGHTS_LIMIT, ETHEREUM_LIGHTS_LIMIT, GNOSIS_LIGHTS_LIMIT, MONAD_LIGHTS_LIMIT, type MapFleets } from "@shared/mapFleets"; import { regionIcon } from "./chainTabsModel"; import { ACKNOWLEDGED_TIER, @@ -15,6 +15,7 @@ import { currentSelection, ethereumLights, monadLights, + gnosisLights, fleetRadius, fleetReach, fleetRecords, @@ -230,20 +231,22 @@ describe("how a chain looks", () => { expect(css).toContain(`--ns-ink-dim: ${CHAIN_STYLE.none.color.toLowerCase()};`); // Arc's tab colour is the colour of its dome on the map. expect(css).toContain(`--ns-chain-arc: ${CHAIN_STYLE.arc.color.toLowerCase()};`); - // So are Base's, Ethereum's and Monad's: the colour of the tab is the colour of the cross, the pentagon and the star. + // So are Base's, Ethereum's, Monad's and Gnosis's: the colour of the tab is the colour of the cross, the pentagon, the star and the octagon. expect(css).toContain(`--ns-chain-base: ${CHAIN_STYLE.base.color.toLowerCase()};`); expect(css).toContain(`--ns-chain-ethereum: ${CHAIN_STYLE.ethereum.color.toLowerCase()};`); expect(css).toContain(`--ns-chain-monad: ${CHAIN_STYLE.monad.color.toLowerCase()};`); + expect(css).toContain(`--ns-chain-gnosis: ${CHAIN_STYLE.gnosis.color.toLowerCase()};`); }); it("draws Arc's records with the dome of its tab, so the key, the tab and the map agree", () => { expect(CHAIN_STYLE.arc).toMatchObject({ label: "Arc", shape: "dome" }); expect(markerPath("dome")).toBe(regionIcon("arc").path); expect(recordChain('["erc8004_arc"]')).toBe("arc"); - // The identity registries of Base, Ethereum and Monad count too: their groups have lights. + // The identity registries of Base, Ethereum, Monad and Gnosis count too: their groups have lights. expect(recordChain('["erc8004_base"]')).toBe("base"); expect(recordChain('["erc8004_eth"]')).toBe("ethereum"); expect(recordChain('["erc8004_monad"]')).toBe("monad"); + expect(recordChain('["erc8004_gnosis"]')).toBe("gnosis"); const nodes = [node("a", 0.1, 0.1, { chain: "arc" }), node("b", 0.2, 0.2, { chain: "bnb" }), node("c", 0.3, 0.3)]; expect(legendEntries(nodes).map(entry => [entry.key, entry.count])).toEqual([["bnb", 1], ["arc", 1], ["none", 1]]); }); @@ -259,6 +262,16 @@ describe("how a chain looks", () => { expect(legendEntries(nodes).map(entry => [entry.key, entry.count])).toEqual([["solana", 1], ["arc", 1], ["base", 1], ["ethereum", 1], ["monad", 1]]); }); + it("draws Gnosis's records with the octagon of its tab, a shape no other chain's lights have, so the key, the tab and the map agree", () => { + expect(CHAIN_STYLE.gnosis).toMatchObject({ label: "Gnosis", shape: "octagon" }); + expect(markerPath("octagon")).toBe(regionIcon("gnosis").path); + // Robinhood Chain's lights are hexagons, so no chain shares an outline with another. + const shapes = Object.entries(CHAIN_STYLE).filter(([key]) => key !== "none").map(([, style]) => style.shape); + expect(new Set(shapes).size).toBe(shapes.length); + const nodes = [node("a", 0.1, 0.1, { chain: "monad" }), node("b", 0.2, 0.2, { chain: "gnosis" })]; + expect(legendEntries(nodes).map(entry => [entry.key, entry.count])).toEqual([["monad", 1], ["gnosis", 1]]); + }); + it("lists in the legend only the chains that have a record on the map, with counts, in a fixed order", () => { const nodes = [node("a", 0.1, 0.1, { chain: "solana" }), node("b", 0.2, 0.2, { chain: "robinhood" }), node("c", 0.3, 0.3, { chain: "solana" }), node("d", 0.4, 0.4)]; expect(legendEntries(nodes).map(entry => [entry.key, entry.count])).toEqual([["robinhood", 1], ["solana", 2], ["none", 1]]); @@ -855,6 +868,7 @@ describe.each([ { chain: "base" as const, label: "Base", shape: "cross", shapes: "crosses", protocol: "erc8004_base", limit: BASE_LIGHTS_LIMIT, lights: baseLights }, { chain: "ethereum" as const, label: "Ethereum", shape: "pentagon", shapes: "pentagons", protocol: "erc8004_eth", limit: ETHEREUM_LIGHTS_LIMIT, lights: ethereumLights }, { chain: "monad" as const, label: "Monad", shape: "star", shapes: "stars", protocol: "erc8004_monad", limit: MONAD_LIGHTS_LIMIT, lights: monadLights }, + { chain: "gnosis" as const, label: "Gnosis", shape: "octagon", shapes: "octagons", protocol: "erc8004_gnosis", limit: GNOSIS_LIGHTS_LIMIT, lights: gnosisLights }, ])("the $label lights on the scan map", ({ chain, label, shape, shapes, protocol, limit, lights }) => { const group = (id: string, count: number, kind: "wallet" | "platform_host" | "shared_link" = "wallet") => ({ id, @@ -867,7 +881,7 @@ describe.each([ wallets: kind === "wallet" ? 1 : null, }); /** This chain's groups as map records, in the argument fleetRecords reads them from. */ - const recordsOf = (groups: ReturnType[]) => (chain === "base" ? fleetRecords(null, null, { fleets: groups }) : chain === "monad" ? fleetRecords(null, null, null, null, { fleets: groups }) : fleetRecords(null, null, null, { fleets: groups })); + const recordsOf = (groups: ReturnType[]) => (chain === "base" ? fleetRecords(null, null, { fleets: groups }) : chain === "gnosis" ? fleetRecords(null, null, null, null, null, { fleets: groups }) : chain === "monad" ? fleetRecords(null, null, null, null, { fleets: groups }) : fleetRecords(null, null, null, { fleets: groups })); const noOthers = { fleets: [], groups: 0, registrations: null, asOf: null, solana: { fleets: [], groups: 0, asOf: null }, robinhood: { fleets: [], groups: 0, asOf: null, listed: null } }; const bnb = (id: string, count: number) => ({ id, kind: "platform_host" as const, chain: "bnb" as const, name: "host.example", wallet: null, registry: null, count, wallets: null }); const dots = Array.from({ length: 60 }, (_, index) => ({ agentId: `dot-${index}`, displayName: `Dot ${index}`, handle: `@d${index}`, protocols: '["a2a"]', evidenceTier: "tier_2" })); @@ -930,18 +944,18 @@ describe.each([ const nodes = layoutNodes([...dots.slice(0, 3), ...fleetRecords({ ...noOthers, fleets: [bnb("bsc-fleet-a", 100)] }), ...recordsOf([group("fleet-a", 1_000), group("fleet-b", 868, "platform_host")])], 2); const summary = constellationSummary(nodes); expect(summary).toContain("Also 1 large circle: each is a group of BNB Chain registrations"); - expect(summary).toContain(`Also 2 large ${shapes}: each is a group of ${label} registrations that share one wallet, host or profile link, with its count. A ${shape} is a group, not an agent, and no single ${label} registration is drawn.`); + expect(summary).toContain(`Also 2 large ${shapes}: each is a group of ${label} registrations that share one wallet, host or profile link, with its count. ${/^[aeiou]/.test(shape) ? "An" : "A"} ${shape} is a group, not an agent, and no single ${label} registration is drawn.`); expect(constellationSummary(layoutNodes(dots.slice(0, 3), 2))).not.toContain(shape); }); }); -describe("the Arc, Base, Ethereum and Monad lights together", () => { - const light = (id: string, chain: "bnb" | "arc" | "base" | "ethereum" | "monad") => ({ id, kind: "platform_host" as const, chain, name: "host.example", wallet: null, registry: null, count: 100, wallets: null }); +describe("the Arc, Base, Ethereum, Monad and Gnosis lights together", () => { + const light = (id: string, chain: "bnb" | "arc" | "base" | "ethereum" | "monad" | "gnosis") => ({ id, kind: "platform_host" as const, chain, name: "host.example", wallet: null, registry: null, count: 100, wallets: null }); const noOthers = { fleets: [], groups: 0, registrations: null, asOf: null, solana: { fleets: [], groups: 0, asOf: null }, robinhood: { fleets: [], groups: 0, asOf: null, listed: null } }; - it("come after the other chains' lights, Arc's first, then Base's, Ethereum's and Monad's", () => { - const all = fleetRecords({ ...noOthers, fleets: [light("bsc-fleet-a", "bnb")] }, { fleets: [light("arc-fleet-a", "arc")] }, { fleets: [light("base-fleet-a", "base")] }, { fleets: [light("eth-fleet-a", "ethereum")] }, { fleets: [light("monad-fleet-a", "monad")] }); - expect(all.map(candidate => candidate.agentId)).toEqual(["bsc-fleet-a", "arc-fleet-a", "base-fleet-a", "eth-fleet-a", "monad-fleet-a"]); - expect(all.map(candidate => recordChain(candidate.protocols))).toEqual(["bnb", "arc", "base", "ethereum", "monad"]); + it("come after the other chains' lights, Arc's first, then Base's, Ethereum's, Monad's and Gnosis's", () => { + const all = fleetRecords({ ...noOthers, fleets: [light("bsc-fleet-a", "bnb")] }, { fleets: [light("arc-fleet-a", "arc")] }, { fleets: [light("base-fleet-a", "base")] }, { fleets: [light("eth-fleet-a", "ethereum")] }, { fleets: [light("monad-fleet-a", "monad")] }, { fleets: [light("gnosis-fleet-a", "gnosis")] }); + expect(all.map(candidate => candidate.agentId)).toEqual(["bsc-fleet-a", "arc-fleet-a", "base-fleet-a", "eth-fleet-a", "monad-fleet-a", "gnosis-fleet-a"]); + expect(all.map(candidate => recordChain(candidate.protocols))).toEqual(["bnb", "arc", "base", "ethereum", "monad", "gnosis"]); }); }); diff --git a/apps/nooscape-relay/client/src/components/home/constellationModel.ts b/apps/nooscape-relay/client/src/components/home/constellationModel.ts index 31bd3d8..3bb2ebb 100644 --- a/apps/nooscape-relay/client/src/components/home/constellationModel.ts +++ b/apps/nooscape-relay/client/src/components/home/constellationModel.ts @@ -15,7 +15,7 @@ */ import { CHAIN_LABEL, EXTRA_CHAIN_LABEL, extraProtocolOf, listedChainLabel, listedChainOf, parseProtocolList, type ListedChainKey } from "@shared/chains"; -import { ARC_LIGHTS_LIMIT, BASE_LIGHTS_LIMIT, ETHEREUM_LIGHTS_LIMIT, fleetKindLabel, fleetShape, fleetTitle, MONAD_LIGHTS_LIMIT, type MapFleet, type MapFleets, type RegistryFleets } from "@shared/mapFleets"; +import { ARC_LIGHTS_LIMIT, BASE_LIGHTS_LIMIT, ETHEREUM_LIGHTS_LIMIT, fleetKindLabel, fleetShape, fleetTitle, GNOSIS_LIGHTS_LIMIT, MONAD_LIGHTS_LIMIT, type MapFleet, type MapFleets, type RegistryFleets } from "@shared/mapFleets"; export const MAX_NODES = 400; @@ -28,12 +28,12 @@ export const isAcknowledged = (node: Pick) => node.ki export const FLEET_TIER = "fleet"; export const isFleet = (node: Pick) => node.kind === "fleet"; -/** The chains a node of the map can be on: the original three, and Ethereum, Base, Arc and Monad, whose groups have lights while their switches are on. */ +/** The chains a node of the map can be on: the original three, and Ethereum, Base, Arc, Monad and Gnosis, whose groups have lights while their switches are on. */ export type MapChainKey = ListedChainKey; -/** The protocol a light sits on, which gives its node the chain it is drawn in: BNB Chain for the groups, the registry's own for a Solana owner wallet, Robinhood Chain's for a registering wallet, the chain's own for an Arc, Base, Ethereum or Monad group. */ +/** The protocol a light sits on, which gives its node the chain it is drawn in: BNB Chain for the groups, the registry's own for a Solana owner wallet, Robinhood Chain's for a registering wallet, the chain's own for an Arc, Base, Ethereum, Monad or Gnosis group. */ const lightProtocol = (fleet: MapFleet) => - fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" + fleet.chain === "arc" || fleet.chain === "base" || fleet.chain === "ethereum" || fleet.chain === "monad" || fleet.chain === "gnosis" ? extraProtocolOf(fleet.chain) : fleet.chain === "robinhood" ? "erc8004" @@ -68,16 +68,22 @@ export function monadLights(monad: Pick | null | undef return largestGroups(monad, MONAD_LIGHTS_LIMIT); } -/** The fleets as nodes for the map: the group's own title, its kind in words, the chain's protocol, and marked as a fleet. BNB Chain groups first, then the Solana owner wallets, the Robinhood Chain registering wallets and the Arc, Base, Ethereum and Monad groups. */ +/** The Gnosis lights: at most {@link GNOSIS_LIGHTS_LIMIT}. */ +export function gnosisLights(gnosis: Pick | null | undefined): MapFleet[] { + return largestGroups(gnosis, GNOSIS_LIGHTS_LIMIT); +} + +/** The fleets as nodes for the map: the group's own title, its kind in words, the chain's protocol, and marked as a fleet. BNB Chain groups first, then the Solana owner wallets, the Robinhood Chain registering wallets and the Arc, Base, Ethereum, Monad and Gnosis groups. */ export function fleetRecords( sample: MapFleets | null | undefined, arc: Pick | null | undefined = null, base: Pick | null | undefined = null, ethereum: Pick | null | undefined = null, - monad: Pick | null | undefined = null + monad: Pick | null | undefined = null, + gnosis: Pick | null | undefined = null ): ConstellationRecord[] { // `solana` is read defensively: a map must never fail to draw because an answer lacks a field. - return [...(sample?.fleets ?? []), ...(sample?.solana?.fleets ?? []), ...(sample?.robinhood?.fleets ?? []), ...arcLights(arc), ...baseLights(base), ...ethereumLights(ethereum), ...monadLights(monad)].map(fleet => ({ + return [...(sample?.fleets ?? []), ...(sample?.solana?.fleets ?? []), ...(sample?.robinhood?.fleets ?? []), ...arcLights(arc), ...baseLights(base), ...ethereumLights(ethereum), ...monadLights(monad), ...gnosisLights(gnosis)].map(fleet => ({ agentId: fleet.id, displayName: fleetTitle(fleet), handle: fleetKindLabel(fleet), @@ -158,7 +164,7 @@ const TIER_COLOR: Record = { export const UNKNOWN_TIER_COLOR = "#7E8B93"; export const tierColor = (tier: string) => TIER_COLOR[tier] ?? UNKNOWN_TIER_COLOR; -/** The chain a record's protocols name: the first protocol on a chain, or null when none is. The identity registries of Ethereum, Base, Arc and Monad count, so a group's light is on its own chain. */ +/** The chain a record's protocols name: the first protocol on a chain, or null when none is. The identity registries of Ethereum, Base, Arc, Monad and Gnosis count, so a group's light is on its own chain. */ export function recordChain(protocols: string): MapChainKey | null { for (const protocol of parseProtocolList(protocols)) { const chain = listedChainOf(protocol); @@ -172,7 +178,7 @@ export function recordChain(protocols: string): MapChainKey | null { * shape, so the map reads in greys, and the legend and the card name the chain in words. */ export type ChainStyleKey = MapChainKey | "none"; -export type MarkerShape = "circle" | "diamond" | "square" | "triangle" | "dome" | "cross" | "pentagon" | "star"; +export type MarkerShape = "circle" | "diamond" | "square" | "triangle" | "dome" | "cross" | "pentagon" | "star" | "octagon"; export const CHAIN_STYLE: Record = { robinhood: { label: CHAIN_LABEL.robinhood, color: "#C3F53C", shape: "circle" }, solana: { label: CHAIN_LABEL.solana, color: "#A78BFA", shape: "diamond" }, @@ -182,6 +188,7 @@ export const CHAIN_STYLE: Record): ChainStyleKey => node.chain ?? "none"; @@ -205,6 +212,8 @@ export function markerPath(shape: MarkerShape): string { return "M0 -1.25L1.19 -0.39L0.73 1.01L-0.73 1.01L-1.19 -0.39Z"; case "star": return "M0 -1.3L0.35 -0.35L1.3 0L0.35 0.35L0 1.3L-0.35 0.35L-1.3 0L-0.35 -0.35Z"; + case "octagon": + return "M-0.52 -1.25L0.52 -1.25L1.25 -0.52L1.25 0.52L0.52 1.25L-0.52 1.25L-1.25 0.52L-1.25 -0.52Z"; } } @@ -218,7 +227,7 @@ type LegendEntry = { key: ChainStyleKey; label: string; color: string; shape: Ma function legendOf(nodes: readonly ConstellationNode[]): LegendEntry[] { const counts = new Map(); for (const node of nodes) counts.set(chainStyleKey(node), (counts.get(chainStyleKey(node)) ?? 0) + 1); - return (["robinhood", "solana", "bnb", "arc", "base", "ethereum", "monad", "none"] as const) + return (["robinhood", "solana", "bnb", "arc", "base", "ethereum", "monad", "gnosis", "none"] as const) .filter(key => (counts.get(key) ?? 0) > 0) .map(key => ({ key, ...CHAIN_STYLE[key], count: counts.get(key)! })); } @@ -356,9 +365,9 @@ const LIGHT_ATTEMPTS = 24; function placeFleetNodes(records: readonly ConstellationRecord[], obstacles: readonly ConstellationNode[], aspect: number, place = true): ConstellationNode[] { const placed: ConstellationNode[] = []; - // The BNB Chain lights are placed first, so they are exactly where they were before there were Solana lights, and the Solana lights next, so they are where they were before there were Robinhood Chain lights; those find room around them, then the Arc lights, and the Base, Ethereum and Monad lights find room last. + // The BNB Chain lights are placed first, so they are exactly where they were before there were Solana lights, and the Solana lights next, so they are where they were before there were Robinhood Chain lights; those find room around them, then the Arc lights, and the Base, Ethereum, Monad and Gnosis lights find room last. const lightOrder = (record: ConstellationRecord) => - record.fleet?.chain === "monad" ? 6 : record.fleet?.chain === "ethereum" ? 5 : record.fleet?.chain === "base" ? 4 : record.fleet?.chain === "arc" ? 3 : record.fleet?.chain === "robinhood" ? 2 : record.fleet?.chain === "solana" ? 1 : 0; + record.fleet?.chain === "gnosis" ? 7 : record.fleet?.chain === "monad" ? 6 : record.fleet?.chain === "ethereum" ? 5 : record.fleet?.chain === "base" ? 4 : record.fleet?.chain === "arc" ? 3 : record.fleet?.chain === "robinhood" ? 2 : record.fleet?.chain === "solana" ? 1 : 0; const ordered = [...records].sort((a, b) => lightOrder(a) - lightOrder(b) || (b.fleet?.count ?? 0) - (a.fleet?.count ?? 0) || (a.agentId < b.agentId ? -1 : a.agentId > b.agentId ? 1 : 0)); for (const record of ordered) { const radius = fleetReach(record.fleet); @@ -609,6 +618,7 @@ export function constellationSummary(nodes: readonly ConstellationNode[]): strin const crosses = nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "cross").length; const pentagons = nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "pentagon").length; const stars = nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "star").length; + const octagons = nodes.filter(node => isFleet(node) && fleetShape(node.fleet) === "octagon").length; const counts = new Map(); for (const node of reviewed) counts.set(node.tier, (counts.get(node.tier) ?? 0) + 1); const tiers = Array.from(counts.entries()) @@ -632,6 +642,8 @@ export function constellationSummary(nodes: readonly ConstellationNode[]): strin const ethereumGroups = pentagons > 0 ? ` Also ${plural(pentagons, "large pentagon")}: each is a group of ${listedChainLabel("ethereum")} registrations that share one wallet, host or profile link, with its count. A pentagon is a group, not an agent, and no single ${listedChainLabel("ethereum")} registration is drawn.` : ""; // And the Monad lights: a star is a group, not an agent. const monadGroups = stars > 0 ? ` Also ${plural(stars, "large star")}: each is a group of ${listedChainLabel("monad")} registrations that share one wallet, host or profile link, with its count. A star is a group, not an agent, and no single ${listedChainLabel("monad")} registration is drawn.` : ""; + // And the Gnosis lights: an octagon is a group, not an agent. + const gnosisGroups = octagons > 0 ? ` Also ${plural(octagons, "large octagon")}: each is a group of ${listedChainLabel("gnosis")} registrations that share one wallet, host or profile link, with its count. An octagon is a group, not an agent, and no single ${listedChainLabel("gnosis")} registration is drawn.` : ""; const lead = reviewed.length > 0 ? `Map of ${plural(reviewed.length, "reviewed record")}. By chain: ${chains.join(", ")}. By evidence tier: ${tiers.join(", ")}.` : "No reviewed records to show."; - return `${lead}${apart}${groups}${wallets}${registrants}${arcGroups}${baseGroups}${ethereumGroups}${monadGroups} Each dot is one record. Tab to the map, use the arrow keys to move between records and Enter to pin one.`; + return `${lead}${apart}${groups}${wallets}${registrants}${arcGroups}${baseGroups}${ethereumGroups}${monadGroups}${gnosisGroups} Each dot is one record. Tab to the map, use the arrow keys to move between records and Enter to pin one.`; } diff --git a/apps/nooscape-relay/client/src/index.css b/apps/nooscape-relay/client/src/index.css index 317f586..1c82bde 100644 --- a/apps/nooscape-relay/client/src/index.css +++ b/apps/nooscape-relay/client/src/index.css @@ -23,6 +23,7 @@ --ns-chain-base: #3b82f6; --ns-chain-arc: #acc6e9; --ns-chain-monad: #fb7185; + --ns-chain-gnosis: #2dd4bf; --ns-glow: 0 0 24px color-mix(in oklab, var(--ns-radar) 45%, transparent); --ns-text-display: clamp(2.75rem, 6vw, 5.5rem); --ns-text-h2: clamp(1.75rem, 3vw, 2.5rem); diff --git a/apps/nooscape-relay/client/src/lib/censusTodayModel.test.ts b/apps/nooscape-relay/client/src/lib/censusTodayModel.test.ts new file mode 100644 index 0000000..e4b4fba --- /dev/null +++ b/apps/nooscape-relay/client/src/lib/censusTodayModel.test.ts @@ -0,0 +1,73 @@ +import { describe, expect, it } from "vitest"; +import type { CensusToday } from "@shared/censusToday"; +import { censusTodayRows, formatAsOf, formatChange } from "./censusTodayModel"; + +const today = (overrides: Partial = {}): CensusToday => ({ + chain: "monad", + asOf: "2026-11-07T18:47:03.000Z", + figures: { onChain: 10_500, stored: 4_400, overflow: 6_100, listed: 150, wallets: 70, withHttpsHost: 1_900, hosts: 40, profileLinks: 400 }, + heldOut: { noLink: 5, grouped: 4_200, numericName: 0, pending: 0 }, + ratings: null, + ...overrides, +}); + +describe("the lines of the Today block", () => { + it("are the page's own table lines, in its order, matched to the directory's counts by the label the pages share", () => { + const rows = censusTodayRows( + [ + ["Registrations the directory has stored", 4_327], + ["Registrations the directory lists", 144], + ["Registering wallets", 69], + ], + today() + ); + + expect(rows).toEqual([ + { figure: "stored", label: "Registrations the directory has stored", measured: 4_327, today: 4_400, change: 73 }, + { figure: "listed", label: "Registrations the directory lists", measured: 144, today: 150, change: 6 }, + { figure: "wallets", label: "Registering wallets", measured: 69, today: 70, change: 1 }, + ]); + }); + + it("take the count from the page when the page has its own words for it", () => { + const rows = censusTodayRows([["Entries the directory shows", 700, "listed"]], today()); + + expect(rows).toEqual([{ figure: "listed", label: "Entries the directory shows", measured: 700, today: 150, change: -550 }]); + }); + + it("leave out a line the directory has no count for today, and a label no count stands for, and never show either as zero", () => { + const rows = censusTodayRows( + [ + ["Registrations the directory counts on the chain", 10_421], + ["Entries the directory shows", 144], + ["Registering wallets", 69], + ], + today({ figures: { wallets: 71 } }) + ); + + expect(rows.map(row => row.figure)).toEqual(["wallets"]); + }); + + it("keep a count of zero", () => { + const rows = censusTodayRows([["Registrations counted past a host's cap and not stored", 0]], today({ figures: { overflow: 0 } })); + + expect(rows).toEqual([{ figure: "overflow", label: "Registrations counted past a host's cap and not stored", measured: 0, today: 0, change: 0 }]); + }); +}); + +describe("how a change and a time are written", () => { + it("gives a sign and the size, with thousands separated, or no change", () => { + expect(formatChange(73)).toBe("+73"); + expect(formatChange(-1_851)).toBe("-1,851"); + expect(formatChange(0)).toBe("no change"); + }); + + it("never writes a long dash", () => { + for (const change of [-5, -1, 0, 1, 5, -1_000_000]) expect(formatChange(change)).not.toMatch(/[\u2013\u2014\u2212]/); + }); + + it("gives a time to the minute, in UTC", () => { + expect(formatAsOf("2026-11-07T18:47:03.000Z")).toBe("2026-11-07 18:47 UTC"); + expect(formatAsOf("2026-02-03T00:05:59.999Z")).toBe("2026-02-03 00:05 UTC"); + }); +}); diff --git a/apps/nooscape-relay/client/src/lib/censusTodayModel.ts b/apps/nooscape-relay/client/src/lib/censusTodayModel.ts new file mode 100644 index 0000000..477b427 --- /dev/null +++ b/apps/nooscape-relay/client/src/lib/censusTodayModel.ts @@ -0,0 +1,37 @@ +import { censusFigureOfLabel, type CensusFigure, type CensusToday } from "@shared/censusToday"; + +/** + * What the Today block on a registry census page works out. A page hands it the counts of its own first table, each with the label the + * page uses and the figure the report measured. Where a label is one the census pages share, the count it stands for is known from the + * label; a page with its own words (Robinhood's "Entries the directory shows") names the count itself. + */ +export type CensusTodayFigure = readonly [label: string, measured: number, figure?: CensusFigure]; + +/** One line of the block: a count of the page's first table, as the report measured it and as the directory holds it now. */ +export type CensusTodayRow = { figure: CensusFigure; label: string; measured: number; today: number; change: number }; + +/** + * The lines of the block, in the order of the page's own table, for the counts the answer has. A line of the table that has nothing to + * say for today (a count this registry does not have, or a label this table does not use) is left out, not shown as zero. + */ +export function censusTodayRows(figures: readonly CensusTodayFigure[], today: CensusToday): CensusTodayRow[] { + const rows: CensusTodayRow[] = []; + for (const [label, measured, named] of figures) { + const figure = named ?? censusFigureOfLabel(label); + const value = figure ? today.figures[figure] : undefined; + if (!figure || value === undefined) continue; + rows.push({ figure, label, measured, today: value, change: value - measured }); + } + return rows; +} + +/** A change as the block writes it: a sign and the size, or "no change". */ +export function formatChange(change: number): string { + if (change === 0) return "no change"; + return `${change > 0 ? "+" : "-"}${Math.abs(change).toLocaleString("en-US")}`; +} + +/** When the registry's source last finished a pass, to the minute and in UTC, as the reports write their own times. */ +export function formatAsOf(iso: string): string { + return `${new Date(iso).toISOString().slice(0, 16).replace("T", " ")} UTC`; +} diff --git a/apps/nooscape-relay/client/src/lib/chainExplorerModel.test.ts b/apps/nooscape-relay/client/src/lib/chainExplorerModel.test.ts index bfa84a1..9eb6069 100644 --- a/apps/nooscape-relay/client/src/lib/chainExplorerModel.test.ts +++ b/apps/nooscape-relay/client/src/lib/chainExplorerModel.test.ts @@ -229,7 +229,7 @@ describe("chain world evidence model", () => { expect(worldCrew(rows, null, null, 0)).toEqual([]); }); it("draws BNB Chain as groups and reviewed records only, never as individual registrations", () => { - expect(CHAIN_SHOWS_ACKNOWLEDGED).toEqual({ robinhood: true, solana: true, bnb: false, arc: true, base: false, ethereum: false, monad: false }); + expect(CHAIN_SHOWS_ACKNOWLEDGED).toEqual({ robinhood: true, solana: true, bnb: false, arc: true, base: false, ethereum: false, monad: false, gnosis: false }); const group = { id: "g", kind: "platform_host" as const, chain: "bnb" as const, name: "evoevo.ai", wallet: null, registry: null, count: 7174, wallets: null }; const bnbEntry = { id: "bnb-entry", displayName: "test", protocol: "erc8004_bsc", locatorHost: "x.example" }; const bnbEvents = normalizeEvmEvents([{ ...evm, entryId: "bnb-entry" }], "erc8004_bsc"); @@ -275,7 +275,7 @@ describe("the zones of a world", () => { const solRecord = (id: string, protocol: string) => record(id, `["${protocol}"]`); it("sets Robinhood Chain out as a plate of registering wallets and a plate of identities, and leaves out the one with nothing", () => { - expect(WORLD_ARRANGEMENT).toEqual({ robinhood: "split", solana: "columns", bnb: "columns", arc: "columns", base: "columns", ethereum: "columns", monad: "columns" }); + expect(WORLD_ARRANGEMENT).toEqual({ robinhood: "split", solana: "columns", bnb: "columns", arc: "columns", base: "columns", ethereum: "columns", monad: "columns", gnosis: "columns" }); const both = buildWorldEntities("robinhood", [record("rec")], [], [], [fleet("w1", "robinhood", "wallet"), fleet("w2", "robinhood", "wallet", null, 5_593)]); const zones = worldZones("robinhood", both); expect(zones.map(zone => zone.id)).toEqual(["wallets", "identities"]); @@ -523,7 +523,7 @@ describe("the Arc world", () => { }); it("has a feed of its own, so it is not one of the worlds that show a recorded event only for the selected entry", () => { - expect([...ENTRY_EVENT_WORLDS]).toEqual(["bnb", "base", "ethereum", "monad"]); + expect([...ENTRY_EVENT_WORLDS]).toEqual(["bnb", "base", "ethereum", "monad", "gnosis"]); expect(ENTRY_EVENT_WORLDS).not.toContain("arc"); const events = normalizeEvmEvents([{ ...evm, entryId: "a1" }], "erc8004_arc"); expect(events.map(event => [event.protocol, event.id])).toEqual([["erc8004_arc", "erc8004_arc:0x123:2"]]); @@ -616,10 +616,10 @@ describe("the Base world", () => { expect(CHAIN_GROUP_REPORT.base).toEqual({ href: "/field/base-registry-2026-10-21", label: "Base registry census, 21 October 2026" }); }); - it("takes its colour from the token of Base's tab, so the page and the tab agree, and numbers the worlds one to seven", () => { + it("takes its colour from the token of Base's tab, so the page and the tab agree, and numbers the worlds one to eight", () => { const css = readFileSync(new URL("../index.css", import.meta.url), "utf8").toLowerCase(); expect(css).toContain(`--ns-chain-base: ${CHAIN_WORLDS.base.accent.toLowerCase()};`); - expect(Object.values(CHAIN_WORLDS).map(world => world.number)).toEqual(["01", "02", "03", "04", "05", "06", "07"]); + expect(Object.values(CHAIN_WORLDS).map(world => world.number)).toEqual(["01", "02", "03", "04", "05", "06", "07", "08"]); }); it("says no more than the census does: no word of an agent, a score or a verdict in what the page's model words", () => { @@ -790,3 +790,83 @@ describe("the Monad world", () => { expect(CHAIN_WORLDS.monad.description).toContain("Individual registrations are not drawn here"); }); }); + +describe("the Gnosis world", () => { + const gnosisFleet = (id: string, kind: "wallet" | "shared_link" | "platform_host", count: number, over: Partial = {}): MapFleet => ({ + id, + kind, + chain: "gnosis", + name: kind === "wallet" ? null : `${id}.example.io`, + wallet: kind === "wallet" ? "0xabc" : null, + registry: null, + count, + wallets: kind === "wallet" ? 1 : null, + ...over, + }); + const gnosisEntry = (id: string) => ({ id, displayName: `Agent #${id}`, protocol: "erc8004_gnosis", locatorHost: null }); + const original = ["robinhood", "solana", "bnb"]; + + it("is on offer only while its own switch is in the build's list, last when all five extra chains are on", () => { + expect(worldsOn("chain_gnosis")).toEqual([...original, "gnosis"]); + expect(worldsOn(" Watch , CHAIN_GNOSIS ")).toEqual([...original, "gnosis"]); + expect(worldsOn("chain_gnosis,chain_monad,chain_ethereum,chain_base,chain_arc")).toEqual([...original, "arc", "base", "ethereum", "monad", "gnosis"]); + // The other switches, and a name that only looks like it, give Gnosis no page. + for (const features of [undefined, "", "chain_arc", "chain_base", "chain_ethereum", "chain_monad", "chain_gnosisx", "gnosis", "claims"]) expect(worldsOn(features), String(features)).not.toContain("gnosis"); + }); + + it("is drawn as groups and reviewed records only, never as the entries a feed or the directory lists", () => { + expect(CHAIN_SHOWS_ACKNOWLEDGED.gnosis).toBe(false); + const rows = buildWorldEntities( + "gnosis", + [record("rec", '["erc8004_gnosis"]'), record("bnb-rec", '["erc8004_bsc"]')], + normalizeEvmEvents([{ ...evm, entryId: "ev" }], "erc8004_gnosis"), + [gnosisEntry("a1"), { ...gnosisEntry("b1"), protocol: "erc8004_bsc" }], + [gnosisFleet("h", "platform_host", 10_000), gnosisFleet("elsewhere", "wallet", 60, { chain: "base" })] + ); + expect(rows.map(row => [row.kind, row.id])).toEqual([ + ["reviewed", "rec"], + ["group", "group:h"], + ]); + expect(rows.at(-1)).toMatchObject({ protocol: "erc8004_gnosis", count: 10_000 }); + expect(rows.at(-1)!.fleet).toMatchObject({ chain: "gnosis", kind: "platform_host" }); + }); + + it("stands each group on the platform of the shared fact it counts, the host first, and a record on a plate after them", () => { + const groups = [gnosisFleet("w1", "wallet", 9_989), gnosisFleet("h1", "platform_host", 10_000), gnosisFleet("l1", "shared_link", 120), gnosisFleet("h2", "platform_host", 2_022)]; + const zones = worldZones("gnosis", buildWorldEntities("gnosis", [], [], [], groups)); + expect(zones.map(zone => zone.id)).toEqual(["platform_host", "shared_link", "wallet"]); + expect(zones.map(zone => zone.label)).toEqual(["Same host", "Same profile link", "Same registering wallet"]); + expect(zones.map(zone => zone.sublabel)).toEqual(["2 groups drawn", "1 group drawn", "1 group drawn"]); + expect(zones[0]!.groups.map(entity => entity.id)).toEqual(["group:h1", "group:h2"]); + expect(zones.flatMap(zone => zone.figures)).toEqual([]); + // A reviewed record stands on a plate of its own after the platforms. An entry the directory lists never does. + const withRecord = worldZones("gnosis", buildWorldEntities("gnosis", [record("rec", '["erc8004_gnosis"]')], [], [gnosisEntry("a1")], groups)); + expect(withRecord.map(zone => zone.id)).toEqual(["platform_host", "shared_link", "wallet", "records"]); + expect(withRecord.at(-1)!.figures.map(entity => entity.id)).toEqual(["rec"]); + // A plate with nothing on it is not drawn, and a world with nothing on it is not drawn at all. + expect(worldZones("gnosis", buildWorldEntities("gnosis", [], [], [], [gnosisFleet("w1", "wallet", 60)])).map(zone => zone.id)).toEqual(["wallet"]); + expect(worldZones("gnosis", [])).toEqual([]); + }); + + it("has no feed of its own, sets its plates in columns, names its registry, and has no census report yet", () => { + expect(ENTRY_EVENT_WORLDS).toContain("gnosis"); + expect(WORLD_ARRANGEMENT.gnosis).toBe("columns"); + expect(worldProtocolLabel("erc8004_gnosis")).toBe("ERC-8004 / Gnosis"); + expect(CHAIN_WORLDS.gnosis).toMatchObject({ number: "08", registry: "ERC-8004 / Gnosis", title: "The teal lantern" }); + expect(CHAIN_GROUP_REPORT.gnosis).toEqual({ href: "/field/gnosis-registry-2026-11-06", label: "Gnosis registry census, 6 November 2026" }); + expect(CHAIN_IDENTITY_PROTOCOLS.gnosis).toEqual(["erc8004_gnosis"]); + }); + + it("takes its colour from the token of Gnosis's tab, so the page and the tab agree", () => { + const css = readFileSync(new URL("../index.css", import.meta.url), "utf8").toLowerCase(); + expect(css).toContain(`--ns-chain-gnosis: ${CHAIN_WORLDS.gnosis.accent.toLowerCase()};`); + }); + + it("says no more than the registry does: no word of an agent, a score or a verdict in what the page's model words", () => { + const words = [CHAIN_WORLDS.gnosis.title, CHAIN_WORLDS.gnosis.subtitle, CHAIN_WORLDS.gnosis.description, CHAIN_WORLDS.gnosis.terrain].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)}]`)); + expect(CHAIN_WORLDS.gnosis.description).toContain("A group is not an agent"); + expect(CHAIN_WORLDS.gnosis.description).toContain("Individual registrations are not drawn here"); + }); +}); diff --git a/apps/nooscape-relay/client/src/lib/chainExplorerModel.ts b/apps/nooscape-relay/client/src/lib/chainExplorerModel.ts index 008d635..a182f8d 100644 --- a/apps/nooscape-relay/client/src/lib/chainExplorerModel.ts +++ b/apps/nooscape-relay/client/src/lib/chainExplorerModel.ts @@ -74,27 +74,38 @@ export const CHAIN_WORLDS = { terrain: "Loom observatory", registry: "ERC-8004 / Monad", }, + gnosis: { + title: "The teal lantern", + subtitle: "A quiet registry, read in groups.", + description: "Inspect 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. Individual registrations are not drawn here.", + accent: "#2DD4BF", + secondary: "#F0ABFC", + number: "08", + terrain: "Lantern observatory", + registry: "ERC-8004 / Gnosis", + }, } as const; export const isChainWorld = (value: string): value is ChainKey => (CHAINS as readonly string[]).includes(value); -/** The chains that have a page of their own: the original three, and Arc, Base, Ethereum and Monad while their switches are on. */ -export type WorldKey = ChainKey | "arc" | "base" | "ethereum" | "monad"; +/** The chains that have a page of their own: the original three, and Arc, Base, Ethereum, Monad and Gnosis while their switches are on. */ +export type WorldKey = ChainKey | "arc" | "base" | "ethereum" | "monad" | "gnosis"; -/** The worlds a build offers, in the order their pages are numbered. Arc, Base, Ethereum and Monad are there only while `chain_arc`, `chain_base`, `chain_ethereum` and `chain_monad` are in the build's switch list (shared/features.ts). */ +/** The worlds a build offers, in the order their pages are numbered. Arc, Base, Ethereum, Monad and Gnosis are there only while `chain_arc`, `chain_base`, `chain_ethereum`, `chain_monad` and `chain_gnosis` are in the build's switch list (shared/features.ts). */ export const worldsOn = (features: string | undefined): WorldKey[] => [ ...CHAINS, ...(featureOn("chain_arc", features) ? (["arc"] as const) : []), ...(featureOn("chain_base", features) ? (["base"] as const) : []), ...(featureOn("chain_ethereum", features) ? (["ethereum"] as const) : []), ...(featureOn("chain_monad", features) ? (["monad"] as const) : []), + ...(featureOn("chain_gnosis", features) ? (["gnosis"] as const) : []), ]; /** * The worlds that have no feed of their own: a recorded event is shown only for the entry that is selected, from the entry's own activity. - * BNB Chain has no global feed, and Base, Ethereum and Monad have none yet. Arc's page has one (docs/arc-feed-2026-11-02.md), as Robinhood Chain's + * BNB Chain has no global feed, and Base, Ethereum, Monad and Gnosis have none yet. Arc's page has one (docs/arc-feed-2026-11-02.md), as Robinhood Chain's * and Solana's have. */ -export const ENTRY_EVENT_WORLDS: readonly WorldKey[] = ["bnb", "base", "ethereum", "monad"]; +export const ENTRY_EVENT_WORLDS: readonly WorldKey[] = ["bnb", "base", "ethereum", "monad", "gnosis"]; /** Only protocols that register identities belong in the character field. Reputation and settlement ledgers are separate. */ export const CHAIN_IDENTITY_PROTOCOLS: Record = { @@ -105,6 +116,7 @@ export const CHAIN_IDENTITY_PROTOCOLS: Record = { base: ["erc8004_base"], ethereum: ["erc8004_eth"], monad: ["erc8004_monad"], + gnosis: ["erc8004_gnosis"], }; /** @@ -114,8 +126,9 @@ export const CHAIN_IDENTITY_PROTOCOLS: Record = { * its registry holds (docs/base-census-2026-10-21.md), so no single Base registration is drawn either. Ethereum is groups only as well: * the directory lists 9.4 percent of its registrations (docs/ethereum-go-live-2026-10-27.md), and most of those still show a number for a name. * Monad is groups only too: the directory lists 1.4 percent of its registrations (docs/monad-erc8004-2026-11-01.md), and many of those still show a number for a name. + * Gnosis is groups only as well: the directory lists 1.0 percent of its registrations (docs/gnosis-erc8004-2026-11-06.md), and 10 of those 41 show a number for a name. */ -export const CHAIN_SHOWS_ACKNOWLEDGED: Record = { robinhood: true, solana: true, bnb: false, arc: true, base: false, ethereum: false, monad: false }; +export const CHAIN_SHOWS_ACKNOWLEDGED: Record = { robinhood: true, solana: true, bnb: false, arc: true, base: false, ethereum: false, monad: false, gnosis: false }; /** The dated report that describes a chain's groups, where there is one. */ export const CHAIN_GROUP_REPORT: Record = { @@ -126,6 +139,7 @@ export const CHAIN_GROUP_REPORT: Record ? "erc8004_eth" : chain === "monad" ? "erc8004_monad" - : chain === "robinhood" - ? "erc8004" - : group.registry === "8004" - ? "solana_8004" - : "solana_registry"; + : chain === "gnosis" + ? "erc8004_gnosis" + : chain === "robinhood" + ? "erc8004" + : group.registry === "8004" + ? "solana_8004" + : "solana_registry"; /** Only real, visible record IDs become selectable entities. No hash-only samples or invented agents. */ export function buildWorldEntities( @@ -372,6 +388,7 @@ export function worldProtocolLabel(protocol: string) { erc8004_base: "ERC-8004 / Base", erc8004_eth: "ERC-8004 / Ethereum", erc8004_monad: "ERC-8004 / Monad", + erc8004_gnosis: "ERC-8004 / Gnosis", solana_registry: "Metaplex", solana_8004: "8004 Solana", solana_said: "SAID", @@ -394,7 +411,7 @@ export function sampledRegistryNote(chain: WorldKey, registries: ReadonlyArray<{ } /** How each world sets its zones out: Robinhood Chain a narrow plate of wallets beside a wide plate of identities, the others in a row of lanes or platforms. */ -export const WORLD_ARRANGEMENT: Record = { robinhood: "split", solana: "columns", bnb: "columns", arc: "columns", base: "columns", ethereum: "columns", monad: "columns" }; +export const WORLD_ARRANGEMENT: Record = { robinhood: "split", solana: "columns", bnb: "columns", arc: "columns", base: "columns", ethereum: "columns", monad: "columns", gnosis: "columns" }; /** A zone of a world: a plate with a name, the formations of its groups and the figures of its records. */ export type WorldZone = { id: string; label: string; sublabel: string | null; groups: ChainWorldEntity[]; figures: ChainWorldEntity[] }; @@ -416,6 +433,8 @@ const BASE_PLATFORMS = ["platform_host", "shared_link", "wallet"] as const; const ETHEREUM_PLATFORMS = BASE_PLATFORMS; /** The same for a Monad group. Monad has no template groups. */ const MONAD_PLATFORMS = BASE_PLATFORMS; +/** The same for a Gnosis group. Gnosis has no template groups. */ +const GNOSIS_PLATFORMS = BASE_PLATFORMS; /** * The zones of a world, and what stands in each. A place means only what its zone says: on Solana a registry (the one a record or a wallet @@ -445,11 +464,11 @@ export function worldZones(chain: WorldKey, entities: readonly ChainWorldEntity[ } zones.push({ id: "entries", label: "Entries", sublabel: "Reviewed records first, then a fixed sample of the entries the directory lists", groups: [], figures }); } else { - for (const kind of chain === "base" ? BASE_PLATFORMS : chain === "ethereum" ? ETHEREUM_PLATFORMS : chain === "monad" ? MONAD_PLATFORMS : BNB_PLATFORMS) { + for (const kind of chain === "base" ? BASE_PLATFORMS : chain === "ethereum" ? ETHEREUM_PLATFORMS : chain === "monad" ? MONAD_PLATFORMS : chain === "gnosis" ? GNOSIS_PLATFORMS : BNB_PLATFORMS) { const here = groups.filter(entity => entity.fleet?.kind === kind); zones.push({ id: kind, label: FLEET_KIND_LABEL[kind], sublabel: `${here.length} ${here.length === 1 ? "group" : "groups"} drawn`, groups: here, figures: [] }); } - // A reviewed BNB Chain, Base, Ethereum or Monad record would stand on a plate of its own. There is none today, and no unreviewed registration is ever drawn. + // A reviewed BNB Chain, Base, Ethereum, Monad or Gnosis record would stand on a plate of its own. There is none today, and no unreviewed registration is ever drawn. zones.push({ id: "records", label: "Reviewed records", sublabel: null, groups: [], figures }); } return zones.filter(zone => zone.groups.length + zone.figures.length > 0); diff --git a/apps/nooscape-relay/client/src/lib/claimFlow.test.ts b/apps/nooscape-relay/client/src/lib/claimFlow.test.ts index a546879..8e2bbda 100644 --- a/apps/nooscape-relay/client/src/lib/claimFlow.test.ts +++ b/apps/nooscape-relay/client/src/lib/claimFlow.test.ts @@ -129,6 +129,13 @@ describe("the chain a claim can be made on", () => { expect(claimChainLabel("erc8004_eth", "chain_monad,claims_monad")).toBeNull(); }); + it("names Gnosis only while Gnosis and its claims are both on in the build, and no other chain's switches open it", () => { + expect(claimChainLabel("erc8004_gnosis", "chain_gnosis,claims_gnosis")).toBe("Gnosis"); + expect(claimChainLabel("erc8004_gnosis", " Claims , CLAIMS_GNOSIS , Chain_Gnosis ")).toBe("Gnosis"); + for (const features of [undefined, "", "claims", "chain_gnosis", "claims_gnosis", "claims,chain_gnosis", "chain_base,claims_base,chain_ethereum,claims_ethereum,chain_arc,claims_arc,chain_monad,claims_monad"]) expect(claimChainLabel("erc8004_gnosis", features), String(features)).toBeNull(); + expect(claimChainLabel("erc8004_monad", "chain_gnosis,claims_gnosis")).toBeNull(); + }); + it("reads the build's own list when none is given, which is none in a test", () => { expect(claimChainLabel("erc8004_arc")).toBeNull(); expect(claimChainLabel("erc8004")).toBe("Robinhood Chain"); diff --git a/apps/nooscape-relay/client/src/lib/claimFlow.ts b/apps/nooscape-relay/client/src/lib/claimFlow.ts index 52ebff0..4f07766 100644 --- a/apps/nooscape-relay/client/src/lib/claimFlow.ts +++ b/apps/nooscape-relay/client/src/lib/claimFlow.ts @@ -1,5 +1,5 @@ import { normalizeClaimEdit, CLAIM_LIMITS, type ClaimEdit, type ClaimField, type ClaimProfile } from "@shared/claimProfile"; -import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, monadClaimsOn } from "@shared/features"; +import { arcClaimsOn, baseClaimsOn, ethereumClaimsOn, gnosisClaimsOn, monadClaimsOn } from "@shared/features"; import { shortWallet } from "@shared/mapFleets"; /** @@ -20,7 +20,7 @@ type ClaimPanelView = "loading" | "hidden" | "open" | "claimed" | "yours" | "hel /** * The chain name for an entry that can be claimed, or null for any other protocol. The server holds the same (`CLAIM_CHAINS`) and decides. - * Arc's, Base's, Ethereum's and Monad's are named only while that chain's claims are on in the build. + * Arc's, Base's, Ethereum's, Monad's and Gnosis's are named only while that chain's claims are on in the build. */ export const claimChainLabel = (protocol: string, features: string | undefined = import.meta.env.VITE_FEATURES): string | null => protocol === "erc8004" @@ -35,7 +35,9 @@ export const claimChainLabel = (protocol: string, features: string | undefined = ? "Ethereum" : protocol === "erc8004_monad" && monadClaimsOn(features) ? "Monad" - : null; + : protocol === "erc8004_gnosis" && gnosisClaimsOn(features) + ? "Gnosis" + : null; const sameWallet = (a: string, b: string) => a.toLowerCase() === b.toLowerCase(); diff --git a/apps/nooscape-relay/client/src/lib/glossary.ts b/apps/nooscape-relay/client/src/lib/glossary.ts index 24a8fa7..3a893b0 100644 --- a/apps/nooscape-relay/client/src/lib/glossary.ts +++ b/apps/nooscape-relay/client/src/lib/glossary.ts @@ -11,7 +11,7 @@ import { EXTRA_CHAIN_LABEL, extraChainsOn } from "@shared/chains"; * each extra chain whose switch is on in this build. With none on it is the sentence the glossary has always had. */ const REGION_NAMES = ["Robinhood Chain", "BNB Chain", "Solana", ...extraChainsOn(import.meta.env.VITE_FEATURES).map(chain => EXTRA_CHAIN_LABEL[chain])]; -const COUNT_WORD = ["no", "one", "two", "three", "four", "five", "six", "seven"]; +const COUNT_WORD = ["no", "one", "two", "three", "four", "five", "six", "seven", "eight"]; const REGIONS_SENTENCE = `${REGION_NAMES.slice(0, -1).join(", ")} and ${REGION_NAMES[REGION_NAMES.length - 1]}: the ${COUNT_WORD[REGION_NAMES.length] ?? REGION_NAMES.length} places Nooscape reads agent registries. Pick one to see only its counts.`; export type GlossaryKey = diff --git a/apps/nooscape-relay/client/src/lib/gnosisRegistryReport.ts b/apps/nooscape-relay/client/src/lib/gnosisRegistryReport.ts new file mode 100644 index 0000000..f64e3fd --- /dev/null +++ b/apps/nooscape-relay/client/src/lib/gnosisRegistryReport.ts @@ -0,0 +1,405 @@ +/** + * Every figure on the Gnosis registry census report (/field/gnosis-registry-2026-11-06), in one place. The page reads only this file, + * and client/src/pages/gnosisRegistryReport.test.ts fails if a number on the page is not one of these, if one of these does not + * appear in the measurement document, or if a total here does not add up. + * + * MEASURED holds each row of each query exactly as the query returned it, so that the document can be checked against it line by + * line. The document is docs/gnosis-census-2026-11-06.md and the queries are in docs/gnosis-census-queries-2026-11-06.sql. + * Nothing was recomputed or filtered after the run. DERIVED holds the totals and percentages the page states, each worked out here + * from MEASURED, so the page writes no figure of its own. + * + * Gnosis's data is small and lopsided (one host name, one wallet, two days, months with none), so every derived figure is defined + * for a short or empty list: a least or a most of nothing reads as zero, and the test fails on any figure that is not a finite number. + * + * A share is given to one decimal place and rounded to the nearest. + */ +export const GNOSIS_DOC = "docs/gnosis-census-2026-11-06.md"; +export const GNOSIS_SQL = "docs/gnosis-census-queries-2026-11-06.sql"; + +/** The thresholds the queries use: a wallet counts as large from this many registrations, a host name and a profile link from this many, a name is widely shared from this many. */ +export const THRESHOLDS = { largeWallet: 50, tenWallet: 10, largeHost: 50, bigLink: 50, sharedName: 10 } as const; + +/** + * What the page says about the chain: its id, the hand-out hour in blocks (`handoutBlockWindow` in server/ingestion/erc8004Chains.ts), + * the most registry rows one host may keep (`FLOOD_HOST_ROW_CAP`), and the blocks whose times were read from a node on 2026-11-06: + * the registry's first block and the finalized block that the last stretch runs to. + * + * Gnosis's block time is close to constant, about 5.1 to 5.2 seconds a block (`blockSecondsLow` and `blockSecondsHigh` are the lowest and + * the highest rate of the stretches, to one decimal place), with a slot missed now and then. So there is no second rate for the days: + * the queries date a day and a month through the same `stretches` stretches of `stretchBlocks` blocks, from the first block to the + * finalized block (the last stretch is the shorter), each with a start block, its time and its seconds a block read from the chain. + * `dateErrorMinutes` is how far a date was from the real block time at the worst of the `dateChecked` registrations whose logs carry + * a block time, and `dateMedianErrorMinutes` the median. `dayWindow` is how many days query 10a looks back from the newest + * registration's day. + */ +export const CHAIN = { + id: 100, + handoutBlocks: 708, + hostRowCap: 2_000, + firstBlock: 44_505_010, + firstBlockTime: "2026-02-04 09:49:00", + recentBlock: 49_146_890, + recentBlockTime: "2026-11-06 23:11:40", + stretches: 19, + stretchBlocks: 250_000, + blockSecondsLow: 5.1, + blockSecondsHigh: 5.2, + dayWindow: 21, + dateChecked: 4_179, + dateErrorMinutes: 148, + dateMedianErrorMinutes: 1.6, +} as const; + +/** + * Figures that are not from the queries, read from GET /api/v1/stats on 2026-11-06 at 23:17 UTC: the public count of listed entries, + * and the public count of registrations on the chain. No registration is hidden, so the first is the same as query 0's entries, and + * the second is the registrations stored plus the registrations counted past a host's cap. + */ +export const PUBLIC = { listed: 41, onChain: 4_179 } as const; + +/** The first rule that reaches a registration the listing rules hold out, as query 7 words it. The rules run in this order. */ +export const RULES = { link: "profile link shared by 2 or more", host: "host shared by 50 or more", wallet: "wallet that registered 10 or more" } as const; + +/** Query 0: the registrations stored, how many are hidden, when a pass first and last saw one, when the source last succeeded, and how many the directory lists. */ +export type Q0Row = readonly [registrations: number, hidden: number, firstSeen: string, lastSeen: string, lastSuccess: string, inDirectory: number]; +/** Query 0b: the flood cap: the hosts past it, the registrations counted and not stored for them, and the largest host's. */ +export type Q0bRow = readonly [hostsPastTheCap: number, countedNotStored: number, largestHostOverflow: number]; +/** Query 1: size and surface. */ +export type Q1Row = readonly [registrations: number, wallets: number, noWallet: number, withHttpsHost: number, hosts: number, distinctProfileLinks: number, noUriSet: number, mintMeasured: number]; +/** Query 2: a size bucket of registrations made by one wallet, how many wallets fall in it, the registrations they made, and the largest in it. */ +export type Q2Row = readonly [bucket: string, wallets: number, registrations: number, largest: number]; +/** Query 3: the 25 largest wallets that made the large-wallet threshold or more, by size and never by address. Fewer come back when fewer wallets reach it. */ +export type Q3Row = readonly [walletRank: number, registrations: number, withHttpsHost: number, onItsLargestHost: number, hosts: number, links: number]; +/** Query 3b: all the wallets that made the large-wallet threshold or more, in one row. */ +type Q3bRow = readonly [wallets: number, registrations: number, largest: number]; +/** Query 4: the ten largest host names by size and never by name. Fewer come back when fewer host names exist. */ +export type Q4Row = readonly [hostRank: number, registrations: number]; +/** Query 4b: all the host names that hold the large-host threshold or more registrations, in one row. */ +type Q4bRow = readonly [hosts: number, registrations: number, largest: number]; +/** Query 5: profile links by how many registrations use one. */ +export type Q5Row = readonly [bucket: string, links: number, registrations: number, largest: number, withHttpsHost: number]; +/** Query 6: names. */ +export type Q6Row = readonly [registrations: number, placeholder: number, distinctNames: number, sharingAName: number, inNamesSharedBy10OrMore: number, largestNameGroup: number]; +/** Query 7: what the listing rules did, by state and by the first rule that reached a registration held out. */ +export type Q7Row = readonly [listing: number, state: string, firstRule: string, registrations: number]; +/** Query 8: the totals the directory keeps for each registration's chain activity. */ +export type Q8Row = readonly [ + registrations: number, + mintMeasured: number, + coveredByTheWalk: number, + transfersAfterMint: number, + handouts: number, + changedHands: number, + handedOut: number, + profileLinkEdits: number, + edited: number, +]; +/** Query 9: the activity ledger by kind of event. */ +export type Q9Row = readonly [kind: string, events: number, registrations: number, oldestBlock: number, newestBlock: number]; +/** Query 10a: registrations in each UTC day, among the days of the window, that has one. */ +type Q10aRow = readonly [utcDay: string, registrations: number]; +/** Query 10b: registrations in each UTC month that has one. */ +type Q10bRow = readonly [utcMonth: string, registrations: number]; + +export const MEASURED = { + date: "2026-11-06", + q0: [[2328, 0, "2026-11-06 21:11:32", "2026-11-06 21:12:30", "2026-11-06 21:12:38", 41]] satisfies Q0Row[], + q0b: [[1, 1851, 1851]] satisfies Q0bRow[], + q1: [[2328, 52, 0, 2051, 8, 2295, 8, 2328]] satisfies Q1Row[], + q2: [ + ["1", 21, 21, 1], + ["2-9", 5, 22, 8], + ["10-49", 25, 285, 34], + ["1000+", 1, 2000, 2000], + ] satisfies Q2Row[], + q3: [[1, 2000, 2000, 2000, 1, 2000]] satisfies Q3Row[], + q3b: [[1, 2000, 2000]] satisfies Q3bRow[], + q4: [ + [1, 2000], + [2, 33], + [3, 11], + [4, 3], + [5, 1], + [6, 1], + [7, 1], + [8, 1], + ] satisfies Q4Row[], + q4b: [[1, 2000, 2000]] satisfies Q4bRow[], + q5: [ + ["1", 2284, 2284, 1, 2015], + ["2-9", 9, 25, 5, 25], + ["10-49", 1, 11, 11, 11], + ] satisfies Q5Row[], + q6: [[2328, 2064, 244, 40, 0, 2]] satisfies Q6Row[], + q7: [ + [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], + ] satisfies Q7Row[], + q8: [[2328, 2328, 2328, 5, 4, 5, 4, 49, 24]] satisfies Q8Row[], + q9: [ + ["mint", 2328, 2328, 44506402, 48805644], + ["secondary", 5, 5, 45119618, 45211076], + ["uri_update", 49, 24, 44720956, 47894843], + ] satisfies Q9Row[], + q10a: [ + ["2026-10-09", 1], + ["2026-10-17", 1], + ] satisfies Q10aRow[], + q10b: [ + ["2026-02", 2015], + ["2026-03", 273], + ["2026-04", 23], + ["2026-06", 14], + ["2026-08", 1], + ["2026-10", 2], + ] satisfies Q10bRow[], +} as const; + +/** A share of a whole, as a percent to one decimal place. */ +export const percent = (part: number, whole: number): number => Math.round((part / whole) * 1000) / 10; +export const formatPercent = (value: number): string => `${value.toFixed(1)}%`; + +const sum = (values: readonly number[]): number => values.reduce((total, value) => total + value, 0); +/** The least and the most of a list. A list with nothing in it has neither, and reads as zero, so that no figure is Infinity or NaN. */ +const least = (values: readonly number[]): number => (values.length === 0 ? 0 : Math.min(...values)); +const most = (values: readonly number[]): number => (values.length === 0 ? 0 : Math.max(...values)); + +const q0: Q0Row = MEASURED.q0[0]; +const q0b: Q0bRow = MEASURED.q0b[0]; +const q1: Q1Row = MEASURED.q1[0]; +const q3b: Q3bRow = MEASURED.q3b[0]; +const q4b: Q4bRow = MEASURED.q4b[0]; +const q6: Q6Row = MEASURED.q6[0]; +const q8: Q8Row = MEASURED.q8[0]; + +/** A bucket the query did not return has nothing in it, so it reads as zero. */ +const walletBucket = (name: string): Q2Row => MEASURED.q2.find(row => row[0] === name) ?? [name, 0, 0, 0]; +const linkBucket = (name: string): Q5Row => MEASURED.q5.find(row => row[0] === name) ?? [name, 0, 0, 0, 0]; +const host = (rank: number): number => MEASURED.q4.find(row => row[0] === rank)?.[1] ?? 0; +const listingRows = (listing: number): number => sum(MEASURED.q7.filter(row => row[0] === listing).map(row => row[3])); +const firstRule = (rule: string): number => sum(MEASURED.q7.filter(row => row[2] === rule).map(row => row[3])); + +/** The registry as the directory holds it, named for what each figure is. */ +export const REGISTRY = { + /** The registrations the directory has stored: the rows the queries count. */ + registrations: q1[0], + hidden: q0[1], + /** The entries the directory holds for the registry, hidden or not. */ + listed: q0[5], + wallets: q1[1], + noWallet: q1[2], + withHttpsHost: q1[3], + hosts: q1[4], + /** The different profile links recorded, not counting the registrations that set none (they share the hash of the empty link, which is one value). */ + profileLinks: q1[5] - (q1[6] > 0 ? 1 : 0), + noUriSet: q1[6], + mintMeasured: q1[7], + /** The registrations counted and not stored, because their host was past the cap. */ + overflow: q0b[1], + /** Every registration the directory has counted on the chain: stored and counted. */ + onChain: q1[0] + q0b[1], +}; + +const registrations = REGISTRY.registrations; +const one = walletBucket("1"); +const ten = walletBucket("10-49"); +/** The largest bucket of query 2 that has a wallet in it: the last row the query returned. */ +const topWalletBucket: Q2Row = MEASURED.q2[MEASURED.q2.length - 1] ?? ["", 0, 0, 0]; +/** The largest wallet outside the largest bucket. The largest bucket holds one wallet, so this is the next largest wallet of all. */ +const nextLargestWallet = most(MEASURED.q2.filter(row => row[0] !== topWalletBucket[0]).map(row => row[3])); +const largeWalletCount = q3b[0]; +const largeWalletRegistrations = q3b[1]; +const tenOrMoreWallets = ten[1] + largeWalletCount; +const tenOrMoreRegistrations = ten[2] + largeWalletRegistrations; + +const wallets: readonly Q3Row[] = MEASURED.q3; +const onOneHost = wallets.filter(row => row[2] > 0 && row[1] === row[2] && row[2] === row[3]); +const withoutAHost = wallets.filter(row => row[2] === 0); +const ownLinkEach = wallets.filter(row => row[5] === row[1]); +const oneLinkForAll = wallets.filter(row => row[5] === 1); + +const sharedLinks = MEASURED.q5.filter(row => row[0] !== "1"); +/** The links used by 50 or more registrations: neither of these buckets came back, so both read as zero. */ +const bigLinks = [linkBucket("50-999"), linkBucket("1000+")]; +const links = sum(MEASURED.q5.map(row => row[1])); + +const days = MEASURED.q10a; +const months = MEASURED.q10b; +const firstMonth = months[0] ?? ["", 0]; +const laterMonths = months.slice(1); +const passDay = q0[4].slice(0, 10); +const passMonth = passDay.slice(0, 7); +const firstDay = days[0]?.[0] ?? ""; +const lastDay = days[days.length - 1]?.[0] ?? ""; +/** A month written YYYY-MM as a count of months, and back, so that the months between two of them can be listed. */ +const monthNumber = (label: string): number => Number(label.slice(0, 4)) * 12 + Number(label.slice(5, 7)) - 1; +const monthLabel = (index: number): string => `${Math.floor(index / 12)}-${String((index % 12) + 1).padStart(2, "0")}`; +/** The months after the first and before the month of the pass: whole months, with a registration stored in them or not. */ +const wholeLaterMonths = Array.from({ length: Math.max(0, monthNumber(passMonth) - monthNumber(firstMonth[0]) - 1) }, (_, index) => monthLabel(monthNumber(firstMonth[0]) + 1 + index)); +/** The whole months after the first in which no registration is stored: the query returns no row for a month with none. */ +const monthsWithNone = wholeLaterMonths.filter(label => !months.some(row => row[0] === label)); +/** Whole days from one UTC date to another, both written YYYY-MM-DD. */ +const daysBetween = (from: string, to: string): number => Math.round((Date.parse(`${to}T00:00:00Z`) - Date.parse(`${from}T00:00:00Z`)) / 86_400_000); + +export const DERIVED = { + /** What the listing rules did, over every registration stored. */ + listing: { + listed: listingRows(1), + listedPercent: percent(listingRows(1), registrations), + /** The same listed entries as a share of every registration the directory has counted on the chain, stored or not. */ + listedOfChainPercent: percent(listingRows(1), REGISTRY.onChain), + noLink: listingRows(0), + noLinkPercent: percent(listingRows(0), registrations), + heldOut: listingRows(2), + heldOutPercent: percent(listingRows(2), registrations), + byLink: firstRule(RULES.link), + byLinkPercent: percent(firstRule(RULES.link), registrations), + byHost: firstRule(RULES.host), + byHostPercent: percent(firstRule(RULES.host), registrations), + byWallet: firstRule(RULES.wallet), + numberOnly: listingRows(4), + }, + /** Which wallets made the registrations. */ + wallets: { + withOne: one[1], + withOnePercent: percent(one[1], REGISTRY.wallets), + withOneRegistrations: one[2], + withOneRegistrationsPercent: percent(one[2], registrations), + /** The wallets that registered 50 or more, and what they made. The page words it in the singular: a test holds that it is one. */ + large: largeWalletCount, + largeRegistrations: largeWalletRegistrations, + largePercent: percent(largeWalletRegistrations, registrations), + tenOrMore: tenOrMoreWallets, + tenOrMoreRegistrations, + tenOrMorePercent: percent(tenOrMoreRegistrations, registrations), + /** The largest bucket query 2 returned: its label and its wallets (the page words it as one wallet; a test holds that it is one). */ + topBucket: topWalletBucket[0], + topBucketWallets: topWalletBucket[1], + /** The most any wallet made outside the largest bucket. */ + nextLargest: nextLargestWallet, + }, + /** The wallets of query 3, and how their registrations are spread across host names and profile links. */ + largeWallets: { + shown: wallets.length, + registrations: sum(wallets.map(row => row[1])), + onOneHost: onOneHost.length, + withoutAHost: withoutAHost.length, + ownLinkEach: ownLinkEach.length, + oneLinkForAll: oneLinkForAll.length, + between: wallets.length - ownLinkEach.length - oneLinkForAll.length, + }, + /** Host names, by size, and the host row cap. A host past the cap keeps `CHAIN.hostRowCap` rows, so query 4 shows it at that size. */ + hosts: { + withHttps: REGISTRY.withHttpsHost, + withHttpsPercent: percent(REGISTRY.withHttpsHost, registrations), + withoutHost: registrations - REGISTRY.withHttpsHost, + withoutHostPercent: percent(registrations - REGISTRY.withHttpsHost, registrations), + largest: host(1), + largestPercent: percent(host(1), REGISTRY.withHttpsHost), + largestOfAllPercent: percent(host(1), registrations), + second: host(2), + secondPercent: percent(host(2), REGISTRY.withHttpsHost), + third: host(3), + twoLargest: host(1) + host(2), + twoLargestPercent: percent(host(1) + host(2), REGISTRY.withHttpsHost), + atLeastThreshold: q4b[0], + atLeastThresholdRegistrations: q4b[1], + atLeastThresholdPercent: percent(q4b[1], REGISTRY.withHttpsHost), + atLeastThresholdOfAllPercent: percent(q4b[1], registrations), + /** The hosts past the cap, and the registrations counted and not stored for them. */ + pastTheCap: q0b[0], + overflow: q0b[1], + overflowLargest: q0b[2], + /** What the host past the cap holds in all: the rows kept and the registrations counted, and that as a share of the registrations on the chain. */ + largestHeld: host(1) + q0b[2], + largestHeldPercent: percent(host(1) + q0b[2], REGISTRY.onChain), + overflowPercent: percent(q0b[1], REGISTRY.onChain), + }, + /** Profile links, by how many registrations use one. */ + links: { + total: links, + usedOnce: linkBucket("1")[1], + usedOncePercent: percent(linkBucket("1")[1], links), + shared: sum(sharedLinks.map(row => row[1])), + sharedRegistrations: sum(sharedLinks.map(row => row[2])), + sharedRegistrationsPercent: percent(sum(sharedLinks.map(row => row[2])), registrations), + /** The links used by 50 or more registrations, and the registrations on them: none came back, and the page says so. */ + big: sum(bigLinks.map(row => row[1])), + bigRegistrations: sum(bigLinks.map(row => row[2])), + /** The most registrations any one link has. */ + largest: most(MEASURED.q5.map(row => row[3])), + largestPercent: percent(most(MEASURED.q5.map(row => row[3])), registrations), + }, + /** Names. */ + names: { + placeholder: q6[1], + placeholderPercent: percent(q6[1], registrations), + named: registrations - q6[1], + distinct: q6[2], + sharing: q6[3], + sharingPercent: percent(q6[3], registrations), + sharedByTenOrMore: q6[4], + largestGroup: q6[5], + }, + /** What the chain records for each registration: transfers after the mint, hand-outs and profile-link edits. */ + activity: { + measured: q8[2], + transfers: q8[3], + changedHands: q8[5], + changedHandsPercent: percent(q8[5], registrations), + noTransfer: registrations - q8[5], + noTransferPercent: percent(registrations - q8[5], registrations), + handouts: q8[4], + handedOut: q8[6], + handedOutPercent: percent(q8[6], registrations), + /** Transfers that were not a hand-out: they came later than the first hour, or from a wallet other than the one the registration was minted to. The page words it as one transfer. */ + laterTransfers: q8[3] - q8[4], + edits: q8[7], + edited: q8[8], + editedPercent: percent(q8[8], registrations), + }, + /** When the registrations were made, in UTC months and days worked out from the mint block's time. */ + time: { + /** The months the query returned: the ones that have a registration. */ + months: months.length, + firstMonth: firstMonth[0], + firstMonthRegistrations: firstMonth[1], + firstMonthPercent: percent(firstMonth[1], registrations), + /** The whole months between the first month and the month of the pass, with a registration stored in them or not. */ + wholeLaterMonths: wholeLaterMonths.length, + /** Of those, the months that have a registration, the registrations in them, and the least and the most in one of them. */ + laterMonths: laterMonths.length, + laterMonthsRegistrations: sum(laterMonths.map(row => row[1])), + laterMonthsPercent: percent(sum(laterMonths.map(row => row[1])), registrations), + laterLow: least(laterMonths.map(row => row[1])), + laterHigh: most(laterMonths.map(row => row[1])), + /** And the months that have none. */ + monthsWithNone, + monthsWithNoneCount: monthsWithNone.length, + /** The month of the pass the census is counted from, and the registrations stored in it so far. */ + passMonth, + passMonthRegistrations: months.find(row => row[0] === passMonth)?.[1] ?? 0, + /** The days of the window that have a registration, and the days of it that have none. */ + days: days.length, + daysWithNone: CHAIN.dayWindow - days.length, + firstDay, + /** The last day the query returned is the day of the newest stored registration, which is where the window ends. */ + lastDay, + daysRegistrations: sum(days.map(row => row[1])), + daysPercent: percent(sum(days.map(row => row[1])), registrations), + /** The least and the most registrations in one day that has any. The page words it as one each: a test holds that. */ + dayLeast: least(days.map(row => row[1])), + dayMost: most(days.map(row => row[1])), + /** The UTC day of the pass the census is counted from, and how many days after the newest stored registration it fell. */ + passDay, + daysBeforeThePass: daysBetween(lastDay, passDay), + }, + /** Query 0, for the header: the time of day, UTC, that the registry's source last succeeded. */ + passTime: q0[4].slice(11, 16), +} as const; + +export const PASS_TIME = `${DERIVED.passTime} UTC`; diff --git a/apps/nooscape-relay/client/src/lib/statusModel.ts b/apps/nooscape-relay/client/src/lib/statusModel.ts index f8e55dc..54bc5dd 100644 --- a/apps/nooscape-relay/client/src/lib/statusModel.ts +++ b/apps/nooscape-relay/client/src/lib/statusModel.ts @@ -16,6 +16,7 @@ export const FRESHNESS_HOURS: Readonly> = { erc8004_arc: 12, erc8004_eth: 36, erc8004_monad: 36, + erc8004_gnosis: 36, }; export type SourceReading = { diff --git a/apps/nooscape-relay/client/src/lib/trademarkMark.test.ts b/apps/nooscape-relay/client/src/lib/trademarkMark.test.ts new file mode 100644 index 0000000..160a224 --- /dev/null +++ b/apps/nooscape-relay/client/src/lib/trademarkMark.test.ts @@ -0,0 +1,33 @@ +import { readdirSync, readFileSync } from "node:fs"; +import path from "node:path"; +import { describe, expect, it } from "vitest"; + +/** + * The trademark symbol is on the site once and in the README once (the operator's order of 2026-11-07): after the name in the footer's ownership + * line, "Nooscape™ is run by RunTimeAdmin.", and after the name in the README's title. A mark costs nothing and needs no more than that; + * written after every mention it would be noise on a page that is about facts. This holds the site to its one place. The README is not read + * here: a test that names README.md makes the CI scope count every README.md in the repository as read by a test (it matches on the file's + * name), so a change to the docs index would no longer count as documentation only. + */ +const app = path.resolve(import.meta.dirname, "..", "..", ".."); +const MARK = /™|™|™|™/gi; + +function sources(directory: string): string[] { + return readdirSync(directory, { withFileTypes: true }).flatMap(entry => { + const full = path.join(directory, entry.name); + if (entry.isDirectory()) return entry.name === "node_modules" || entry.name === "dist" ? [] : sources(full); + return /\.(tsx?|html)$/.test(entry.name) && !/\.test\.tsx?$/.test(entry.name) ? [full] : []; + }); +} + +describe("the trademark mark", () => { + it("is on the site once, on the footer's ownership line", () => { + const files = ["client", "server", "shared"].flatMap(folder => sources(path.join(app, folder))); + const found = files.flatMap(file => (readFileSync(file, "utf8").match(MARK) ?? []).map(() => path.relative(app, file).replaceAll("\\", "/"))); + + expect(found).toEqual(["client/src/pages/Home.tsx"]); + const home = readFileSync(path.join(app, "client", "src", "pages", "Home.tsx"), "utf8"); + expect(home).toContain("Nooscape. A public agent observatory. Nooscape has issued no token on any chain"); + expect(home).toContain("Nooscape™ is run by RunTimeAdmin.

"); + }); +}); diff --git a/apps/nooscape-relay/client/src/pages/ArcRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/ArcRegistryReport.tsx index 3f17360..1206cae 100644 --- a/apps/nooscape-relay/client/src/pages/ArcRegistryReport.tsx +++ b/apps/nooscape-relay/client/src/pages/ArcRegistryReport.tsx @@ -1,5 +1,6 @@ import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/arcRegistryReport"; import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage"; +import { CensusToday } from "@/components/CensusToday"; /** * A dated census of the ERC-8004 identity registry on Arc as the directory holds it. It is a report, not a directory: it lists no @@ -42,6 +43,7 @@ export default function ArcRegistryReport() {
Counted from
the registry pass that finished at {PASS_TIME}
+

How it was done

diff --git a/apps/nooscape-relay/client/src/pages/ArcRegistryReport20261106.tsx b/apps/nooscape-relay/client/src/pages/ArcRegistryReport20261106.tsx index ce112c9..6af9ce3 100644 --- a/apps/nooscape-relay/client/src/pages/ArcRegistryReport20261106.tsx +++ b/apps/nooscape-relay/client/src/pages/ArcRegistryReport20261106.tsx @@ -1,6 +1,7 @@ import { Link } from "wouter"; import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, PREVIOUS, PUBLIC, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/arcRegistryReport20261106"; import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage"; +import { CensusToday } from "@/components/CensusToday"; /** * The census of 2026-11-06 of the ERC-8004 identity registry on Arc as the directory holds it, the second one: the first, of @@ -46,6 +47,7 @@ export default function ArcRegistryReport20261106() {
Counted from
the registry pass that finished at {PASS_TIME}
+

How it was done

diff --git a/apps/nooscape-relay/client/src/pages/BaseRegistryReport.tsx b/apps/nooscape-relay/client/src/pages/BaseRegistryReport.tsx index c7d1d3a..9b6f023 100644 --- a/apps/nooscape-relay/client/src/pages/BaseRegistryReport.tsx +++ b/apps/nooscape-relay/client/src/pages/BaseRegistryReport.tsx @@ -1,5 +1,6 @@ import { CHAIN, DERIVED as d, MEASURED, PASS_TIME, REGISTRY, RULES, THRESHOLDS, formatPercent as pc } from "@/lib/baseRegistryReport"; import { InfoPage, headingClass, listClass, textClass } from "@/components/InfoPage"; +import { CensusToday } from "@/components/CensusToday"; /** * A dated census of the ERC-8004 identity registry on Base as the directory holds it. It is a report, not a directory: it lists no @@ -24,6 +25,13 @@ const SURFACE: ReadonlyArray = [ ["Different profile links", REGISTRY.profileLinks], ]; +/** + * Said under the Today table. The report was measured before the rows already stored past a host's cap were cleared on the day of the + * cap (docs/flood-host-cap-2026-10-21.md), so four of its counts fell by the size of one platform's flood without a registration lost. + */ +const TODAY_NOTE = + "Since 2026-10-21 the directory has capped the rows it stores for one host name and counts the registrations past the cap without storing them. This report was measured before the rows already stored past that cap were cleared the same day, so today's counts of stored registrations, registering wallets, registrations with an https link and different profile links are not comparable with the report's. Those registrations were not lost: they are counted and not stored."; + /** What the listing rules did, in the order the table shows it. */ const LISTING: ReadonlyArray = [ ["Listed in the directory", d.listing.listed], @@ -46,6 +54,7 @@ export default function BaseRegistryReport() {
Counted from
the registry pass that finished at {PASS_TIME}
+

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."}
@@ -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

    +
    + + + + + + + + + + {SURFACE.map(([label, count]) => ( + + + + + ))} + +
    Size and surface of the registry
    What was countedCount
    {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. +

    +
    + + + + + + + + + + {LISTING.map(([label, count]) => ( + + + + + ))} + +
    Registrations by what the listing rules did with them
    What happenedRegistrations
    {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)}). +

    +
    + + + + + + + + + + + {MEASURED.q2.map(row => ( + + + + + + ))} + +
    Registrations made by one wallet, in size buckets
    Registrations made by one walletWalletsRegistrations
    {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. +

    +
    + + + + + + + + + + {MEASURED.q4.map(row => ( + + + + + ))} + +
    Registrations stored for each host name, by size; no host is named
    Host name, by sizeRegistrations
    {PLACE[row[0] - 1]}{n(row[1])}
    +
    +
    + +
    + +

    + {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). +

    +
    + + + + + + + + + + + {MEASURED.q5.map(row => ( + + + + + + ))} + +
    Profile links by how many registrations use one
    Registrations using one linkLinksRegistrations
    {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. +

    +
    + + + + + + + + + + {MEASURED.q10b.map(row => ( + + + + + ))} + +
    Registrations in each UTC month that has one
    UTC monthRegistrations
    {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. +

    +
    + + + + + + + + + + {MEASURED.q10a.map(row => ( + + + + + ))} + +
    Registrations in each UTC day that has one, among the {n(CHAIN.dayWindow)} days that end on {d.time.lastDay}
    UTC dayRegistrations
    {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.