Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(crons): correct the quoted cron count and pin it to vercel.json with a test
nirholas30ce3bb602d8
diff --git a/CLAUDE.md b/CLAUDE.mdindex 58df6c76d..708844cad 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -222,7 +222,7 @@ We have strong product-level docs (README, STRUCTURE.md, changelog) but feature-Match the doc to the kind of work. Do every layer that applies, skip the ones that don't:- **New page or public route** → add it to `data/pages.json` (path, title, description, `added` date). This feeds the sitemap, `llms.txt`, `features.json`, and the changelog automatically. This is the one mandatory step for anything user-reachable.-- **New SDK, package, worker, service, or top-level directory** → a `README.md` *in that directory* is required: what it does, how to install/use it, its public API/exports, and one runnable example. New package under `packages/*`, new `workers/<name>/`, new SDK: no exceptions. Coverage under `packages/`, `workers/`, and `services/` is currently 100% (64/32/3 dirs, all with a README). That is a standard to hold, not a stat to admire: the next directory that lands without one breaks it.+- **New SDK, package, worker, service, or top-level directory** → a `README.md` *in that directory* is required: what it does, how to install/use it, its public API/exports, and one runnable example. New package under `packages/*`, new `workers/<name>/`, new SDK: no exceptions. Coverage under `packages/`, `workers/`, and `services/` is currently 100% (67/32/4 dirs, all with a README). That is a standard to hold, not a stat to admire: the next directory that lands without one breaks it.- **New product surface or directory** → add a row to `STRUCTURE.md` mapping it to its location and status. Nothing enforces this in CI, so it's on you. If you moved or graduated a surface, update its existing row.- **New developer-facing capability** (API endpoint, MCP tool, protocol, integration, CLI) → add or update the relevant file in `docs/` (`docs/api-reference.md`, `docs/mcp.md`, `docs/tutorials/*`, etc.). Follow the format of the neighboring docs in that folder. A genuinely new subsystem gets its own `docs/<feature>.md` linked from `docs/start-here.md`.- **New load-bearing contract or wire format** (manifest schema, on-chain interface, embed protocol, permission model) → write or update the spec in `specs/`. Specs are contracts other code depends on, not tutorials.diff --git a/README.md b/README.mdindex a66b18aaa..b67a20607 100644--- a/README.md+++ b/README.md@@ -9983,7 +9983,7 @@ The full OpenAPI 3.1 spec is available at `/openapi.json`. The key API surface iCron schedules are declared in `vercel.json` (still the live cron/route config the server reads) and executed in production by **Google Cloud Scheduler**, which calls each endpoint on its schedule. All cron endpoints are fail-closed — a missing auth token aborts with an error rather than silently skipping (see [Security Hardening](#security-hardening)).-The 105 crons in `vercel.json` are routed through a single dynamic handler at [`api/cron/[name].js`](api/cron/[name].js); the `name` segment selects the handler function. Scheduler jobs are provisioned from the `vercel.json` cron list via [scripts/create-gcp-scheduler.mjs](scripts/create-gcp-scheduler.mjs); the schedules below match `vercel.json` verbatim.+The crons in `vercel.json` (107 entries on 2026-08-14) are routed through a single dynamic handler at [`api/cron/[name].js`](api/cron/[name].js); the `name` segment selects the handler function. Scheduler jobs are provisioned from the `vercel.json` cron list via [scripts/create-gcp-scheduler.mjs](scripts/create-gcp-scheduler.mjs). The table below is a selection of the notable jobs, each schedule quoted verbatim from `vercel.json`; that file is the complete list.| Schedule | Endpoint | Purpose || -------------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |diff --git a/docs/build.md b/docs/build.mdindex 008ba6ffb..6de447017 100644--- a/docs/build.md+++ b/docs/build.md@@ -41,9 +41,11 @@ skips `npm ci`), pushes the image, deploys it to Cloud Run in one run, and thesweeps every registered page on the live site. The image copies thealready-built `dist/` and runs `server/index.mjs`, which serves the staticfront-end, the `vercel.json` route table, and every `api/**` handler from source-(no per-route bundling). The scheduled jobs (103 crons in `vercel.json` at last-count) run on **Google Cloud Scheduler** driven off the `vercel.json` cron-list; there is **no GitHub Actions CI**. Full runbook: [docs/ops/gcp-production.md](./ops/gcp-production.md).+(no per-route bundling). The scheduled jobs run on **Google Cloud Scheduler**,+provisioned from the `crons` array in `vercel.json` by+[scripts/create-gcp-scheduler.mjs](../scripts/create-gcp-scheduler.mjs); that+array is the count, so read it there rather than trusting a number quoted here+(107 entries on 2026-08-14). There is **no GitHub Actions CI**. Full runbook: [docs/ops/gcp-production.md](./ops/gcp-production.md).`.npmrc` sets `legacy-peer-deps=true` (npm never auto-installs peers — thereason `audit:deploy` checks the peer tree), and `engines.node` pins Nodediff --git a/tests/cron-scheduler-sync.test.js b/tests/cron-scheduler-sync.test.jsindex 8e371f159..47cca0072 100644--- a/tests/cron-scheduler-sync.test.js+++ b/tests/cron-scheduler-sync.test.js@@ -81,3 +81,36 @@ describe('cronSecretFromArgs', () => {expect(cronSecretFromArgs(['--env-file', 'prod.env'], () => 'DATABASE_URL=x\n')).toBe(null);});});++// The cron count is quoted as a literal in prose across the repo, and every copy+// rots the moment a cron lands: on 2026-08-14 vercel.json held 107 while+// README.md said 105 and docs/build.md said 103. scripts/check-claude-md.mjs+// already pins the number in CLAUDE.md; this covers the other prose that states+// it, so adding a cron fails here instead of silently making three docs wrong.+describe('the documented cron count', () => {+ const QUOTING_FILES = ['README.md', 'docs/build.md'];+ // Only "<N> crons/entries in vercel.json" phrasings. Incident write-ups that+ // count crons which SKIPPED (docs/ops/db-retention.md, production-log-triage)+ // are historical records of a different quantity and must not be swept in.+ const QUOTED = /\((\d{2,4}) entries on \d{4}-\d{2}-\d{2}\)|\b(\d{2,4}) crons in `vercel\.json`/g;++ it('matches the vercel.json crons array everywhere it is stated', () => {+ const expected = JSON.parse(readFileSync('vercel.json', 'utf8')).crons.length;+ const wrong = [];+ let quotes = 0;+ for (const file of QUOTING_FILES) {+ const text = readFileSync(file, 'utf8');+ for (const m of text.matchAll(QUOTED)) {+ quotes += 1;+ const stated = Number(m[1] ?? m[2]);+ if (stated === expected) continue;+ const line = text.slice(0, m.index).split('\n').length;+ wrong.push(`${file}:${line} says ${stated}, vercel.json declares ${expected}`);+ }+ }+ expect(wrong, `stale cron counts:\n ${wrong.join('\n ')}`).toEqual([]);+ expect(quotes, 'the count pattern matched nothing; the prose was reworded').toBeGreaterThanOrEqual(+ QUOTING_FILES.length,+ );+ });+});