Skip to content

docs: Replace internal READMEs with concise AGENTS.md files - #2517

Merged
dcramer merged 14 commits into
mainfrom
docs/concise-internal-docs
Nov 1, 2026
Merged

dcramer merged 14 commits into
mainfrom
docs/concise-internal-docs

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Internal docs grew from ~1.3k words (Mar) to ~72k words across 83 files. AGENTS.md told every feature PR to describe itself in the owning README.md, so the docs only grew. npm also publishes every package README.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

  • New policies/documentation.md has two kinds of docs:
    • Core 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).
    • Reference docs (for example TELEMETRY.md and setup guides): agents look these up. They can be long, but must stay current and not repeat text. TELEMETRY.md and TERMINOLOGY.md are capped at 1,000 lines.
  • README.md is a short landing page for GitHub and npm. A fact that one symbol owns goes in that symbol's JSDoc.
  • pnpm file-length:check enforces both limits.
  • Root AGENTS.md has one general rule: read the AGENTS.md files on the path to the code you change. This replaces the old pointers to individual docs. The eval recording rules moved to packages/junior-evals/AGENTS.md.

Docs

  • Module docs: 36 internal README.md files under packages/junior/src, tests, migrations, junior-dashboard/src, and junior-evals are now rewritten AGENTS.md files. For example, chat/ went from 467 to 107 lines, agent-invocations from 396 to 67, and the evals doc from 644 to 118.
  • Package READMEs: each published package README.md is now a pointer of about 15 lines to junior.sentry.dev. Real plugin invariants moved to new package-root AGENTS.md files: github, google, memory, plugin-api, dashboard, tts, and vercel.
  • Policies: the policies, TERMINOLOGY.md (204→109), and CONTRIBUTING.md (254→131) are tighter.
  • TELEMETRY.md: the prose is shorter, but the query recipes are kept (628→207).
  • Eval CI setup: evals/github-actions.md keeps its token and verification steps. It is a reference doc.
  • Path references: all references to the moved files are updated: ast-grep messages, dependency-cruiser, check scripts, skills, code comments, and the docs site.

Checked and dropped as dead or owned elsewhere

  • Redis v2 upgrade warning: it applied only to upgrades from releases before 0.145.0, and we are on 0.268.0.
  • Upgrade-order notes: packages/docs/.../cli/upgrade.md already has them.
  • Guardian 24k bound and memory 0.45 cutoff: both are named constants (MAX_ROOT_CONVERSATION_CHARS, RECALL_MAX_VECTOR_DISTANCE).
  • Automation update semantics: the tool schema description owns them.
  • Eval fixture options: most are in the JSDoc in src/fixture/.
  • Correction: the old events doc said timers do not keep creator credentials. The code (bindTimerWatchCredentialSubject) says they do, and the new doc follows the code.

Follow-up (separate PR): the 0.107.1 DB 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]

sentry-junior Bot and others added 13 commits November 1, 2026 23:11
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]>
…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]>
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 1, 2026 11:38pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

3 screenshot changes — 3 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Run Details Light · Desktop
Automation Run Details Light · Desktop
Changed
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed

@dcramer
dcramer enabled auto-merge (squash) November 1, 2026 23:40
@dcramer
dcramer merged commit b5479bd into main Nov 1, 2026
47 of 48 checks passed
@dcramer
dcramer deleted the docs/concise-internal-docs branch November 1, 2026 23:42

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 8c1fa244 Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant