AGENTS.md@packages/api-routesA

AGENTS.md@packages/api-routes from canonry/canonry is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add canonry/canonry/packages/api-routes/AGENTS.md@git:20261015.9ce35e0

Pins git:20261015.9ce35e0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
canonry/canonry
Path
packages/api-routes/AGENTS.md
Versions recorded
47
Latest version
git:20261015.9ce35e0, committed Oct 15, 2026
First version recorded
Aug 17, 2026
Size
138,624 bytes
Repository stars
187
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# api-routes

## Purpose

Shared Fastify route plugins used by both the local server (`packages/canonry`) and the cloud API (`apps/api`). This is the HTTP surface for the entire platform — ~180 operations across ~27 route files.

## Key Files

| File | Role |
|------|------|
| `src/status.ts` | Stored integration status, scoped to visible projects; shares doctor failure readers and freshness constants without running doctor checks. |
| `src/index.ts` | Plugin entry point, global error handler, `ApiRoutesOptions` interface |
| `src/helpers.ts` | `resolveProject()`, `writeAuditLog()`, `incrementUsage()`, `notProbeRun()` Drizzle predicate (see "Probe runs") |
| `src/auth.ts` | Auth plugin: API key and session validation, scope gates (see "Deployment posture and key authority") |
| `src/keys.ts` | API key management routes: `/keys` list, self, mint, revoke |
| `src/request-context.ts` / `src/runtime-logger.ts` / `src/operational-logs.ts` | Request-local actor context; shared redacting logger; `GET /operations/logs` reader |
| `src/openapi.ts` | OpenAPI spec generation, the source of the generated SDK (see "Typed responses") |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add canonry/canonry/packages/api-routes/AGENTS.md@sha256:7a62ddd703d3cd34

