promote: 11 memory updates from 2026-05-26 scan - #15
Closed
gyulsbox wants to merge 1 commit into
Closed
Conversation
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.
Summary
promote-clidetected 11 repeated AI review pattern(s) across 65 PR(s) over the last 90 days and is proposing the corresponding memory updates. See Memory promotion details below for evidence and reasoning per candidate.Why
Repeated review comments often encode implicit conventions that future agents and contributors should already know. This PR promotes 11 such pattern(s) into durable repository memory so the same review feedback doesn't have to be re-issued PR after PR.
Changes
docs/test-stubs/test-files-must-import-all-vitest-functions-before.md— Test files must import all Vitest functions (beforeAll, describe, expect, it) that are used to avoid runtime errors. (candidate_057, confidence 0.95).claude/rules/test-files-should-use-the-standard-testserverandcl.instructions.md— Test files should use the standardtestServerAndClientResourcepattern withawait usingfor server and client setup instead of manual lifecycle management or helper wrapping. (candidate_059, confidence 0.85).claude/rules/documentation-code-examples-must-be-complete-and-r.instructions.md— Documentation code examples must be complete and runnable, with all referenced functions/options defined or explicitly marked as omitted. (candidate_072, confidence 0.85)AGENTS.md— Avoid non-null assertions (!) in TypeScript code; use explicit type guards or optional chaining instead. (candidate_079, confidence 0.85)AGENTS.md— Avoid destructuring directly in function parameter declarations; use property access instead. (candidate_094, confidence 0.85).claude/rules/avoid-broad-eslint-disable-comments-and-console-us.instructions.md— Avoid broad eslint-disable comments and console usage in packages/** modules; use explicit logging mechanisms instead. (candidate_099, confidence 0.85)docs/adr/001-core-error-metadata-must-be-kept-separate-from-use.md— Core error metadata must be kept separate from user-declared payload data to prevent runtime desynchronization in tRPC error handling. (candidate_107, confidence 0.85).claude/rules/packagejson-bin-entries-must-include-bin-directory.instructions.md— Package.json bin entries must include bin/ directory in files array and ensure the referenced script exists. (candidate_108, confidence 0.85)docs/adr/002-multiple-trpc-packages-should-not-expose-generic-b.md— Multiple @trpc/* packages should not expose generic binary names like 'intent' in their bin field, as this causes node_modules/.bin collisions and breaks installations; use namespaced names (e.g., trpc-intent) or avoid re-exporting. (candidate_113, confidence 0.85)docs/test-stubs/test-helpers-must-avoid-temporal-dead-zone-errors.md— Test helpers must avoid temporal dead zone errors by declaring subscription variables before subscribe() calls to handle synchronous onError callbacks safely. (candidate_114, confidence 0.85).claude/rules/packagejson-bin-entries-must-reference-executable.instructions.md— Package.json bin entries must reference executable files that actually exist in the package directory, or publishing will create broken executables on install. (candidate_118, confidence 0.85)docs/promote/digests/2026-05-26.md— full scan digest (included for traceability)Testing
needs_human_decisioncandidates), seedocs/promote/digests/2026-05-26.md.Memory promotion details
Generated by
promote-cliv0.7.1 from scan run on 2026-05-26.Bundled candidates
1. Test files must import all Vitest functions (beforeAll, describe, expect, it) that are used to avoid runtime errors. (target: test, confidence: 0.95)
docs/test-stubs/test-files-must-import-all-vitest-functions-before.mdpackages/openapi/test/cyclicTypes.test.ts, #7252packages/client/skills/links/references/link-options.md, #7231packages/openapi/test/edgeCases.test.ts, #7231packages/openapi/test/edgeCases.test.ts, #7283packages/openapi/test/cyclicTypes.test.ts, …and 1 more2. Test files should use the standard
testServerAndClientResourcepattern withawait usingfor server and client setup instead of manual lifecycle management or helper wrapping. (target: path_scoped_rule, confidence: 0.85).claude/rules/test-files-should-use-the-standard-testserverandcl.instructions.mdpackages/tests/server/httpSubscriptionLink.fetch.test.ts, #7231packages/openapi/test/generate.test.ts, #7207packages/tests/server/httpSubscriptionLink.test.ts3. Documentation code examples must be complete and runnable, with all referenced functions/options defined or explicitly marked as omitted. (target: path_scoped_rule, confidence: 0.85)
.claude/rules/documentation-code-examples-must-be-complete-and-r.instructions.mdwww/docs/client/links/httpBatchLink.md, #7299www/docs/client/openapi.md, #7252packages/server/skills/server-side-calls/SKILL.md4. Avoid non-null assertions (!) in TypeScript code; use explicit type guards or optional chaining instead. (target: agents, confidence: 0.85)
AGENTS.mdpackages/client/src/createTRPCClient.ts, #7195www/scripts/check-twoslash.ts5. Avoid destructuring directly in function parameter declarations; use property access instead. (target: agents, confidence: 0.85)
AGENTS.mdpackages/openapi/test/types.ts, #7199packages/tests/server/transformer.test.ts6. Avoid broad eslint-disable comments and console usage in packages/** modules; use explicit logging mechanisms instead. (target: path_scoped_rule, confidence: 0.85)
.claude/rules/avoid-broad-eslint-disable-comments-and-console-us.instructions.mdpackages/openapi/test/scripts/codegen.ts, #7242packages/openapi/src/generate.ts7. Core error metadata must be kept separate from user-declared payload data to prevent runtime desynchronization in tRPC error handling. (target: adr, confidence: 0.85)
docs/adr/001-core-error-metadata-must-be-kept-separate-from-use.mdpackages/server/src/unstable-core-do-not-import/error/TRPCDeclaredError.ts, #7279packages/server/src/unstable-core-do-not-import/error/TRPCDeclaredError.ts, #7279packages/server/src/adapters/ws.ts8. Package.json bin entries must include bin/ directory in files array and ensure the referenced script exists. (target: path_scoped_rule, confidence: 0.85)
.claude/rules/packagejson-bin-entries-must-include-bin-directory.instructions.mdpackages/next/package.json, #7252packages/server/package.json9. Multiple @trpc/* packages should not expose generic binary names like 'intent' in their bin field, as this causes node_modules/.bin collisions and breaks installations; use namespaced names (e.g., trpc-intent) or avoid re-exporting. (target: adr, confidence: 0.85)
docs/adr/002-multiple-trpc-packages-should-not-expose-generic-b.mdpackages/server/package.json, #7252packages/server/package.json, #7252packages/server/package.json, #7252packages/client/package.json, #7252packages/next/package.json10. Test helpers must avoid temporal dead zone errors by declaring subscription variables before subscribe() calls to handle synchronous onError callbacks safely. (target: test, confidence: 0.85)
docs/test-stubs/test-helpers-must-avoid-temporal-dead-zone-errors.mdpackages/tests/server/websockets.test.ts, #7279packages/tests/server/httpSubscriptionLink.test.ts, #7279packages/tests/server/websockets.test.ts11. Package.json bin entries must reference executable files that actually exist in the package directory, or publishing will create broken executables on install. (target: path_scoped_rule, confidence: 0.85)
.claude/rules/packagejson-bin-entries-must-reference-executable.instructions.mdpackages/tanstack-react-query/package.json, #7252packages/next/package.jsonSafety
needs_human_decisioncandidates included) is committed atdocs/promote/digests/2026-05-26.md.