AI Slop Code Risk Monitor

mastra-ai/mastra

SlopCodeMonitor badge for mastra-ai/mastra Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Mastra is the modern TypeScript framework for AI-powered applications and agents.

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for mastra-ai/mastra, a TypeScript project with 29,227 GitHub stars. SynthScan examined 4,584,913 lines of code across 20194 source files, recording 5991 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 2.1 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
29.2K
Stars
TypeScript
Language
4.6M
Lines of Code
20.2K
Files
6.0K
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 6.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 5135 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.1/100 · LOW

Are imports declared and package/API names verified? 435 finding(s).

Agent Over-Engineering Ratio 5.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 3902 finding(s).

PR Review Velocity Impact 9.0/100 · LOW

Which changes need focused human review? 5991 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 126HIGH 47MEDIUM 657LOW 5161

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 5991 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers3481 hits · 3525 pts
SeverityFileLineSnippetContext
LOWserver-adapters/next/src/__tests__/next-adapter.test.ts6function createMastraWithHealthRoute(createHandlerImpl: () => Promise<void>) {CODE
LOW…adapters/express/src/__tests__/auth-middleware.test.ts30function createMastraWithSessionRefresh() {CODE
LOW…adapters-test-suite/src/custom-route-fga-test-suite.ts28export function createCustomRouteFGATestSuite(config: CustomRouteFGATestSuiteConfig) {CODE
LOW…adapters-test-suite/src/knowledge-routes-test-suite.ts29export function createKnowledgeRoutesTestSuite(config: KnowledgeRoutesTestSuiteConfig) {CODE
LOW…dapters/server-adapters-test-suite/src/test-helpers.ts1326async function setupWorkflowRegistryMocks(CODE
LOW…dapters/server-adapters-test-suite/src/test-helpers.ts1414function getRouteSpecificPathDefaults(route: ServerRoute): {CODE
LOW…dapters/server-adapters-test-suite/src/test-helpers.ts1550export function createStreamWithSensitiveData(format: 'v1' | 'v2' = 'v2'): ReadableStream {CODE
LOW…dapters/server-adapters-test-suite/src/test-helpers.ts1641export function createStreamWithUnserializableChunk(): ReadableStream {CODE
LOW…dapters/server-adapters-test-suite/src/test-helpers.ts1661export function expectSerializedStreamChunks(chunks: any[]): void {CODE
LOW…-adapters-test-suite/src/structured-wake-test-suite.ts20export function createStructuredWakeTestSuite(config: StructuredWakeTestConfig) {CODE
LOW…er-adapters-test-suite/src/route-adapter-test-suite.ts27export function createRouteAdapterTestSuite(config: AdapterTestSuiteConfig) {CODE
LOW…ers/server-adapters-test-suite/src/route-test-utils.ts38export function getRouteSpecificSchemaDefaults(route: ServerRoute): {CODE
LOW…ers/server-adapters-test-suite/src/route-test-utils.ts136export function generateValidDataFromSchema(schema: z.ZodTypeAny, fieldName?: string): any {CODE
LOW…ers/server-adapters-test-suite/src/route-test-utils.ts396export function getDefaultValidPathParams(route: ServerRoute): Record<string, any> {CODE
LOW…ers/server-adapters-test-suite/src/route-test-utils.ts488export function getDefaultInvalidPathParams(route: ServerRoute): Array<Record<string, any>> {CODE
LOW…apters-test-suite/src/durable-disconnect-test-suite.ts76export function createDurableDisconnectTestSuite(config: DurableDisconnectTestConfig) {CODE
LOW…er-adapters-test-suite/src/mcp-transport-test-suite.ts67export function createMCPTransportTestSuite(config: MCPTransportTestConfig) {CODE
LOW…-adapters/elysia/src/__tests__/auth-middleware.test.ts82 function createMastraWithSessionRefresh() {CODE
LOWserver-adapters/hono/src/mcp-disconnect.ts15export function propagateClientDisconnect(CODE
LOWserver-adapters/hono/src/__tests__/hono-adapter.test.ts167 function createMastraWithObservabilityStore(observabilityStore: object) {CODE
LOW…s/hono/src/__tests__/approve-decline-no-memory.test.ts165 function expectFullHistoryOnFinalRequest() {CODE
LOW…ver-adapters/hono/src/__tests__/mcp-disconnect.test.ts28function attachTransportCloseContract(res: { on: (event: string, cb: () => void) => void }) {CODE
LOW…o/src/__tests__/approve-tool-call-client-tools.test.ts134 function expectStoppedForClientTool(chunks: Chunk[]) {CODE
LOW…er-adapters/hono/src/__tests__/auth-middleware.test.ts27function createMastraWithSessionRefresh() {CODE
LOW…ack-start/src/__tests__/tanstack-start-adapter.test.ts97 function createMastraWithHealthRoute(createHandlerImpl: () => Promise<void>) {CODE
LOW…apters/fastify/src/__tests__/stream-disconnect.test.ts65 async function createRequestWithAbortSignal(requestRaw: MockRawRequest, replyRaw: MockRawReply) {CODE
LOW…adapters/fastify/src/__tests__/auth-middleware.test.ts26function createMastraWithSessionRefresh() {CODE
LOWserver-adapters/koa/src/index.ts920 this.app.use(async function mastraCustomRouteDispatcher(ctx: Context, next: Next) {CODE
LOW…dapters/koa/src/__tests__/client-error-logging.test.ts148 function throwLoggedNotImplemented(ctx: Koa.Context, error: unknown): never {CODE
LOW…ver-adapters/koa/src/__tests__/auth-middleware.test.ts34function createMastraWithSessionRefresh() {CODE
LOW…udflare/src/plugins/postgres-store-instance-checker.ts5export function postgresStoreInstanceChecker(): Plugin {CODE
LOW…loudflare/src/babel/postgres-store-instance-checker.ts23export function postgresStoreInstanceChecker(): PluginObject {CODE
LOWdeployers/netlify/src/index.ts38function stubEdgeIncompatibleModules() {CODE
LOWdeployers/sandbox/src/fake-sandbox.mock.ts154function workerExecutionIdFromScript(script: string): string {CODE
LOWauth/studio/src/index.ts120function readOrganizationIdFromProjectConfig(): string | undefined {CODE
LOW⚡auth/google/src/auth-provider.ts63function getServerRedirectStateSuffix(state: string): string {CODE
LOW⚡auth/google/src/auth-provider.ts68function getStateTokenFromCallbackState(state: string): string {CODE
LOW⚡auth/google/src/auth-provider.ts73function verifyCallbackStateSuffix(callbackState: string, originalState: string): void {CODE
LOWauth/better-auth/src/index.ts51function mapBetterAuthUserToEEUser(user: User): EEUser {CODE
LOWauth/workos/src/auth-provider.ts80function isMembershipAlreadyExists(error: unknown): boolean {CODE
LOWauth/workos/src/fga-provider.ts30function isWorkOSResourceNotFoundError(error: any): boolean {CODE
LOWclient-sdks/client-js/src/resources/agent.ts167function getClientToolObservabilityContext(toolCall: unknown): ClientToolObservabilityContext | undefined {CODE
LOWclient-sdks/client-js/src/resources/agent.ts177async function executeClientToolWithObservability({CODE
LOWclient-sdks/client-js/src/resources/agent-controller.ts215export function isKnownAgentControllerEvent(event: AgentControllerEvent): event is KnownAgentControllerEvent {CODE
LOWclient-sdks/client-js/src/resources/agent-controller.ts1103export function agentControllerMessageText(message: MastraDBMessage): string {CODE
LOW…ient-sdks/client-js/src/utils/process-mastra-stream.ts4async function sharedProcessMastraStream({CODE
LOW…ient-sdks/client-js/src/utils/process-mastra-stream.ts55export async function processMastraNetworkStream({CODE
LOW…dks/client-js/src/utils/verify-agent-card-signature.ts91export async function verifyAgentCardSignatureIfPresent(CODE
LOWclient-sdks/client-js/src/utils/index.ts131export function parseClientRequestContext(requestContext?: RequestContext | Record<string, any>) {CODE
LOWclient-sdks/client-js/src/utils/index.ts158export function requestContextQueryString(CODE
LOWclient-sdks/client-js/src/observability/collector.ts324export function getCurrentObservabilityCollector(): ObservabilityCollector | undefined {CODE
LOWclient-sdks/ai-sdk/src/middleware.ts455export function createProcessorMiddleware(options: ProcessorMiddlewareOptions): LanguageModelV2Middleware {CODE
LOWclient-sdks/ai-sdk/src/middleware.ts856function extractTextFromMastraMessage(msg: MastraDBMessage): string {CODE
LOWclient-sdks/ai-sdk/src/middleware.ts876function convertMastraChunkToAISDKStreamPart(chunk: ChunkType): LanguageModelV2StreamPart | null {CODE
LOWclient-sdks/ai-sdk/src/helpers.ts96function normalizeToolPayloadState(state: unknown): TransformedToolPayloadState | undefined {CODE
LOWclient-sdks/ai-sdk/src/helpers.ts113function getTransformedToolPayload(CODE
LOWclient-sdks/ai-sdk/src/helpers.ts126function hasTransformedToolPayload(CODE
LOWclient-sdks/ai-sdk/src/helpers.ts132function convertBackgroundTaskChunkToDataChunk(chunk: ChunkType): DataChunkType | undefined {CODE
LOWclient-sdks/ai-sdk/src/helpers.ts637function createToolOutputAncestryEntry(toolCallId: string, toolName?: string): ToolOutputAncestryEntry {CODE
LOWclient-sdks/ai-sdk/src/helpers.ts652function normalizeNestedToolOutput(part: ConvertedToolOutput): NormalizedToolOutput | undefined {CODE
3421 more matches not shown…
Hallucination Indicators126 hits · 1355 pts
SeverityFileLineSnippetContext
CRITICAL…dynamodb/src/storage/domains/background-tasks/index.ts303 const res = await this.service.entities.background_task.scan.go({ pages: 'all' });CODE
CRITICALstores/dynamodb/src/storage/domains/memory/index.ts483 messageIds.map(id => this.service.entities.message.query.primary({ entity: 'message', id }).go()),CODE
CRITICALstores/dynamodb/src/storage/domains/memory/index.ts636 this.service.entities.message.query.byThread({ entity: 'message', threadId: tid }),CODE
CRITICAL⚡stores/dynamodb/src/storage/domains/memory/index.ts658 const baseQuery = this.service.entities.message.query.byThread({ entity: 'message', threadId: threadIds[0]! });CODE
CRITICALstores/dynamodb/src/storage/domains/memory/index.ts894 : (await this.service.entities.thread.scan.go({ pages: 'all' })).data;CODE
CRITICALstores/dynamodb/src/storage/domains/workflows/index.ts675 query = this.service.entities.workflow_snapshot.query.primary({CODE
CRITICALstores/dynamodb/src/storage/domains/scores/index.ts218 const query = this.service.entities.score.query.byScorer({ entity: 'score', scorerId });CODE
CRITICALstores/dynamodb/src/storage/domains/scores/index.ts290 const query = this.service.entities.score.query.byRun({ entity: 'score', runId });CODE
CRITICALstores/dynamodb/src/storage/domains/scores/index.ts346 const query = this.service.entities.score.query.byEntityData({ entity: 'score', entityId });CODE
CRITICALstores/dynamodb/src/storage/domains/scores/index.ts405 const query = this.service.entities.score.query.bySpan({ entity: 'score', traceId, spanId });CODE
CRITICALstores/vectorize/src/vector/index.ts242 await this.client.vectorize.indexes.metadataIndex.create(indexName, {CODE
CRITICALstores/vectorize/src/vector/index.ts262 await this.client.vectorize.indexes.metadataIndex.delete(indexName, {CODE
CRITICALstores/vectorize/src/vector/index.ts281 const res = await this.client.vectorize.indexes.metadataIndex.list(indexName, {CODE
CRITICAL…xamples/otel-bridge/hono-multi/src/integration.test.ts109 return data.data.getTraceByOtelId.spans.edges.map((edge: any) => {CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1305 const fusermountCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1365 const fusermountCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1424 const fusermountCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1500 const rmCalls = mockSandbox.process.exec.mock.calls.filter(CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1505 const rmdirCalls = mockSandbox.process.exec.mock.calls.filter(CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1579 const rmCalls = mockSandbox.process.exec.mock.calls.filter(CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1623 const procMountsCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1628 const fusermountCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1659 const procMountsCalls = mockSandbox.process.exec.mock.calls.filter((c: any[]) =>CODE
CRITICALworkspaces/blaxel/src/sandbox/index.test.ts1718 const fusermountCalls = mockSandbox.process.exec.mock.calls.filter((call: any[]) =>CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts789 const probed = mockSandbox.process.executeCommand.mock.calls.some(call => call[0] === 'pwd');CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts801 const probed = mockSandbox.process.executeCommand.mock.calls.some(call => call[0] === 'pwd');CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts865 mockSandbox.process.executeCommand.mock.calls.some(([command]) =>CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts884 const commands = mockSandbox.process.executeCommand.mock.calls.map(([command]) => command);CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts927 expect(mockSandbox.process.executeCommand.mock.calls.some(([command]) => command.includes('pkill'))).toBe(false);CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts947 mockSandbox.process.executeCommand.mock.calls.some(([command]) => command.includes('sudo fusermount -u ')),CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts1001 const mountCall = mockSandbox.process.executeCommand.mock.calls.find((call: any[]) => {CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts1031 mockSandbox.process.executeCommand.mock.calls.find((call: any[]) => {CODE
CRITICALworkspaces/daytona/src/sandbox/index.test.ts1037 const upload = mockSandbox.fs.uploadFile.mock.calls.find((call: any[]) =>CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1411 const [, runOpts] = mockSandbox.commands.run.mock.calls.at(-1)!;CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1802 mockSandbox.commands.run.mock.calls.some(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1830 mockSandbox.commands.run.mock.calls.some(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1942 const writeCall = mockSandbox.files.write.mock.calls.find((call: any[]) =>CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1952 const calls = mockSandbox.commands.run.mock.calls.map((call: any[]) => call[0] as string);CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1992 const writeCall = mockSandbox.files.write.mock.calls.find((call: any[]) =>CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts1996 const calls = mockSandbox.commands.run.mock.calls.map((call: any[]) => call[0] as string);CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2026 mockSandbox.files.write.mock.calls.some((call: any[]) => String(call[0]).startsWith('/tmp/.passwd-s3fs-')),CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2192 return mockSandbox.commands.run.mock.calls.find(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2199 const writeCall = mockSandbox.files.write.mock.calls.find((call: any[]) =>CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2575 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2600 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2621 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2648 const rmCalls = mockSandbox.commands.run.mock.calls.filter(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2654 const rmdirCalls = mockSandbox.commands.run.mock.calls.filter(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2682 const rmCalls = mockSandbox.commands.run.mock.calls.filter(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2714 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2743 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2766 const rmCalls = mockSandbox.commands.run.mock.calls.filter(CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2803 const procMountsCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('/proc/mounts'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2807 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('fusermount'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2831 const procMountsCalls = mockSandbox.commands.run.mock.calls.filter((c: any[]) => c[0].includes('/proc/mounts'));CODE
CRITICALworkspaces/e2b/src/sandbox/index.test.ts2875 const fusermountCalls = mockSandbox.commands.run.mock.calls.filter((call: any[]) => call[0].includes('fusermount'));CODE
CRITICALmastracode/tui/src/tui/__tests__/status-line.test.ts209 state.controller.session.model.get.mockReturnValue('openai/gpt-5');CODE
CRITICALmastracode/tui/src/tui/__tests__/status-line.test.ts235 state.controller.session.model.get.mockReturnValue('openai/gpt-5');CODE
CRITICALmastracode/tui/src/tui/__tests__/status-line.test.ts249 aborted.controller.session.model.get.mockReturnValue('openai/gpt-5');CODE
CRITICALmastracode/tui/src/tui/__tests__/status-line.test.ts261 errored.controller.session.model.get.mockReturnValue('openai/gpt-5');CODE
66 more matches not shown…
Decorative Section Separators421 hits · 1326 pts
SeverityFileLineSnippetContext
MEDIUMauth/workos/src/fga-provider.ts136 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMauth/workos/src/fga-provider.ts138 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMauth/workos/src/fga-provider.ts268 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMauth/workos/src/fga-provider.ts270 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMauth/workos/src/fga-provider.ts408 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMauth/workos/src/fga-provider.ts410 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMclient-sdks/client-js/src/types.ts1903// ── v2 surface: authorize / connections / fields / status / health ──────────COMMENT
MEDIUMworkflows/_test-utils/src/normal-agent-executor.test.ts167 // ── Durable-only machinery (no plain-Agent equivalent) ──────────────COMMENT
MEDIUMworkflows/_test-utils/src/normal-agent-executor.test.ts175 // ── Prepare/workflowInput-pinned domains ────────────────────────────COMMENT
MEDIUMstores/mongodb/src/storage/index.test.ts953// ─── Hardening: NODE-7556 ────────────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/storage/index.test.ts1122// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts344 // ─── Hardening: NODE-7556 ───────────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts408 // ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts1249 // ─── BYO write guard: read-only by default, writes are opt-in ────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts1420 // ─── Round 5 external-review fixes (unit): registry integrity & drop safety ──────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts1622 // ─── Round 4 external-review fixes (unit) ────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts1930// ─── Durability: BYO target survives a process restart (registry-backed) ─────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts2004// ─── listIndexes returns LOGICAL index names ─────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts2149// ─── FIX 2: BYO collections with native ObjectId _ids (string-id contract) ───────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts2251// ─── FIX 8: describeIndex counts only documents with the embedding field ─────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts2374// ─── Automated Embedding (autoEmbed indexes) ─────────────────────────────────────────────COMMENT
MEDIUMstores/mongodb/src/vector/index.test.ts3302// ─── Live Automated Embedding ────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/tests/navigation.spec.ts134// ─── Sidebar navigation tests ──────────────────────────────────────────COMMENT
MEDIUMdocs/tests/navigation.spec.ts225// ─── Contextual sidebar navigation ────────────────────────────────────COMMENT
MEDIUMdocs/tests/navigation.spec.ts641// ─── Admonitions and tabs on /integrations/agentic-ui/ai-sdk-ui ───────COMMENT
MEDIUMdocs/styles/ai-tells/ExplainerLeads.yml9 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/ExplainerLeads.yml16 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/MicDrop.yml7 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/MicDrop.yml14 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml8 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml13 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml23 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml26 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml37 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml40 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml49 # ==========================================================================COMMENT
MEDIUM⚡docs/styles/ai-tells/ColloquialAssessments.yml55 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/VerbTricolon.yml7 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/VerbTricolon.yml22 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/VerbTricolon.yml65 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/VerbTricolon.yml72 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/CataphoricForecasting.yml7 # ==========================================================================COMMENT
MEDIUMdocs/styles/ai-tells/CataphoricForecasting.yml20 # ==========================================================================COMMENT
MEDIUM…paces/agentfs/src/filesystem/index.integration.test.ts40// ─── Basic Integration Tests ─────────────────────────────────────────────────COMMENT
MEDIUM…paces/agentfs/src/filesystem/index.integration.test.ts170// ─── Agent Isolation Tests ───────────────────────────────────────────────────COMMENT
MEDIUM…paces/agentfs/src/filesystem/index.integration.test.ts240// ─── CompositeFilesystem Integration Tests ───────────────────────────────────COMMENT
MEDIUM…paces/agentfs/src/filesystem/index.integration.test.ts273// ─── Shared Conformance Test Suite ───────────────────────────────────────────COMMENT
MEDIUM…factory-ui/src/ui/domains/settings/services/density.ts8// ── Density preference ────────────────────────────────────────────────────COMMENT
MEDIUMmastracode/factory-ui/src/api/types.ts65// ── GET response envelopes ─────────────────────────────────────────────────COMMENT
MEDIUMmastracode/factory-ui/src/api/types.ts104// ── Mutation request bodies ────────────────────────────────────────────────COMMENT
MEDIUMmastracode/factory-ui/src/api/types.ts150// ── Mutation response envelopes ────────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts222 // ── Core dependencies (set once) ──────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts237 // ── TUI framework (set once) ──────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts254 // ── Agent / streaming ─────────────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts291 // ── Thread / conversation ─────────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts307 // ── Inline interaction ────────────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts345 // ── Status line ───────────────────────────────────────────────────────COMMENT
MEDIUMmastracode/tui/src/tui/state.ts363 // ── Tokens/sec tracking ────────────────────────────────────────────────COMMENT
MEDIUM⚡mastracode/tui/src/tui/state.ts377 // ── Observational Memory ──────────────────────────────────────────────COMMENT
MEDIUM⚡mastracode/tui/src/tui/state.ts384 // ── Tasks ─────────────────────────────────────────────────────────────COMMENT
361 more matches not shown…
Structural Annotation Overuse436 hits · 775 pts
SeverityFileLineSnippetContext
LOWDEVELOPMENT.md85### Step 1: Make your changesCOMMENT
LOWDEVELOPMENT.md89### Step 2: Build the packagesCOMMENT
LOWDEVELOPMENT.md109### Step 3: Test your changesCOMMENT
LOW.cursor/commands/gh-fix-lint.md10## Step 1: Get PR InformationCOMMENT
LOW.cursor/commands/gh-fix-lint.md22## Step 2: Check for Clean Working DirectoryCOMMENT
LOW.cursor/commands/gh-fix-lint.md30## Step 3: Fetch and Checkout the BranchCOMMENT
LOW⚡.cursor/commands/gh-fix-lint.md42## Step 4: Run Lint and Format FixesCOMMENT
LOW⚡.cursor/commands/gh-fix-lint.md49## Step 5: Check for ChangesCOMMENT
LOW⚡.cursor/commands/gh-fix-lint.md57## Step 6: Commit and PushCOMMENT
LOW.cursor/commands/gh-fix-lint.md70## Step 7: Return to Original BranchCOMMENT
LOW⚡.cursor/commands/ralph-plan.md38### Step 1: Understand the GoalCOMMENT
LOW⚡.cursor/commands/ralph-plan.md46### Step 2: Define BackgroundCOMMENT
LOW⚡.cursor/commands/ralph-plan.md53### Step 3: Plan Setup StepsCOMMENT
LOW⚡.cursor/commands/ralph-plan.md61### Step 4: Break Down TasksCOMMENT
LOW⚡.cursor/commands/ralph-plan.md70### Step 5: Define TestingCOMMENT
LOW.mastracode/commands/gh-fix-lint.md10## Step 1: Get PR InformationCOMMENT
LOW.mastracode/commands/gh-fix-lint.md22## Step 2: Check for Clean Working DirectoryCOMMENT
LOW.mastracode/commands/gh-fix-lint.md30## Step 3: Fetch and Checkout the BranchCOMMENT
LOW⚡.mastracode/commands/gh-fix-lint.md42## Step 4: Run Lint and Format FixesCOMMENT
LOW⚡.mastracode/commands/gh-fix-lint.md49## Step 5: Check for ChangesCOMMENT
LOW⚡.mastracode/commands/gh-fix-lint.md57## Step 6: Commit and PushCOMMENT
LOW.mastracode/commands/gh-fix-lint.md70## Step 7: Return to Original BranchCOMMENT
LOW⚡.mastracode/commands/ralph-plan.md38### Step 1: Understand the GoalCOMMENT
LOW⚡.mastracode/commands/ralph-plan.md46### Step 2: Define BackgroundCOMMENT
LOW⚡.mastracode/commands/ralph-plan.md53### Step 3: Plan Setup StepsCOMMENT
LOW⚡.mastracode/commands/ralph-plan.md61### Step 4: Break Down TasksCOMMENT
LOW⚡.mastracode/commands/ralph-plan.md70### Step 5: Define TestingCOMMENT
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts44 // Step 1: InitializeCOMMENT
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts75 // Step 2: Send initialized notificationCOMMENT
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts86 // Step 3: List toolsCOMMENT
LOWexplorations/agent-network-vs-ralph-wiggum.md276 // Step 1: Run LLM completion assessment (existing behavior)COMMENT
LOWexplorations/agent-network-vs-ralph-wiggum.md282 // Step 2: If validation configured, run programmatic checksCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md44### Step 1: Find Failures to InvestigateCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md55### Step 2: Setup InvestigationCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md77### Step 3: Investigate Each QuestionCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md144### Step 4: Document FindingsCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md181### Step 5: Mark as InvestigatedCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md193### Step 6: Implement FixesCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md214### Step 7: Mark as FixedCOMMENT
LOWexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md220### Step 8: Sync to DatasetCOMMENT
LOW.opencode/command/gh-fix-lint.md10## Step 1: Get PR InformationCOMMENT
LOW.opencode/command/gh-fix-lint.md22## Step 2: Check for Clean Working DirectoryCOMMENT
LOW.opencode/command/gh-fix-lint.md30## Step 3: Fetch and Checkout the BranchCOMMENT
LOW⚡.opencode/command/gh-fix-lint.md42## Step 4: Run Lint and Format FixesCOMMENT
LOW⚡.opencode/command/gh-fix-lint.md49## Step 5: Check for ChangesCOMMENT
LOW⚡.opencode/command/gh-fix-lint.md57## Step 6: Commit and PushCOMMENT
LOW.opencode/command/gh-fix-lint.md70## Step 7: Return to Original BranchCOMMENT
LOW⚡.opencode/command/ralph-plan.md38### Step 1: Understand the GoalCOMMENT
LOW⚡.opencode/command/ralph-plan.md46### Step 2: Define BackgroundCOMMENT
LOW⚡.opencode/command/ralph-plan.md53### Step 3: Plan Setup StepsCOMMENT
LOW⚡.opencode/command/ralph-plan.md61### Step 4: Break Down TasksCOMMENT
LOW⚡.opencode/command/ralph-plan.md70### Step 5: Define TestingCOMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts269 // Step 1: Generate items to iterate over - outputs an arrayCOMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts279 // Step 2: Transform each item (used in foreach)COMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts287 // Step 3: Sum all resultsCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts216 // Step 1: Execute LLMCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts218 // Step 2: Extract tool calls as array for foreach (forward model_step span for nesting)COMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts272 // Step 5: Map tool results back to stateCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts274 // Step 6: Check for pending background tasksCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts276 // Step 7: Map back to iteration state format using shared functionCOMMENT
376 more matches not shown…
Verbosity Indicators341 hits · 597 pts
SeverityFileLineSnippetContext
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts44 // Step 1: InitializeCOMMENT
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts75 // Step 2: Send initialized notificationCOMMENT
LOWclient-sdks/react/src/hooks/mcps/use-try-connect-mcp.ts86 // Step 3: List toolsCOMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts269 // Step 1: Generate items to iterate over - outputs an arrayCOMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts279 // Step 2: Transform each item (used in foreach)COMMENT
LOW⚡workflows/_test-utils/src/domains/foreach.ts287 // Step 3: Sum all resultsCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts216 // Step 1: Execute LLMCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts218 // Step 2: Extract tool calls as array for foreach (forward model_step span for nesting)COMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts272 // Step 5: Map tool results back to stateCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts274 // Step 6: Check for pending background tasksCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts276 // Step 7: Map back to iteration state format using shared functionCOMMENT
LOW⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts304 // Step 8: isTaskComplete scorers, then goal evaluation, as in core's durable loop.COMMENT
LOW…t/src/durable-agent/create-inngest-agentic-workflow.ts182 // Step 0: Convert iteration state to LLM input formatCOMMENT
LOW…t/src/durable-agent/create-inngest-agentic-workflow.ts232 // Step 3: Execute each tool call individually (with suspend support).COMMENT
LOW…t/src/durable-agent/create-inngest-agentic-workflow.ts249 // Step 4: Collect tool results and bundle with LLM output for mapping step.COMMENT
LOW…ores/cloudflare-d1/src/storage/domains/memory/index.ts996 // Step 1: Get paginated messages from the thread first (without excluding included ones)COMMENT
LOW…ores/cloudflare-d1/src/storage/domains/memory/index.ts1127 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOWstores/clickhouse/src/storage/domains/memory/index.ts280 // Step 1: Get paginated messages from the thread(s) first (without excluding included ones)COMMENT
LOWstores/clickhouse/src/storage/domains/memory/index.ts435 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOW⚡stores/clickhouse/src/storage/db/index.ts396 // Step 1: Rename old table to backupCOMMENT
LOW⚡stores/clickhouse/src/storage/db/index.ts401 // Step 2: Create new table with correct sorting keyCOMMENT
LOWstores/clickhouse/src/storage/db/index.ts440 // Step 3: Copy data from backup to new table, deduplicating by (traceId, spanId)COMMENT
LOWstores/clickhouse/src/storage/db/index.ts475 // Step 4: Drop backup tableCOMMENT
LOW…ores/cloudflare/src/kv/storage/domains/memory/index.ts911 // Step 1: Get thread messages from all specified threads (for pagination)COMMENT
LOW…ores/cloudflare/src/kv/storage/domains/memory/index.ts976 // Step 2: Get included messages separately (not subject to pagination)COMMENT
LOW…ores/cloudflare/src/kv/storage/domains/memory/index.ts992 // Step 3: Combine paginated + included messages, deduplicateCOMMENT
LOW…ores/cloudflare/src/do/storage/domains/memory/index.ts974 // Step 1: Get paginated messages from the thread(s) first (without excluding included ones)COMMENT
LOW…ores/cloudflare/src/do/storage/domains/memory/index.ts1089 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOWstores/lance/src/storage/domains/memory/index.ts406 // Step 1: Get paginated messages from the thread first (without excluding included ones)COMMENT
LOWstores/lance/src/storage/domains/memory/index.ts451 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOW⚡stores/dynamodb/src/storage/domains/memory/index.ts657 // Step 1: Query messages from the thread via byThread GSI (createdAt sort key).COMMENT
LOWstores/dynamodb/src/storage/domains/memory/index.ts690 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOWstores/mongodb/src/storage/migration.test.ts54 // Step 1: Insert documents with ONLY old schema fields (simulating pre-migration data)COMMENT
LOW⚡stores/mongodb/src/storage/migration.test.ts103 // Step 2: Verify documents existCOMMENT
LOW⚡stores/mongodb/src/storage/migration.test.ts107 // Step 3: Initialize store (which creates indexes but doesn't modify document structure)COMMENT
LOW⚡stores/mongodb/src/storage/migration.test.ts110 // Step 4: Query via storage API - should work with old documentsCOMMENT
LOWstores/mongodb/src/storage/migration.test.ts128 // Step 5: Verify new fields are null/undefined for old documentsCOMMENT
LOWstores/mongodb/src/storage/domains/memory/index.ts671 // Step 1: Get paginated messages from the thread first (without excluding included ones)COMMENT
LOWstores/mongodb/src/storage/domains/memory/index.ts712 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOWstores/mongodb/src/storage/domains/memory/index.ts850 // Step 1: Get paginated messagesCOMMENT
LOWstores/mongodb/src/storage/domains/memory/index.ts891 // Step 2: Add included messages with context (if any), excluding duplicatesCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts195 // Step 3: Call createTable which should trigger migrationCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts198 // Step 4: Verify new columns existCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts224 // Step 5: Verify original columns still existCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts234 // Step 6: Verify data is still queryable after migrationCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts264 // Step 7: Verify new columns have NULL values for existing data (since they didn't exist before)COMMENT
LOW⚡stores/pg/src/storage/migration.test.ts270 // Step 8: Verify we can insert new data with the new columnsCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts329 // Step 2: Verify timezone columns do NOT exist before migrationCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts338 // Step 3: Insert test dataCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts357 // Step 4: Run the migration by calling createTable (which internally calls migrateSpansTable)COMMENT
LOW⚡stores/pg/src/storage/migration.test.ts361 // Step 5: Verify timezone columns DON'T exist after migration (this is the bug!)COMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1383 // Step 3: Run the migration SQLCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1390 // Step 4: Verify column type is now JSONBCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1398 // Step 5: Verify all data was preservedCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1423 // Step 6: Verify JSONB operators work after migrationCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1429 // Step 7: Verify we can insert new data with JSONBCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1558 // Step 3: Run the migration SQLCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1565 // Step 4: Verify column type is now JSONBCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1573 // Step 5: Verify all data was preservedCOMMENT
LOW⚡stores/pg/src/storage/migration.test.ts1594 // Step 6: Verify JSONB operators work after migrationCOMMENT
281 more matches not shown…
Over-Commented Block587 hits · 578 pts
SeverityFileLineSnippetContext
LOWpnpm-workspace.yaml321 # Security fix for GHSA middleware-based route protection bypass (CVE).COMMENT
LOWpnpm-workspace.yaml601 'yocto-spinner': 'npm:@socketregistry/yocto-spinner@^1'COMMENT
LOW…er-adapters-test-suite/src/route-adapter-test-suite.ts401 // and are tested separately via mcp-transport-test-suiteCOMMENT
LOW…er-adapters-test-suite/src/route-adapter-test-suite.ts461 // Covered by packages/server/src/server/handlers/mcp-events.test.ts.COMMENT
LOW…er-adapters-test-suite/src/route-adapter-test-suite.ts481 // 'test-connection-id' that isn't seeded, so the fail-closed ownershipCOMMENT
LOWserver-adapters/hono/src/browser-stream/index.ts161 const { injectWebSocket, upgradeWebSocket } = createNodeWebSocket({ app });COMMENT
LOWserver-adapters/hono/src/browser-stream/index.ts181 // `apiPrefix`. Because browsers cannot set an `Authorization` header on aCOMMENT
LOW…c/__tests__/stream-disconnect-rejecting-cancel.test.ts1// Regression test for mastra #20307.COMMENT
LOWdeployers/cloudflare/src/index.test.ts21COMMENT
LOWclient-sdks/client-js/src/example.ts41COMMENT
LOWclient-sdks/client-js/src/example.ts61// try {COMMENT
LOW…i-sdk/src/__tests__/add-tool-result-message-id.test.ts201 // The continuation response MUST use the SAME messageId as theCOMMENT
LOWclient-sdks/react/src/lib/mastra-db/accumulator.ts21 BackgroundTaskEntry,COMMENT
LOWworkflows/inngest/src/workflow.ts441COMMENT
LOWworkflows/inngest/src/actor-signal.test.ts21describe('@mastra/inngest actor signal threading (hermetic)', () => {COMMENT
LOW…lows/inngest/src/durable-agent/create-inngest-agent.ts801 // Late-bound reference to the proxy so stream() can pass it to runDurableStreamUntilIdleCOMMENT
LOW…lows/inngest/src/durable-agent/create-inngest-agent.ts821 // `cache` or `mastra.serverCache`.COMMENT
LOW…lows/inngest/src/durable-agent/create-inngest-agent.ts1561 });COMMENT
LOW…ows/inngest/src/__tests__/create-inngest-agent.test.ts781// Parity surface testsCOMMENT
LOW…ows/inngest/src/__tests__/create-inngest-agent.test.ts2421 });COMMENT
LOW…ws/inngest/src/__tests__/proxyref-verification.test.ts101 // When stream({ untilIdle: true }) is called:COMMENT
LOW…gest/src/__tests__/inngest-durable-agent-suite.test.ts81 await new Promise(resolve => setTimeout(resolve, 200));COMMENT
LOW…gest/src/__tests__/inngest-durable-agent-suite.test.ts101 // events that never get routed to this run's subscribers.COMMENT
LOW.claude/skills/docs-audit/scripts/run-checks.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/mastra-smoke-test/scripts/test-server.sh1#!/bin/bashCOMMENT
LOW…ls/mastra-smoke-test/scripts/discover-release-scope.sh1#!/bin/bashCOMMENT
LOW.claude/skills/builder-smoke-test/scripts/scaffold.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/builder-smoke-test/scripts/scaffold.sh21#COMMENT
LOW.claude/skills/builder-smoke-test/scripts/preflight.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/builder-smoke-test/scripts/preflight.sh21# --workos-organization-id org_... # scaffold auth-onCOMMENT
LOW…e/skills/builder-smoke-test/scripts/seed-multi-user.sh1#!/usr/bin/env bashCOMMENT
LOW…e/skills/builder-smoke-test/scripts/wait-for-server.sh1#!/usr/bin/env bashCOMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts481 // createSampleMessage({COMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts501 // }),COMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts521COMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts541 // {COMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts561 // resourceId: 'cross-thread-resource',COMMENT
LOWstores/cloudflare-d1/src/storage/rest-api.test.ts581 // resourceId: 'cross-thread-resource',COMMENT
LOW…tils/src/domains/observability-vnext/span-aggregate.ts61// |-------|-------------|------------------|------------------|-------|--------------|---------|---------|-------------COMMENT
LOWstores/_test-utils/src/domains/memory/threads.ts401 const finalThread = await memoryStorage.getThreadById({ threadId: thread.id });COMMENT
LOWstores/_test-utils/src/domains/memory/threads.ts421 // expect(retrievedThread?.updatedAt.toISOString()).toBe(now.toISOString());COMMENT
LOWstores/_test-utils/src/domains/memory/threads.ts441 // const retrievedThread = await storage.getThreadById({ threadId: thread.id });COMMENT
LOW…src/storage/domains/observability/v-next/index.test.ts3381 ],COMMENT
LOW…ouse/src/storage/domains/observability/v-next/index.ts781 }COMMENT
LOW…ouse/src/storage/domains/observability/v-next/index.ts821 // arriving during initialization are captured. ReplacingMergeTree usesCOMMENT
LOWstores/mongodb/src/vector/index.ts801 // fresh-process deleteIndex still sees isByo:true and preserves the caller'sCOMMENT
LOWstores/mongodb/src/vector/index.ts1641 // index. createIndex always declares `document`, except on an autoEmbed index where theCOMMENT
LOWstores/convex/src/schema.ts501// Observational memory table name. Defined locally (not imported from core)COMMENT
LOWstores/pg/docker-compose.pooler.yaml21 # into the user-reported failure mode. Real Supabase deploymentsCOMMENT
LOWstores/pg/docker-compose.pooler.yaml61 DB_NAME: ${POSTGRES_DB:-postgres}COMMENT
LOWstores/pg/src/storage/index.test.ts781 //COMMENT
LOWstores/pg/src/storage/test-utils.ts1161 // domains. Same bug class as #16224 (which originally fixed only the agentsCOMMENT
LOWstores/pg/src/storage/index.ts201export class PostgresStore extends MastraCompositeStore {COMMENT
LOWstores/pg/src/storage/index.ts341 }COMMENT
LOW…pg/src/storage/domains/observability/v-next/helpers.ts141 // so return the value unchanged, normalizing null/undefined to undefined.COMMENT
LOW…c/storage/domains/observability/v-next/partitioning.ts161 // the missing day, and a role that may not ATTACH is never asked to for aCOMMENT
LOW…c/storage/domains/observability/v-next/partitioning.ts181 // and never touch user input, so the template interpolation is safe.COMMENT
LOW…orage/domains/observability/v-next/integration.test.ts941 // INSERTs to continue against existing partitions in parallel.COMMENT
LOWstores/pg/src/storage/db/index.ts1461 `);COMMENT
LOWstores/azure-ai-search/src/vector/integration.test.ts701COMMENT
527 more matches not shown…
Modern AI Meta-Vocabulary200 hits · 561 pts
SeverityFileLineSnippetContext
MEDIUMDEVELOPMENT.md71 pnpm build:rag # RAG packageCODE
MEDIUMDEVELOPMENT.md140 pnpm test:rag # RAG testsCODE
MEDIUMclient-sdks/ai-sdk/README.md31- [AI SDK UI integration guide](https://mastra.ai/integrations/agentic-ui/ai-sdk-ui)CODE
MEDIUMexplorations/longmemeval/docs/INVESTIGATION_WORKFLOW.md73 ├── om.md # Agent's context windowCODE
MEDIUM…ows/_test-utils/src/domains/tool-workflow-execution.ts293 // Full agentic loop: LLM → tool → LLM → finish needs extra timeCOMMENT
MEDIUM…ows/_test-utils/src/domains/tool-workflow-execution.ts346 // Full agentic loop: LLM → tools → LLM → finish needs extra timeCOMMENT
MEDIUMworkflows/inngest/src/workflow.ts52 // in create-inngest-agentic-workflow.ts; any failure in that step is classifiedCOMMENT
MEDIUM⚡…t/src/durable-agent/create-inngest-agentic-workflow.ts310 // Create the main agentic loop workflow with dowhileCOMMENT
MEDIUM…t/src/durable-agent/create-inngest-agentic-workflow.ts365 // Run the agentic loop with dowhileCOMMENT
MEDIUM…ows/inngest/src/__tests__/create-inngest-agent.test.ts1918 // The agentic loop suspends each tool call under `resumeLabels[toolCallId]`.COMMENT
MEDIUM…ows/inngest/src/__tests__/create-inngest-agent.test.ts1942 // agentic-loop step records the leaf under `__workflow_meta.path`.COMMENT
MEDIUM…/inngest/src/__tests__/durable-stop-when-serve.test.ts2 * Regression test for #25851: the Inngest agentic loop never evaluated `stopWhen`.COMMENT
MEDIUM.claude/skills/builder-smoke-test/SKILL.md259# Scaffold an auth-on project (re-runs scaffold with WorkOS keys, asserts auth on):COMMENT
MEDIUM.claude/skills/builder-smoke-test/references/setup.md26### 1. Preflight — scaffold + env vars + modeCOMMENT
MEDIUM.claude/skills/builder-smoke-test/references/auth.md61# 1. Confirm the leak flag is in $PROJECT_DIR/.env (scaffold.sh writes it for auth-on).COMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh12# The script lives at <worktree>/.claude/skills/builder-smoke-test/scripts/scaffold.shCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh23# bash scaffold.sh # auth off, prompt for openai keyCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh24# bash scaffold.sh --reuse # skip install if project already healthyCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh25# bash scaffold.sh --dir /custom/path # use a custom project dirCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh26# BUILDER_SMOKE_TEST_DIR=/custom/path bash scaffold.sh # via env varCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh27# bash scaffold.sh --openai-key sk-... # supply key inlineCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh28# bash scaffold.sh \COMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh34# 0 — scaffold complete (or reused), printed PROJECT_DIR=... AUTH_MODE=...COMMENT
MEDIUM.claude/skills/builder-smoke-test/scripts/scaffold.sh144 echo "# Generated by .claude/skills/builder-smoke-test/scripts/scaffold.sh"CODE
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh4# Calls scripts/scaffold.sh to ensure a hermetic project exists, thenCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh8# 1. --dir <path> flag (forwarded to scaffold)COMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh15# bash preflight.sh # scaffold auth-off (prompts for openai if missing)COMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh21# --workos-organization-id org_... # scaffold auth-onCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh24# bash preflight.sh --skip-scaffold # inspect an already-scaffolded project; no install, no .env rewriteCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh26# All --openai-key, --workos-*, --dir, --reuse flags are forwarded to scaffold.sh.COMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh27# --skip-scaffold short-circuits scaffold.sh entirely and just validates theCOMMENT
MEDIUM⚡.claude/skills/builder-smoke-test/scripts/preflight.sh33# 0 — scaffold + checks passed (mode matches --expect if given)COMMENT
MEDIUM.claude/skills/builder-smoke-test/scripts/preflight.sh112 # 1. Resolve PROJECT_DIR without running scaffold.COMMENT
MEDIUM.claude/skills/builder-smoke-test/scripts/preflight.sh129 # 1. Run scaffold. Capture its output so we can extract PROJECT_DIR + AUTH_MODE.COMMENT
MEDIUM…/builder-smoke-test/assets/template/src/mastra/auth.ts35 // and permissions from WorkOS, ensuring scaffold roleMapping edits andCOMMENT
MEDIUM…convex/src/storage/domains/workflows/workflows.test.ts48 // Mirrors the structural shape of an `agentic-loop` snapshot whoseCOMMENT
MEDIUMstores/libsql/src/storage/domains/workflows/index.ts659 // 1. agentic-loop: under a dynamic suspended-step key, hence the json_each() scanCOMMENT
MEDIUMdocs/tests/navigation.spec.ts641// ─── Admonitions and tabs on /integrations/agentic-ui/ai-sdk-ui ───────COMMENT
MEDIUMdocs/styles/ai-tells/MicDrop.yml110 # "Just/Pure/Clean + noun" standalone fragments: "Pure orchestration." "Just data."COMMENT
MEDIUMdocs/styles/ai-tells/MicDrop.yml117 # "Pure orchestration, and the one package that imports from all layers."COMMENT
MEDIUMdocs/styles/ai-tells/FigurativeSits.yml19 # point ("sits at the intersection of," "sits at the core of"). The scaffoldCOMMENT
MEDIUMdocs/styles/ai-tells/CataphoricForecasting.yml24 # scaffold noun with a small count is the tell on its own. Literal senses ofCOMMENT
MEDIUMdocs/styles/ai-tells/CataphoricForecasting.yml62 # phase-like scaffolding, so a literal split into physical "parts" or "pieces"COMMENT
MEDIUMobservability/mastra/src/processor-tracing.test.ts2162 // This ensures guardrails validate content before persistenceCOMMENT
MEDIUMe2e-tests/client-js/_test-utils/src/server-setup.ts142 // to the next — which the evented agentic-loop tickles by spreading workflowCOMMENT
MEDIUMmastracode/sdk/src/headless/run-mc.ts322 // Count agentic turns (one assistant response = one turn). When the cap isCOMMENT
MEDIUMpackages/core/src/tools/tool.test.ts217 // own — the value has to survive conversion to a CoreTool (where the agenticCOMMENT
MEDIUMpackages/core/src/tools/tool-builder/builder.ts790 // use workflows internally for their agentic loopCOMMENT
MEDIUMpackages/core/src/tools/tool-builder/builder.ts1330 // Preserve tool-level background config so the agentic loop can pick it upCOMMENT
MEDIUMpackages/core/src/llm/model/model.loop.ts235 // The agentic loop calls setInferenceContext + startInference per-step so theCOMMENT
MEDIUMpackages/core/src/mastra/cross-process-workflow.test.ts198 // Simulate a nested workflow event (agentic-loop inside execution-workflow)COMMENT
MEDIUMpackages/core/src/mastra/cross-process-workflow.test.ts344 // Owner registers the root agentic-loop run.COMMENT
MEDIUMpackages/core/src/mastra/cross-process-workflow.test.ts348 // parent chain points to the registered agentic-loop.COMMENT
MEDIUMpackages/core/src/mastra/index.ts1045 // agentic-loop wrapping an agentic-execution) keep the scope alive until theCOMMENT
MEDIUMpackages/core/src/mastra/index.ts1084 // Internal execution-workflows / agentic-loops are run-scoped:COMMENT
MEDIUMpackages/core/src/mastra/index.ts1096 // (e.g. `executionWorkflow` inside `agentic-loop`) carry anCOMMENT
MEDIUMpackages/core/src/mastra/index.ts1098 // but their root parent (the registered agentic-loop) is. If anyCOMMENT
MEDIUMpackages/core/src/mastra/index.ts1763 // The evented workflow engine (used internally by the agentic loop) requiresCOMMENT
MEDIUMpackages/core/src/mastra/index.ts4117 // 1. Internal registry (run-scoped execution-workflow, agentic-loop, etc.)COMMENT
MEDIUMpackages/core/src/mastra/index.ts4059 const orchestration = this.#workers.find(w => w.name === 'orchestration');CODE
140 more matches not shown…
Fake / Example Data263 hits · 276 pts
SeverityFileLineSnippetContext
LOW…adapters/express/src/__tests__/auth-middleware.test.ts20 token === 'valid-token' ? { id: 'user-1', email: 'user@example.com' } : null,CODE
LOW…adapters/express/src/__tests__/auth-middleware.test.ts105 email: 'user@example.com',CODE
LOW…-adapters/elysia/src/__tests__/auth-middleware.test.ts16 token === 'valid-token' ? { id: 'user-1', email: 'user@example.com' } : null,CODE
LOW…er-adapters/hono/src/__tests__/auth-middleware.test.ts17 token === 'valid-token' ? { id: 'user-1', email: 'user@example.com' } : null,CODE
LOW…adapters/fastify/src/__tests__/auth-middleware.test.ts16 token === 'valid-token' ? { id: 'user-1', email: 'user@example.com' } : null,CODE
LOW…ver-adapters/koa/src/__tests__/auth-middleware.test.ts18 token === 'valid-token' ? { id: 'user-1', email: 'user@example.com' } : null,CODE
LOWdeployers/cloudflare/src/index.ts264 /"placeholder": "PLACEHOLDER",/,CODE
LOWauth/google/src/index.test.ts137 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts181 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts196 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts224 payload: { sub: 'u1', email: 'user@example.com', hd: 'example.com', nonce: 'wrong' },CODE
LOWauth/google/src/index.test.ts243 payload: { sub: 'u1', email: 'user@example.com', nonce },CODE
LOWauth/google/src/index.test.ts294 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts334 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts361 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts388 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts436 email: 'user@example.com',CODE
LOWauth/google/src/index.test.ts518 expect(firstUrl.searchParams.get('userKey')).toBe('user@example.com');CODE
LOWauth/google/src/index.test.ts587 expect(consoleError.mock.calls[0]?.join(' ')).not.toContain('user@example.com');CODE
LOWauth/google/src/index.test.ts628 subject: 'admin@example.com',CODE
LOWauth/okta/src/index.test.ts278 profile: { login: 'user@example.com', email: 'user@example.com', firstName: 'Test', lastName: 'User' },CODE
LOWauth/okta/src/index.test.ts287 email: 'user@example.com',CODE
LOWauth/neon/src/index.test.ts411 email: 'user@example.com',CODE
LOWauth/neon/src/index.test.ts426 email: 'user@example.com',CODE
LOWauth/clerk/src/index.test.ts712 email: 'user@example.com',CODE
LOWauth/clerk/src/index.test.ts724 expect(result.user.email).toBe('user@example.com');CODE
LOWauth/auth0/src/index.test.ts424 email: 'user@example.com',CODE
LOWauth/auth0/src/index.test.ts433 expect(result.user.email).toBe('user@example.com');CODE
LOWclient-sdks/ai-sdk/src/__tests__/custom-data.test.ts129 name: 'John Doe',CODE
LOWclient-sdks/ai-sdk/src/__tests__/custom-data.test.ts160 expect(customDataChunk.data.user.name).toBe('John Doe');CODE
LOWworkflows/_test-utils/src/domains/structured-output.ts168 phone: '555-1234',CODE
LOWstores/azure-ai-search/examples/proxy-example.ts62 credential: 'dummy-key', // Not used when proxy handles authCODE
LOWstores/azure-ai-search/src/vector/index.test.ts718 const result = translator.translate({ category: { $eq: 'books' }, author: 'Jane Doe' });CODE
LOWstores/azure-ai-search/src/vector/index.test.ts719 expect(result).toBe("category eq 'books' and author eq 'Jane Doe'");CODE
LOW…res/azure-ai-search/src/vector/memory-contract.test.ts185 'user@example.com',CODE
LOWstores/astra/src/vector/index.test.ts428 name: 'John Doe',CODE
LOWstores/couchbase/src/vector/index.integration.test.ts253 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOWstores/couchbase/src/vector/index.integration.test.ts253 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOWstores/couchbase/src/vector/index.unit.test.ts380 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOWstores/couchbase/src/vector/index.unit.test.ts380 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doCODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts402 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et CODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts402 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et CODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts405 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloreCODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts405 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloreCODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts487 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et CODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts487 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et CODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts490 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloreCODE
LOW⚡stores/couchbase/src/vector/index.unit.test.ts490 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et doloreCODE
LOWstores/dsql/src/storage/index.test.ts201 it('placeholder', () => {});CODE
LOWobservability/mastra/src/exporters/base.test.ts377 metadata: { ...span.metadata, userName: 'John Doe', department: 'Engineering' },CODE
LOWobservability/mastra/src/exporters/base.test.ts389 userName: 'John Doe',CODE
LOW…astra/src/span_processors/senstive-data-filter.test.ts433 fullName: 'John Doe',CODE
LOW…astra/src/span_processors/senstive-data-filter.test.ts479 content: '{ email": "test@test.com" }',CODE
LOW…astra/src/span_processors/senstive-data-filter.test.ts494 expect(input.messages[0].content).toBe('{ email": "test@test.com" }');CODE
LOWobservability/datadog/src/compliance.test.ts70 exporter = new DatadogExporter({ mlApp: 'compliance', apiKey: 'fake-key', agentless: true });CODE
LOWe2e-tests/_local-registry-setup/registry.js77 execSync(`npm config set //localhost:${port}/:_authToken dummy-token`);CODE
LOWe2e-tests/_local-registry-setup/registry.js78 execSync(`pnpm config set //localhost:${port}/:_authToken dummy-token`);CODE
LOWbrowser/agent-browser/src/__tests__/dialog.test.ts112 const result = await browser.dialog({ triggerRef: '@e3', action: 'accept', text: 'John Doe' });CODE
LOWbrowser/agent-browser/src/__tests__/dialog.test.ts114 expect(mockDialog.accept).toHaveBeenCalledWith('John Doe');CODE
LOWmastracode/factory-ui/e2e/knowledge/explore.spec.ts357 await expect(search).toHaveAttribute('placeholder', 'Search');CODE
203 more matches not shown…
Magic Placeholder Names39 hits · 260 pts
SeverityFileLineSnippetContext
HIGH⚡…de/skills/mastra-smoke-test/references/tests/errors.md33> Replace `<server-url>` with your environment URL, `<agent-id>` with an agent from your setup, and `<your-api-key>` froCODE
HIGH⚡…de/skills/mastra-smoke-test/references/tests/errors.md38 -H "Authorization: Bearer <your-api-key>" \CODE
HIGH⚡…de/skills/mastra-smoke-test/references/tests/errors.md44 -H "Authorization: Bearer <your-api-key>" \CODE
HIGH⚡…de/skills/mastra-smoke-test/references/tests/errors.md50 -H "Authorization: Bearer <your-api-key>" \CODE
HIGHstores/pinecone/README.md18 apiKey: 'your-api-key',CODE
HIGH⚡stores/pinecone/src/vector/index.ts40 * apiKey: 'your-api-key',COMMENT
HIGH⚡stores/pinecone/src/vector/index.ts46 * apiKey: 'your-api-key',COMMENT
HIGH⚡stores/pinecone/src/vector/index.ts53 * apiKey: 'your-api-key',COMMENT
HIGHstores/azure-ai-search/README.md19 credential: 'your-api-key',CODE
HIGHstores/azure-ai-search/src/vector/index.ts285 * credential: 'your-api-key'COMMENT
HIGHstores/turbopuffer/README.md18 apiKey: 'your-api-key',CODE
HIGH…course/02-agent-tools-mcp/08-getting-zapier-mcp-url.md18ZAPIER_MCP_API_KEY=your-api-key-hereCODE
HIGHobservability/_examples/otel-bridge/agent-hub/README.md28OPENAI_API_KEY=your-api-key-hereCODE
HIGHmastracode/sdk/CHANGELOG.md3817 PARALLEL_API_KEY=your-api-key npx mastracode --prompt "Use web_search to find the latest Mastra release"CODE
HIGHmastracode/sdk/CHANGELOG.md3873 PARALLEL_API_KEY=your-api-key npx mastracode --prompt "Use web_search to find the latest Mastra release"CODE
HIGHvoice/azure/README.md19 apiKey: 'your-api-key', // Optional, can use AZURE_API_KEY env varCODE
HIGHvoice/azure/README.md24 apiKey: 'your-api-key', // Optional, can use AZURE_API_KEY env varCODE
HIGHvoice/google/README.md21 apiKey: 'your-api-key', // Optional, can rely on GOOGLE_API_KEY or ADCCODE
HIGHvoice/google/src/index.ts161 * speechModel: { apiKey: 'your-api-key' },COMMENT
HIGHvoice/murf/README.md22 apiKey: 'your-api-key', // Optional, can use MURF_API_KEY env varCODE
HIGHvoice/speechify/README.md21 apiKey: 'your-api-key', // Optional, can use SPEECHIFY_API_KEY env varCODE
HIGHvoice/deepgram/README.md20 apiKey: 'your-api-key', // Optional, can use DEEPGRAM_API_KEY env varCODE
HIGHvoice/deepgram/README.md24 apiKey: 'your-api-key', // Optional, can use DEEPGRAM_API_KEY env varCODE
HIGHvoice/openai-realtime-api/src/index.ts141 * apiKey: 'your-api-key',COMMENT
HIGHvoice/elevenlabs/README.md20 apiKey: 'your-api-key', // Optional, can use ELEVENLABS_API_KEY env varCODE
HIGHvoice/playai/README.md20 apiKey: 'your-api-key', // Optional, can use PLAYAI_API_KEY env varCODE
HIGH⚡voice/google-gemini-live-api/src/index.ts65 * apiKey: 'your-api-key',COMMENT
HIGH⚡voice/google-gemini-live-api/src/index.ts75 * speechModel: { name: 'gemini-2.0-flash-live-001', apiKey: 'your-api-key' },COMMENT
HIGH⚡voice/google-gemini-live-api/src/index.ts79 * apiKey: 'your-api-key',COMMENT
HIGH⚡voice/openai/README.md20 apiKey: 'your-api-key', // Optional, can use OPENAI_API_KEY env varCODE
HIGH⚡voice/openai/README.md24 apiKey: 'your-api-key', // Optional, can use OPENAI_API_KEY env varCODE
HIGH⚡voice/openai/README.md33 apiKey: 'your-api-key',CODE
HIGH⚡voice/openai/README.md42 apiKey: 'your-api-key',CODE
HIGHpackages/create-mastra/CHANGELOG.md2006- Improve the overall flow of the `create-mastra` CLI by first asking all questions and then creating the project structCODE
HIGHpackages/create-mastra/CHANGELOG.md2014- Improve the overall flow of the `create-mastra` CLI by first asking all questions and then creating the project structCODE
HIGHpackages/core/scripts/generate-model-docs.ts106 if (/_API_KEY$|_KEY$|_PAT$/.test(envVar)) return 'your-api-key';CODE
HIGHpackages/cli/src/commands/init/utils.test.ts264 expect(contents).toBe('ANTHROPIC_API_KEY=your-api-key\n');CODE
HIGHpackages/cli/src/commands/init/utils.ts674 `${key}=${apiKey || 'your-api-key'}\n`,CODE
HIGH…tes/template-customer-feedback-summarization/README.md25OPENAI_API_KEY=your-api-keyCODE
Slop Phrases45 hits · 66 pts
SeverityFileLineSnippetContext
LOWexplorations/longmemeval/src/commands/investigate.ts901 console.log(`\n💡 Don't forget to run: pnpm run sync-improved-om-qa\n`);CODE
MEDIUMdocs/styles/ai-tells/FigurativeWorth.yml15# dummy-subject "It's worth noting that" family, MicDrop the sentence-finalCOMMENT
MEDIUM⚡docs/styles/ai-tells/ClosingPleasantries.yml59 - Let me know if you need anything elseCODE
MEDIUM⚡docs/styles/ai-tells/ClosingPleasantries.yml60 - Let me know if you need further clarificationCODE
MEDIUM⚡docs/styles/ai-tells/ClosingPleasantries.yml61 - Let me know if you need any clarificationCODE
MEDIUMdocs/styles/ai-tells/SelfReference.yml8 - as mentioned earlierCODE
MEDIUMdocs/styles/ai-tells/SelfReference.yml13 - as discussed aboveCODE
MEDIUMexamples/agent/src/hitl-approval-recall.ts102 controller.enqueue({ type: 'text-delta', id: 'text-0', delta: 'All done — let me know if you need more.' });CODE
MEDIUMexamples/agent/src/mastra/agents/approval-demo-agent.ts95 delta: 'All done — let me know if you need anything else.',CODE
MEDIUMexamples/agent/src/mastra/agents/model-v2-agent.ts285 * Another research agent that should NOT be used (for demonstration purposes)COMMENT
MEDIUM…evals/src/scorers/llm/tool-call-accuracy/index.test.ts330 content: 'I cannot provide weather information without checking.',CODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json91 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json99 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json194 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json315 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json323 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-c1a4b69b.json418 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-a7373d50.json62 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-a7373d50.json70 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-a7373d50.json165 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-d4f909c5.json62 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-d4f909c5.json70 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-d4f909c5.json237 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json54 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json62 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json207 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json299 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json307 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-7316c0c7.json453 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-ec76f34b.json91 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-ec76f34b.json99 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-ec76f34b.json194 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-45e4713b.json62 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-45e4713b.json70 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-45e4713b.json230 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-99f429d7.json83 "text": "You will be calling just *one* primitive at a time to accomplish the user task, every call toCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-99f429d7.json91 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOW…s__/core-src-agent-agent-gemini.e2e/test-99f429d7.json186 "text": "\n You are a router in a network of specialized AI agents.\n Your job is to dCODE
LOWpackages/core/src/loop/network/index.ts242 ## Available Workflows in Network (make sure to use inputs corresponding to the input schema when calling a woCOMMENT
LOWpackages/core/src/loop/network/index.ts244 ## Available Tools in Network (make sure to use inputs corresponding to the input schema when calling a tool)COMMENT
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json8158 "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" plan has been fully executed and the task isCODE
MEDIUM…gs__/memory-integration-tests-src-agent-memory-v5.json5486 "text": "I'm unable to save messages directly, but I can help you with any information or assist you iCODE
MEDIUM…gs__/memory-integration-tests-src-agent-memory-v5.json5631 "text": "I'm unable to save messages or store any personal data. However, I can help you with anythingCODE
MEDIUM…-compat-src-provider-compats-openai-reasoning.e2e.json1917 "text": "The tool has been called with valid sample data. Let me know if you need anything else!"CODE
MEDIUM…ponents/MarkdownRenderer/markdown-renderer.stories.tsx127Here's a simple example:CODE
AI Slop Vocabulary20 hits · 47 pts
SeverityFileLineSnippetContext
MEDIUMstores/libsql/src/storage/domains/harness/index.ts157 return runPrune({ db: this.#db, domain: 'harness', targets, options, logger: this.logger });CODE
MEDIUMdocs/styles/ai-tells/FigurativeStays.yml24# ("stays robust," "stay aggregated," "stays blocked," "the map staysCOMMENT
MEDIUMdocs/styles/ai-tells/FigurativeNouns.yml57# "seamless" belongs to OverusedVocabulary, and "a grain of sand" andCOMMENT
MEDIUM⚡…/__recordings__/core-src-tools-provider-tools.e2e.json814 "event: response.output_text.done\ndata: {\"type\":\"response.output_text.done\",\"content_index\":0,\"item_idCODE
MEDIUM⚡…/__recordings__/core-src-tools-provider-tools.e2e.json815 "event: response.content_part.done\ndata: {\"type\":\"response.content_part.done\",\"content_index\":0,\"item_CODE
MEDIUM⚡…/__recordings__/core-src-tools-provider-tools.e2e.json816 "event: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"item\":{\"id\":\"msg_003b24CODE
MEDIUM⚡…/__recordings__/core-src-tools-provider-tools.e2e.json819 "data: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_003b244db9908ccb006a0aef0ea85481968f11de26CODE
MEDIUM…/__recordings__/core-src-tools-provider-tools.e2e.json1766 "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":1,\"content_block\":{\"type\":\CODE
MEDIUM…/__recordings__/core-src-tools-provider-tools.e2e.json1766 "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":1,\"content_block\":{\"type\":\CODE
MEDIUM…ings__/core-src-tools-provider-tools-ordering.e2e.json362 "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":22,\"delta\":{\"type\":\"citatiCODE
MEDIUMpackages/core/src/mastra/index.ts8003 this.#logger?.error('Failed to destroy harness during shutdown', {CODE
MEDIUMpackages/core/src/processors/processors/skills.test.ts38 instructions: '# Testing\n\nHelp write comprehensive tests.',CODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json3928 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json4081 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json4258 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json4463 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json4692 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUM…/memory-integration-tests-src-message-ordering-v6.json5881 "text": "I'll help you research weather patterns in California and create a comprehensive summary. LetCODE
MEDIUMpackages/mcp/src/client/configuration.e2e.test.ts318 // Adding a small delay or an explicit trigger if the fixture supported it would be more robust.COMMENT
MEDIUM…mplates/template-genui-data-explorer/package-lock.json15947 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Cross-Language Confusion (JS/TS)7 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…s/daytona/src/sandbox/mounts/s3-r2.integration.test.ts139print('5 cross-scope operations denied')CODE
HIGHpackages/rag/src/document/document.test.ts775 return FalseCODE
HIGHpackages/rag/src/document/document.test.ts776 return TrueCODE
HIGHpackages/rag/src/document/document.test.ts1057 print(i)CODE
HIGHpackages/rag/src/document/document.test.ts1274 print("Hello")CODE
HIGHpackages/rag/src/document/document.test.ts2901 print("Hello World")CODE
HIGHpackages/rag/src/document/document.test.ts3680 print(f"The result is {z}")CODE
Example Usage Blocks15 hits · 24 pts
SeverityFileLineSnippetContext
LOW.claude/skills/docs-audit/scripts/run-checks.sh6# Usage:COMMENT
LOW…ls/mastra-smoke-test/scripts/discover-release-scope.sh5# Usage:COMMENT
LOW…kills/mastra-smoke-test/scripts/check-versioning-pr.sh5# Usage:COMMENT
LOW⚡.claude/skills/builder-smoke-test/scripts/scaffold.sh22# Usage:COMMENT
LOW⚡.claude/skills/builder-smoke-test/scripts/preflight.sh14# Usage:COMMENT
LOW…e/skills/builder-smoke-test/scripts/seed-multi-user.sh20# Usage:COMMENT
LOW…e/skills/builder-smoke-test/scripts/wait-for-server.sh6# Usage:COMMENT
LOW…pg/src/storage/performance-indexes/performance-test.ts530// Example usageCOMMENT
LOW…ql/src/storage/performance-indexes/performance-test.ts543// Example usageCOMMENT
LOWmastracode/web/docker-compose.yml11# Usage:COMMENT
LOWscripts/install-example.js95// Example usageCOMMENT
LOWscripts/ignore-example.js102// Example usageCOMMENT
LOWscripts/generate-package-docs.ts291## How to useCOMMENT
LOWscripts/test-migration-e2e.sh11# Usage:COMMENT
LOW…plates/template-factory-self-hosted/docker-compose.yml3# Usage:COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/test-migration-e2e.sh137# Check if test directory existsCOMMENT
LOWscripts/test-migration-e2e.sh143# Check if test file existsCOMMENT
LOW.github/workflows/test-combined-stores.yml53 # Check if we should include vectorize testsCOMMENT
LOW.github/workflows/regenerate-provider-registry.yml95 # Check if an automated provider registry changeset already existsCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ates/template-customer-refund-agent/docs/local-demo.md3`npm run demo:local` uses mocked support and order data, with responses generated by OpenAI. Every identity, message, orCODE
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpackages/core/src/_types/ai-sdk.types.d.ts4676 export function getData(name: string): ValueOf<typeof data> {CODE
LOWpackages/rag/src/document/document.test.ts3956function processData(data) {CODE
LOW…odemod/src/test/__fixtures__/runtime-context.output.ts22function handleRequest(requestContext: RequestContext<MyContext>) {CODE
LOW…codemod/src/test/__fixtures__/runtime-context.input.ts22function handleRequest(runtimeContext: RuntimeContext<MyContext>) {CODE
Self-Referential Comments1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…/__recordings__/core-src-tools-provider-tools.e2e.json1754 "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_jCODE