Repository navigation
docs: Replace internal READMEs with concise AGENTS.md files - #2517
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
Move eval harness rules into packages/junior-evals/AGENTS.md, absorb the eval recording rules from root AGENTS.md, and trim TELEMETRY.md to naming, pivots, and invariants. Trim brand, example app, and openspec READMEs. Co-Authored-By: David Cramer <[email protected]>
Move internal chat module READMEs to nested AGENTS.md and cut them to ownership, invariants, and boundaries. Move the task input outline into task-input.ts JSDoc and its unit snapshots. Co-Authored-By: David Cramer <[email protected]>
Move internal module READMEs under packages/junior/src/chat, src/api, tests, and migrations to nested AGENTS.md files. Keep only purpose, ownership, invariants, and safety rules; drop feature narration, step lists, schemas, and history. Co-Authored-By: David Cramer <[email protected]>
…S.md Package READMEs are published to npm, so they now hold only purpose, install, and a link to junior.sentry.dev. Maintainer intent and invariants move to package AGENTS.md files. Dashboard src READMEs move to AGENTS.md and keep only rules. SETUP.md points to the docs site. Co-Authored-By: David Cramer <[email protected]>
… docs/concise-internal-docs Co-Authored-By: David Cramer <[email protected]>
…/concise-internal-docs Co-Authored-By: David Cramer <[email protected]>
…to docs/concise-internal-docs Co-Authored-By: David Cramer <[email protected]>
Say each rule once in short ASD-STE100 bullets, use the Intent/Policy/ Exceptions template everywhere, and point to owning docs instead of copying them. Module doc references now name AGENTS.md. Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
…/concise-internal-docs Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
3 screenshot changes — 3 changed · 0 added · 0 removed Review screenshots in Frameshift
|
…docs Co-Authored-By: David Cramer <[email protected]>
dcramer
approved these changes
Nov 1, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Internal docs grew from ~1.3k words (Mar) to ~72k words across 83 files.
AGENTS.mdtold every feature PR to describe itself in the owningREADME.md, so the docs only grew. npm also publishes every packageREADME.md, so internal design notes showed on npmjs.com.This PR makes the core docs concise and changes the rules so they do not grow back.
Policy
policies/documentation.mdhas two kinds of docs:AGENTS.md,README.md,policies/*.md): agents read these before a change. They hold intent, ownership, invariants, and boundaries only. Limit: 120 lines (aim for less than 60).TELEMETRY.mdand setup guides): agents look these up. They can be long, but must stay current and not repeat text.TELEMETRY.mdandTERMINOLOGY.mdare capped at 1,000 lines.README.mdis a short landing page for GitHub and npm. A fact that one symbol owns goes in that symbol's JSDoc.pnpm file-length:checkenforces both limits.AGENTS.mdhas one general rule: read theAGENTS.mdfiles on the path to the code you change. This replaces the old pointers to individual docs. The eval recording rules moved topackages/junior-evals/AGENTS.md.Docs
README.mdfiles underpackages/junior/src,tests,migrations,junior-dashboard/src, andjunior-evalsare now rewrittenAGENTS.mdfiles. For example,chat/went from 467 to 107 lines,agent-invocationsfrom 396 to 67, and the evals doc from 644 to 118.README.mdis now a pointer of about 15 lines to junior.sentry.dev. Real plugin invariants moved to new package-rootAGENTS.mdfiles: github, google, memory, plugin-api, dashboard, tts, and vercel.TERMINOLOGY.md(204→109), andCONTRIBUTING.md(254→131) are tighter.TELEMETRY.md: the prose is shorter, but the query recipes are kept (628→207).evals/github-actions.mdkeeps its token and verification steps. It is a reference doc.Checked and dropped as dead or owned elsewhere
packages/docs/.../cli/upgrade.mdalready has them.MAX_ROOT_CONVERSATION_CHARS,RECALL_MAX_VECTOR_DISTANCE).src/fixture/.bindTimerWatchCredentialSubject) says they do, and the new doc follows the code.Follow-up (separate PR): the
0.107.1DB bridge check (CORE_MIGRATION_BRIDGE_VERSION) and its upgrade docs are from July. They may be ready to delete.Checks run:
pnpm lint(file-length, test-architecture, ast-grep, dashboard-style, package lint),pnpm skills:check,pnpm release:check,pnpm docs:check, and prettier. Code changes are comments and lint message strings only.via @dcramer.
--
View Session [Sentry]