AGENTS.md@apps/apiA
AGENTS.md@apps/api from canonry/canonry is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add canonry/canonry/apps/api/AGENTS.md@git:20261007.254a7fbPins git:20261007.254a7fb in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- canonry/canonry
- Path
apps/api/AGENTS.md- Versions recorded
- 5
- Latest version
- git:20261007.254a7fb, committed Oct 7, 2026
- First version recorded
- Apr 4, 2026
- Size
- 2,178 bytes
- Repository stars
- 199
- 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 (cloud) ## Purpose Cloud API entry point. A thin Fastify server that imports and mounts `packages/api-routes` with cloud-specific middleware (auth, CORS, rate limiting). Deployed separately from the local `canonry serve` server. ## Deployment Posture (Critical) **`apps/api` is a single-tenant deployment.** One Cloud Run service per team — never share an instance across unrelated tenants. The schema has no `owner_id` on any domain table and `resolveProject` is a global lookup, so any valid `cnry_…` bearer reads and writes every project on the instance. The rule is in the root `AGENTS.md` → "Deployment Posture"; the full rationale (and what would be required to lift this restriction) is in `packages/api-routes/AGENTS.md` → "Deployment posture and key authority". Do not deploy as a SaaS without doing that migration first. ## Key Files | File | Role | |------|------| | `src/app.ts` | Fastify app factory — registers plugins, mounts api-routes | | `src/index.ts` | Entry point — starts the server | | `src/plugins/` | Cloud-specific Fastify plugins (auth, CORS, etc.) | | `src/routes/` | Cloud-only routes (if any) | ## Patterns …
Read the whole file at its exact version.
How to install
mdr add canonry/canonry/apps/api/AGENTS.md@sha256:22ceb0e6a3193cd7The line at the top of this page pins the label git:20261007.254a7fb, 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.
[](https://markdownregistry.com/a/art_3pzavhvny3sbuvqc)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 4, 2026 and Oct 7, 2026, about one every 46 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261007.254a7fb latest | 2026-10-07 | 254a7fb | 2,178 B | A | view · diff |
| git:20260919.46b60a6 | 2026-09-19 | 46b60a6 | 1,821 B | A | view · diff |
| git:20260912.9cc37ab | 2026-09-12 | 9cc37ab | 1,738 B | A | view · diff |
| git:20260521.8962cfa | 2026-05-21 | 8962cfa | 1,463 B | A | view · diff |
| git:20260404.39669fe | 2026-04-04 | 39669fe | 934 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2178 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
canonry/canonry · 199 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3pzavhvny3sbuvqc GET https://markdownregistry.com/api/v1/resolve?ref=canonry/canonry/apps/api/AGENTS.md GET https://markdownregistry.com/api/v1/blob/22ceb0e6a3193cd734ec041571155318122b351a4e6afc44ee4bdf8206487e56
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.