docs(#12231): prose headers + churn cleanup — core root + types load-bearing modules (B01 part 2) - #12874
Conversation
…bearing modules (B01 part 2) Adds accurate prose file headers and removes/rewrites churn comments across 58 load-bearing files at packages/core/src root + types/: the AgentRuntime (runtime.ts, with its getSetting/embedding-width invariants), plugin lifecycle, entities/character, roles/access, memory/db/search, cloud auth+routing, action naming/docs, settings/boot, connectors/services, utils, and the core type barrels. Comments only — zero functional diff, machine-proven by scripts/assert-comment-only-diff.mjs (every TypeScript code token identical to base). Part of #12231 (parent #12181). Follows #12824 (B01 part 1). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Machine-verified comment-only: |
…s (B01 part 3) (#12926) Adds accurate prose file headers and removes/rewrites churn comments across 225 files in packages/core/src/features — the core capability subsystems: advanced-capabilities, basic-capabilities, trust, documents, messaging, plugin-manager, secrets, advanced-memory, working-memory, trajectories, advanced-planning, plugin-config, sub-agent-credentials, oauth, credential-proxy, payments, subscription-auth, autonomy. Each file's header names the capability it belongs to and its role (action / provider / service / schema). Comments only — zero functional diff, machine-proven by scripts/assert-comment-only-diff.mjs (every TypeScript code token identical to base). Part of #12231 (parent #12181). Follows #12824 (p1) and #12874 (p2). Co-authored-by: moon <stupidlybadadvice@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…B01 part 4, final) (#13030) Adds accurate prose file headers and removes/rewrites churn comments across 77 files in packages/core/src/services (long-lived runtime singletons) and packages/core/src/utils (shared helpers). Completes the packages/core header sweep for B01. Comments only — zero functional diff, machine-proven by scripts/assert-comment-only-diff.mjs (every TypeScript code token identical to base). Part of #12231 (parent #12181). Follows #12824 (p1), #12874 (p2), #12926 (p3). Co-authored-by: moon <stupidlybadadvice@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…+ __tests__ + residual (B01 part 5, complete) (#13039) Adds accurate prose file headers and removes/rewrites churn comments across the final headerless packages/core files: the runtime/ agent-loop internals (planner loop, action catalog/tiering/gating, context registry/renderer, message handler, evaluators) and their __tests__, the top-level packages/core/src/__tests__ suite, and scattered stragglers (search.ts license-block-preserving header, secret-swap bench/fuzz/redteam, feature test files). This completes the packages/core header sweep for B01 — every in-scope source file now carries a purpose-explaining header. Comments only — zero functional diff, machine-proven by scripts/assert-comment-only-diff.mjs (every TypeScript code token identical to base). Part of #12231 (parent #12181). Completes B01 across #12824 (p1), #12874 (p2), #12926 (p3), #13030 (p4), and this PR. Co-authored-by: moon <stupidlybadadvice@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…er + registry (B01 complete) (#13045) Adds top-of-file prose headers to the ~45 files skipped by prior automated B01 passes (bare test files and modules that carried export-level JSDoc but no file-level header): packages/core stragglers (character-utils.test, room action, recall-embed, feature test files, __tests__ residual), packages/logger/src/logger.ts, and packages/registry/src/first-party/*. With this, every in-scope source file in the B01 batch (packages/core + prompts/logger/registry/skills) carries a purpose-explaining header. Comments only — zero functional diff, machine-proven by scripts/assert-comment-only-diff.mjs (every TypeScript code token identical to base). Closes #12231 (parent #12181). Final part after #12824/#12874/#12926/#13030/#13039. Co-authored-by: moon <stupidlybadadvice@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
What
Batch B01 part 2 of the repo-wide comment cleanup (#12231, parent #12181) — the
load-bearing files at
packages/core/srcroot +types/. Every in-scope file gets anaccurate purpose-explaining prose header; churn comments are removed/rewritten to present-tense
durable fact.
Comments only — zero functional diff. Machine-proven by
node scripts/assert-comment-only-diff.mjs:every changed file's TypeScript code-token stream is byte-identical to base.
Scope (58 files)
The framework's highest-dividend modules:
runtime.ts(the 10k-lineAgentRuntime, headered withits
getSetting/embedding-width invariants), plugin lifecycle, entities/character, roles/access,memory/db/search, cloud auth+routing, action naming/docs, settings/boot, connectors/services,
utils, and the core type barrels (
types/).Follows #12824 (B01 part 1, core boundary/data/schema subsystems — merged). Remaining B01:
features/,services/,utils/in follow-up per-subtree PRs.Verification
Part of #12231.