The line at the top of this page pins the label git:20261015.9ce35e0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_av3fdribd5nrisg7.svg)](https://markdownregistry.com/a/art_av3fdribd5nrisg7)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 47 versions of this file, between Aug 17, 2026 and Oct 15, 2026, about one every day.

versioncommittedcommitsizeaudit
git:20261015.9ce35e0 latest2026-10-15 9ce35e0 138,624 BA view · diff
git:20261015.c8ecbd82026-10-15 c8ecbd8 138,467 BA view · diff
git:20261012.89a7b4b2026-10-12 89a7b4b 138,453 BA view · diff
git:20261012.e8bc9e52026-10-12 e8bc9e5 136,914 BA view · diff
git:20261012.8df46cf2026-10-12 8df46cf 128,770 BA view · diff
git:20261011.041436a2026-10-11 041436a 127,877 BA view · diff
git:20261010.f2214812026-10-10 f221481 127,085 BA view · diff
git:20261009.e760bb22026-10-09 e760bb2 126,394 BA view · diff
git:20261009.32caa112026-10-09 32caa11 125,680 BA view · diff
git:20261009.3bf6bc32026-10-09 3bf6bc3 124,356 BA view · diff
git:20261009.292663b2026-10-09 292663b 121,298 BA view · diff
git:20261005.e5dda182026-10-05 e5dda18 86,008 BA view · diff
git:20261005.00662672026-10-05 0066267 85,665 BA view · diff
git:20261005.6a2c5dd2026-10-05 6a2c5dd 85,829 BA view · diff
git:20261002.3a398952026-10-02 3a39895 86,561 BA view · diff
git:20260929.728d0072026-09-29 728d007 86,040 BA view · diff
git:20260929.d88a56a2026-09-29 d88a56a 84,737 BA view · diff
git:20260928.927559d2026-09-28 927559d 84,513 BA view · diff
git:20260928.54ba11c2026-09-28 54ba11c 81,443 BA view · diff
git:20260928.a39f6872026-09-28 a39f687 80,014 BA view · diff
git:20260928.6369ada2026-09-28 6369ada 79,527 BA view · diff
git:20260928.1b3b2182026-09-28 1b3b218 77,077 BA view · diff
git:20260923.508d40e2026-09-23 508d40e 74,598 BA view · diff
git:20260923.4943c302026-09-23 4943c30 74,165 BA view · diff
git:20260922.d2370872026-09-22 d237087 73,554 BA view · diff
git:20260921.1697bee2026-09-21 1697bee 72,961 BA view · diff
git:20260921.f2d9ae12026-09-21 f2d9ae1 72,129 BA view · diff
git:20260919.46b60a62026-09-19 46b60a6 71,087 BA view · diff
git:20260916.caba5d32026-09-16 caba5d3 60,489 BA view · diff
git:20260912.9cc37ab2026-09-12 9cc37ab 60,454 BA view · diff
git:20260910.f243a532026-09-10 f243a53 59,642 BA view · diff
git:20260910.f210e302026-09-10 f210e30 59,104 BA view · diff
git:20260910.2bcbc862026-09-10 2bcbc86 58,779 BA view · diff
git:20260910.291818f2026-09-10 291818f 57,456 BA view · diff
git:20260909.c42eb1e2026-09-09 c42eb1e 56,851 BA view · diff
git:20260909.672d4df2026-09-09 672d4df 56,609 BA view · diff
git:20260908.d4c10fe2026-09-08 d4c10fe 56,026 BA view · diff
git:20260908.9b9d76f2026-09-08 9b9d76f 55,755 BA view · diff
git:20260908.53766082026-09-08 5376608 55,285 BA view · diff
git:20260908.f9ba2022026-09-08 f9ba202 54,870 BA view · diff
git:20260908.a7976392026-09-08 a797639 53,808 BA view · diff
git:20260906.b5c915a2026-09-06 b5c915a 53,211 BA view · diff
git:20260902.559f4f32026-09-02 559f4f3 51,402 BA view · diff
git:20260820.9308d512026-08-20 9308d51 49,572 BA view · diff
git:20260820.8b2295d2026-08-20 8b2295d 48,688 BA view · diff
git:20260817.34bb80b2026-08-17 34bb80b 48,030 BA view · diff
git:20260817.5b6606c2026-08-17 5b6606c 47,756 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (138624 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

canonry/canonry · 187 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_av3fdribd5nrisg7
GET https://markdownregistry.com/api/v1/resolve?ref=canonry/canonry/packages/api-routes/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/7a62ddd703d3cd34faf308d88226b5ac5d065bdd27ab1cfaf95e6201458e3224

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from canonry/canonry

test-audit SKILL.md skill
canonry/canonry · .agents/skills/test-audit/SKILL.md · Invoke whenever writing, changing, reviewing, running, or sweeping Canonry tests. Authoring gate for new tests plus…
git:20261015.3a14a05 · audit A · 187 stars
AGENTS.md AGENTS.md file
canonry/canonry · AGENTS.md
git:20261015.c8ecbd8 · audit A · 187 stars
DESIGN.md DESIGN.md file
canonry/canonry · DESIGN.md
git:20261010.862ea14 · audit A · 187 stars
AGENTS.md@apps/api AGENTS.md file
canonry/canonry · apps/api/AGENTS.md
git:20261007.254a7fb · audit A · 187 stars
AGENTS.md@apps/vals/ai-visibility-check AGENTS.md file
canonry/canonry · apps/vals/ai-visibility-check/AGENTS.md
git:20260912.c12e496 · audit A · 187 stars
AGENTS.md@apps/vals/brand-perception-check AGENTS.md file
canonry/canonry · apps/vals/brand-perception-check/AGENTS.md
git:20260912.c12e496 · audit A · 187 stars
AGENTS.md@apps/web AGENTS.md file
canonry/canonry · apps/web/AGENTS.md
git:20261015.9ce35e0 · audit A · 187 stars
AGENTS.md@apps/worker AGENTS.md file
canonry/canonry · apps/worker/AGENTS.md
git:20261015.c8ecbd8 · audit A · 187 stars
AGENTS.md@packages/api-client-generated AGENTS.md file
canonry/canonry · packages/api-client-generated/AGENTS.md
git:20261015.c8ecbd8 · audit A · 187 stars
AGENTS.md@packages/api-routes/src/discovery AGENTS.md file
canonry/canonry · packages/api-routes/src/discovery/AGENTS.md
git:20261007.254a7fb · audit A · 187 stars
AGENTS.md@packages/api-routes/src/doctor AGENTS.md file
canonry/canonry · packages/api-routes/src/doctor/AGENTS.md
git:20261015.c8ecbd8 · audit A · 187 stars
AGENTS.md@packages/canonry AGENTS.md file
canonry/canonry · packages/canonry/AGENTS.md
git:20261017.9f06b9b · audit B · 187 stars

Every file in canonry/canonry

Browse by kind, by grade A, or by owner.