Repository Analysis

triggerdotdev/trigger.dev

Trigger.dev – build and deploy fully‑managed AI agents and workflows

2.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of triggerdotdev/trigger.dev, a TypeScript project with 15,648 GitHub stars. SynthScan v2.0 examined 714,682 lines of code across 3183 source files, recording 1291 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 2.3 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.3
Adjusted Score
2.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
15.6K
Stars
TypeScript
Language
714.7K
Lines of Code
3.2K
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 2MEDIUM 139LOW 1150

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1291 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers794 hits · 816 pts
SeverityFileLineSnippetContext
LOWinternal-packages/database/src/transaction.ts51export function isPrismaRaceConditionError(error: unknown): boolean {CODE
LOWinternal-packages/clickhouse/src/errors.ts24export function getErrorGroupsListQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts154export function getErrorHourlyOccurrences(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/errors.ts232export function getErrorAffectedVersionsQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts265export function getErrorOccurrencesListQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts298export function createErrorOccurrencesQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts333export function createErrorOccurrencesByVersionQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts377export function getActiveErrorsSinceQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts414export function getOccurrenceCountsSinceQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/errors.ts447export function getOccurrenceCountSinceQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts232export function insertTaskRunsCompactArrays(ch: ClickhouseWriter, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts365export function insertRawTaskRunPayloadsCompactArrays(CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts441export function getPendingVersionIdsQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts453export function getTaskRunsCountQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts472export function getTaskRunExistsQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts487export function getTaskRunTagsQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts512export function getTaskActivityQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskRuns.ts687export function getTaskUsageByOrganization(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/sessions.ts113export function insertSessionsCompactArrays(ch: ClickhouseWriter, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/sessions.ts162export function getSessionsCountQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/sessions.ts177export function getSessionTagsQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskEvents.ts56export function getTraceSummaryQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskEvents.ts90export function getTraceDetailedSummaryQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/taskEvents.ts139export function getTraceEventsForExportQueryBuilder(CODE
LOWinternal-packages/clickhouse/src/taskEvents.ts165export function getSpanDetailsQueryBuilder(ch: ClickhouseReader, settings?: ClickHouseSettings) {CODE
LOWinternal-packages/clickhouse/src/taskEvents.ts306export function getLogsSearchListQueryBuilder(ch: ClickhouseReader) {CODE
LOWinternal-packages/clickhouse/src/client/client.ts1015function convertLogLevelToClickhouseLogLevel(logLevel?: LogLevel): ClickHouseLogLevel {CODE
LOWinternal-packages/rbac/src/fallback.ts468function toAuthenticatedEnvironment(env: RbacEnvironment): RbacEnvironment {CODE
LOWinternal-packages/llm-model-catalog/src/sync.test.ts73async function createGeminiProWithStaleBaseModelName(prisma: PrismaClient) {CODE
LOW…store/src/PostgresRunStore.controlPlaneAlertFk.test.ts15async function seedControlPlaneAlertPrereqs(prisma: PrismaClient, suffix: string) {CODE
LOW…re/src/PostgresRunStore.hydratorSelectPushdown.test.ts77function withCapturedTaskRunFindManyArgs(real: RunOpsPrismaClient) {CODE
LOW…run-store/src/PostgresRunStore.dedicatedSelect.test.ts151async function runAssociatedWaitpointScenario(CODE
LOW…run-store/src/PostgresRunStore.dedicatedSelect.test.ts219async function runCompletedWaitpointsScenario(CODE
LOW…run-store/src/PostgresRunStore.dedicatedSelect.test.ts277async function runBlockingTaskRunsScenario(CODE
LOWinternal-packages/run-store/src/runOpsStore.ts1870function splitEdgeRelationProjection(args: Record<string, unknown>): {CODE
LOWinternal-packages/run-store/src/runOpsStore.ts1917function splitWaitpointRelationProjection(args: Record<string, unknown>): {CODE
LOWinternal-packages/run-store/src/PostgresRunStore.ts477function isForeignPrismaKnownRequestError(error: unknown): error is {CODE
LOW…es/schedule-engine/src/engine/distributedScheduling.ts6export function calculateDistributedExecutionTime(CODE
LOW…ages/schedule-engine/src/engine/scheduleCalculation.ts3export function calculateNextScheduledTimestampFromNow(schedule: string, timezone: string | null) {CODE
LOW…ages/schedule-engine/src/engine/scheduleCalculation.ts7export function calculateNextScheduledTimestamp(CODE
LOW…ages/schedule-engine/src/engine/scheduleCalculation.ts38export function previousScheduledTimestamp(CODE
LOWinternal-packages/emails/src/index.tsx166function formatErrorMessageForSubject(message?: string) {CODE
LOWinternal-packages/tsql/src/index.ts248export function isColumnReferencedInExpression(CODE
LOWinternal-packages/tsql/src/query/schema.ts610export function getVirtualColumnExpression(col: ColumnSchema): string | undefined {CODE
LOWinternal-packages/tsql/src/query/schema.ts745export function getInternalValueFromMapping(CODE
LOWinternal-packages/tsql/src/query/schema.ts774export function getInternalValueFromMappingCaseInsensitive(CODE
LOWinternal-packages/tsql/src/query/ast.ts650export function createSelectSetQueryFromQueries(CODE
LOWinternal-packages/tsql/src/query/printer.test.ts975 function createJoinTextColumnContext() {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts2070 function createVirtualColumnContext() {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts2313 function createCostExpressionContext() {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts2459 function createMetadataTestContext() {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts3143 function createFieldMappingContext(): PrinterContext {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts3273 function createHiddenTenantContext(): PrinterContext {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts3285 function createHiddenFilterContext(): PrinterContext {CODE
LOWinternal-packages/tsql/src/query/printer.test.ts3460 function createRequiredFiltersContext(): PrinterContext {CODE
LOWinternal-packages/tsql/src/query/parse_string.ts6function replaceCommonEscapeCharacters(text: string): string {CODE
LOWinternal-packages/tsql/src/query/database.ts410function constantTypeToSerializedFieldType(CODE
LOWinternal-packages/tsql/src/query/escape.ts89export function escapeClickHouseIdentifier(identifier: string): string {CODE
LOWinternal-packages/tsql/src/query/time_buckets.ts86export function calculateTimeBucketInterval(CODE
LOWinternal-packages/tsql/src/query/validator.ts519function extractColumnFromExpression(CODE
734 more matches not shown…
Decorative Section Separators133 hits · 392 pts
SeverityFileLineSnippetContext
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts155 // ─── Arithmetic functions ─────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts176 // ─── Mathematical functions ───────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts212 // ─── String functions ─────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts285 // ─── Null functions ───────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts300 // ─── Conditional functions ────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts313 // ─── Comparison functions ─────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts327 // ─── Logical functions ────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts339 // ─── Type conversion functions ────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts383 // ─── Date/time functions ──────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts496 // ─── Interval functions ───────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts512 // ─── Array functions ──────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts562 // ─── JSON functions ───────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts612 // ─── Tuple functions ──────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts623 // ─── Map functions ────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts636 // ─── Hash functions ───────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts666 // ─── URL functions ────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts699 // ─── UUID functions ───────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts719 // ─── Misc functions ───────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts747 // ─── Aggregate functions ──────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts792 // ─── Conditional aggregate functions ──────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/tsqlFunctions.test.ts823 // ─── Search functions ─────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/clickhouse/src/sessions.ts141// ─── read path ───────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/tsql/src/grammar/TSQLLexer.ts806 // ───── opening tag test ─────COMMENT
MEDIUMinternal-packages/tsql/src/query/parser.ts226 // ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/tsql/src/query/parser.ts228 // ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/tsql/src/query/parser.ts315 // ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/tsql/src/query/parser.ts317 // ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/types.ts3// ── Templates ────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/types.ts36// ── Instances ────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/types.ts66// ── Snapshots ────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/client.ts36// ── HTTP transport (shared plumbing) ─────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/client.ts108// ── Error ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMinternal-packages/compute/src/client.ts121// ── Namespaces ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ckages/core/src/v3/test/test-session-stream-manager.ts218 // ── Test driver API (not part of SessionStreamManager interface) ──────COMMENT
MEDIUM…ages/core/src/v3/test/test-realtime-streams-manager.ts126 // ── Test driver API (not part of RealtimeStreamsManager interface) ──────COMMENT
MEDIUMpackages/core/src/v3/test/test-input-stream-manager.ts150 // ── Test driver API (not part of InputStreamManager interface) ──────────COMMENT
MEDIUMpackages/core/src/v3/schemas/schemas.ts249// ── Skills ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/src/rbac.ts151// ── Delegated user-actor token grammar ───────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chat-snapshot.test.ts15// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chat-snapshot.test.ts70// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/mockChatAgent.test.ts13// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/mockChatAgent.test.ts40// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chatHandoverBackends.test.ts13// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chatHandoverBackends.test.ts87// ── chat.customAgent + headStart handover ───────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chatHandoverBackends.test.ts342// ── chat.createSession + headStart handover ──────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/replay-session-in.test.ts11// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/replay-session-in.test.ts42// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/replay-session-in.test.ts152// ── Cursor scan (non-blocking records read, not an SSE drain) ──────────COMMENT
MEDIUMpackages/trigger-sdk/test/pending-message-drain.test.ts14// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/pending-message-drain.test.ts86// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chatHandover.test.ts12// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chatHandover.test.ts32// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/merge-by-id.test.ts13// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/merge-by-id.test.ts31// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chat-transport-events.test.ts9// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/chat-transport-events.test.ts62// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/recovery-boot.test.ts12// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/recovery-boot.test.ts62// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/replay-session-out.test.ts9// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/trigger-sdk/test/replay-session-out.test.ts55// ── Tests ──────────────────────────────────────────────────────────────COMMENT
73 more matches not shown…
Over-Commented Block238 hits · 232 pts
SeverityFileLineSnippetContext
LOWinternal-packages/rbac/src/fallback.ts81 ): Promise<BearerAuthResult> {COMMENT
LOWinternal-packages/rbac/src/index.ts21 verifyUserActorToken,COMMENT
LOWinternal-packages/rbac/src/index.ts101 } catch (err) {COMMENT
LOW…packages/run-ops-database/prisma/schema.parity.test.ts1import { describe, expect, it } from "vitest";COMMENT
LOWinternal-packages/run-ops-database/src/index.ts1// The generated client class is named PrismaClient in BOTH packages; re-export itCOMMENT
LOW…es/llm-model-catalog/scripts/generate-model-catalog.sh1#!/usr/bin/env bashCOMMENT
LOW…/run-store/src/PostgresRunStore.dedicatedRepro.test.ts1// Store-level regression suite for the run-ops split.COMMENT
LOW…/run-store/src/PostgresRunStore.dedicatedRepro.test.ts141COMMENT
LOW…/run-store/src/PostgresRunStore.dedicatedRepro.test.ts681 //COMMENT
LOW…/run-store/src/PostgresRunStore.dedicatedRepro.test.ts1301 // waitpoint's blocking edge, run connection and completing snapshot all CO-LOCATE WITH THE RUNCOMMENT
LOW…l-packages/run-store/src/runOpsStore.snapshots.test.ts1// RunStore run-ops persistence — snapshots, against the REAL dedicated split topology.COMMENT
LOW…tore/src/runOpsStore.residencyMismatchFallback.test.ts1// RED→GREEN lock for RoutingRunStore.findRun's ON-MISS FAN-OUT for a CLASSIFIABLE id.COMMENT
LOW…ackages/run-store/src/runOpsStore.groupedReads.test.ts1// RED→GREEN for the grouped-read primitive `RoutingRunStore.findRunsByIds`.COMMENT
LOWinternal-packages/run-store/src/scheduleSeam.test.ts1// SCHEDULES over the run-ops cutover SEAM.COMMENT
LOW…tore/src/PostgresRunStore.connectedRunsBounded.test.ts1// RED→GREEN for bounding the connected-runs read path so it can never emit an unbounded id list.COMMENT
LOW…tore/src/PostgresRunStore.batchProbeReadClient.test.ts1// RED→GREEN repro for the run-ops split BASELINE BLOCKER:COMMENT
LOW…c/PostgresRunStore.connectedRunsIncludeBounded.test.ts1// RED→GREEN for bounding the DISPLAY `connectedRuns` RELATION hydration (findWaitpoint /COMMENT
LOW…/run-store/src/runOpsStore.flipWindowDuplicate.test.ts1// DOCUMENTS the bounded concurrent-flip-window cross-DB idempotencyCOMMENT
LOW…tore/src/PostgresRunStore.crossGenerationError.test.ts1// Cross-generation Prisma error normalization LOCK.COMMENT
LOW…/run-store/src/PostgresRunStore.writeAtomicity.test.ts1// Cross-DB WRITE ATOMICITY against the REAL dedicated split topology.COMMENT
LOW…ckages/run-store/src/checkpointBatchReplicaLag.test.ts1// Repro for the checkpoint WAIT_FOR_BATCH replica-lag stall (createCheckpoint.server.ts:148-181).COMMENT
LOW…ages/run-store/src/runOpsStore.threeDbTopology.test.ts1// Track 2 THREE-database topology proof. Before Track 2 the legacy run-ops client was an ALIAS of theCOMMENT
LOW…es/run-store/src/runOpsStore.routedReadPrimary.test.ts1// RED→GREEN repro for the routed-read CLIENT DROP: RoutingRunStore's runId-routed / fan-out readsCOMMENT
LOW…ges/run-store/src/runOpsStore.idempotencyDedup.test.ts1// Idempotency cross-DB dedup LOCK against the REAL two-physical-DB split.COMMENT
LOWinternal-packages/run-store/src/runOpsStore.ts181 }COMMENT
LOWinternal-packages/run-store/src/runOpsStore.ts241 const args = selectOrIncludeArgs(argsOrClient);COMMENT
LOW…kages/run-store/src/runOpsStore.readAfterWrite.test.ts1// RED→GREEN repro for the run-ops split READ-AFTER-WRITE hole:COMMENT
LOWinternal-packages/run-store/src/PostgresRunStore.ts461};COMMENT
LOW…l-packages/dashboard-agent/src/dashboard-agent.eval.ts1// Evals for the dashboard agent: they run the REAL model through the agent andCOMMENT
LOWinternal-packages/dashboard-agent/src/tool-schemas.ts161 }),COMMENT
LOWinternal-packages/dashboard-agent/src/index.ts1// The webapp imports the task TYPE from here for end-to-end transport typing:COMMENT
LOWinternal-packages/schedule-engine/src/engine/index.ts201 // Without this fallback, every deploy / cron edit would clobber theCOMMENT
LOWinternal-packages/tsql/src/query/property_types.ts681 // if (!context.team) {COMMENT
LOWinternal-packages/sso/src/index.ts61 const module = await importer(moduleName);COMMENT
LOWinternal-packages/testcontainers/src/utils.ts301 // 1. This module is imported by globalSetup files that run before anyCOMMENT
LOWinternal-packages/run-engine/src/run-queue/index.ts3021 // Enqueue message with optional fast path.COMMENT
LOWinternal-packages/run-engine/src/engine/index.ts1341 waitpointId: taskRun.associatedWaitpoint.id,COMMENT
LOW…-packages/run-engine/src/engine/tests/debounce.test.ts3081 );COMMENT
LOW…rc/engine/tests/completeWaitpointReadResidency.test.ts1// completeWaitpoint re-read residency — the COMPLETED-waitpoint re-read insideCOMMENT
LOW…es/run-engine/src/engine/tests/lifecycleRouter.test.ts441 );COMMENT
LOW…e/src/engine/tests/datetimeWaitpointColocation.test.ts1// DATETIME / MANUAL waitpoint co-location with the owning run (run-ops split).COMMENT
LOW…run-engine/src/engine/tests/crossVersionCompat.test.ts1import { heteroPostgresTest, HETERO_PINNED_ICU_COLLATION } from "@internal/testcontainers";COMMENT
LOW…ckages/run-engine/src/engine/systems/debounceSystem.ts481 debounce: DebounceOptions;COMMENT
LOWdocker/docker-compose.extras.yml1# Optional services for advanced local-dev workflows. Pair withCOMMENT
LOWdocker/scripts/wait-for-it.sh1#!/bin/shCOMMENT
LOW.zed/tasks.json1[COMMENT
LOW.zed/tasks.json21 // * `always` — always hide the terminal tab, hide the pane also if it was the last tab in itCOMMENT
LOWscripts/batch-concurrency-cleaner.sh1#!/bin/bashCOMMENT
LOWscripts/bundleSdkDocs.ts1import * as fs from "node:fs/promises";COMMENT
LOWpackages/core/test/resourceCatalog.test.ts1import { afterEach, describe, expect, it, vi } from "vitest";COMMENT
LOWpackages/core/src/v3/types/tasks.ts521 [K in keyof TTasks]: TaskRunResultFromTask<TTasks[K]>;COMMENT
LOWpackages/core/src/v3/auth/environment.ts1// Slim shape of an authenticated runtime environment, structural andCOMMENT
LOWpackages/core/src/v3/apiClient/runStream.ts221 // sockets where `fetch()` blocks forever waiting on a deadCOMMENT
LOWpackages/core/src/v3/isomorphic/friendlyId.ts1import { customAlphabet } from "nanoid";COMMENT
LOWpackages/core/src/v3/sessionStreams/manager.ts41 * {@link ApiClient.subscribeToSessionStream} instead of the run inputCOMMENT
LOWpackages/core/src/v3/sessionStreams/manager.ts61 // Per-stream lower-bound timestamp filter. When set, records whoseCOMMENT
LOWpackages/plugins/src/databaseConfig.ts1// Database connections for a plugin that owns its own client. The hostCOMMENT
LOWpackages/plugins/src/rbac.ts281 // API routes (Bearer token): one DB query → identity + pre-built abilityCOMMENT
LOWpackages/plugins/src/rbac.ts301 // removed, the PAT auto-narrows. The cap is set at PAT creation andCOMMENT
LOWpackages/plugins/src/rbac.ts341 // in canonical order (highest authority first). Returns null when noCOMMENT
178 more matches not shown…
Structural Annotation Overuse38 hits · 72 pts
SeverityFileLineSnippetContext
LOWAGENTS.md195### Step 1: Start Webapp in BackgroundCOMMENT
LOWAGENTS.md203### Step 2: Start Trigger Dev in BackgroundCOMMENT
LOWAGENTS.md211### Step 3: Trigger and Monitor Tasks via MCPCOMMENT
LOW…l-packages/dashboard-agent/src/dashboard-agent.test.ts169 // Step 1: the model calls list_errors. Step 2: it answers.COMMENT
LOWinternal-packages/tsql/src/query/schema.ts906 // Step 0: Remove internal prefixes that leak implementation detailsCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts909 // Step 1: Remove tenant isolation and required filter conditionsCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts924 // Step 2: Clean up any leftover empty WHERE conditions or double parenthesesCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts950 // Step 3: Replace fully qualified column references first (table.column)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts965 // Step 4: Replace standalone table names (after column references to avoid partial matches)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts974 // Step 5: Replace standalone column names (for unqualified references)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts988 // Step 6: Remove redundant column aliases like "run_id AS run_id"COMMENT
LOWinternal-packages/tsql/src/query/schema.ts991 // Step 7: Remove table aliases like "runs AS runs"COMMENT
LOWinternal-packages/tsql/src/query/database.ts282 // NOTE: This method requires database queries to fetch:COMMENT
LOWinternal-packages/tsql/src/query/database.ts366 // NOTE: This method requires extensive database/ORM access:COMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts292 // Step 1: Find the createdAt of the sinceSnapshotIdCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts310 // Step 2: Fetch snapshots WITHOUT waitpoints to avoid N×M data explosionCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts344 // Step 3: Get waitpoint IDs for the LATEST snapshot only (first in desc order)COMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts379 // Step 4: Fetch waitpoints in chunks to avoid NAPI string conversion limitsCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts382 // Step 5: Build enhanced snapshots - only latest gets waitpoints, others get empty arraysCOMMENT
LOW…/run-engine/src/engine/systems/pendingVersionSystem.ts74 // Step 1: ask the injected lookup (typically ClickHouse-backed) forCOMMENT
LOW…/run-engine/src/engine/systems/pendingVersionSystem.ts91 // Step 2: fetch the actual rows from the primary by id, filtered byCOMMENT
LOW…kages/trigger-sdk/skills/trigger-cost-savings/SKILL.md50### Step 1: Static analysis (source code)COMMENT
LOW…kages/trigger-sdk/skills/trigger-cost-savings/SKILL.md64### Step 2: Run analysis (requires MCP tools)COMMENT
LOW…kages/trigger-sdk/skills/trigger-cost-savings/SKILL.md71### Step 3: Generate recommendationsCOMMENT
LOWpackages/cli-v3/src/deploy/buildImage.ts250 // Step 4: Build and push the imageCOMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2753 // Step 1: A claims with token "A".COMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2761 // Step 2: simulate TTL expiry — DEL the slot directly so theCOMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2767 // Step 3: B claims with token "B".COMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2775 // Step 4: A's late release. MUST be a no-op.COMMENT
LOW…/webapp/app/v3/services/finalizeDeploymentV2.server.ts257 // Step 1: We need to "login" to the registryCOMMENT
LOW…/webapp/app/v3/services/finalizeDeploymentV2.server.ts276 // Step 2: We need to run the depot push commandCOMMENT
LOW…ebapp/app/routes/_app.orgs.$organizationSlug/route.tsx68// IMPORTANT: Make sure to update shouldRevalidate if this loader depends on search paramsCOMMENT
LOWapps/webapp/test/objectStore.test.ts419 // Step 1: Upload old data without protocol (using default provider)COMMENT
LOWapps/webapp/test/objectStore.test.ts438 // Step 2: Configure new provider (S3) and set default protocolCOMMENT
LOWapps/webapp/test/objectStore.test.ts445 // Step 3: Upload new data with explicit protocolCOMMENT
LOWapps/webapp/test/objectStore.test.ts459 // Step 4: Verify both can be downloadedCOMMENT
LOWapps/webapp/test/replay-after-crash.test.ts124 // Step 1: read snapshot — returns undefined (fresh boot, no snap).COMMENT
LOWapps/webapp/test/replay-after-crash.test.ts128 // Step 2: replay tail.COMMENT
Verbosity Indicators30 hits · 58 pts
SeverityFileLineSnippetContext
LOW…l-packages/dashboard-agent/src/dashboard-agent.test.ts169 // Step 1: the model calls list_errors. Step 2: it answers.COMMENT
LOWinternal-packages/tsql/src/query/schema.ts906 // Step 0: Remove internal prefixes that leak implementation detailsCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts909 // Step 1: Remove tenant isolation and required filter conditionsCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts924 // Step 2: Clean up any leftover empty WHERE conditions or double parenthesesCOMMENT
LOWinternal-packages/tsql/src/query/schema.ts950 // Step 3: Replace fully qualified column references first (table.column)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts965 // Step 4: Replace standalone table names (after column references to avoid partial matches)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts974 // Step 5: Replace standalone column names (for unqualified references)COMMENT
LOWinternal-packages/tsql/src/query/schema.ts988 // Step 6: Remove redundant column aliases like "run_id AS run_id"COMMENT
LOWinternal-packages/tsql/src/query/schema.ts991 // Step 7: Remove table aliases like "runs AS runs"COMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts292 // Step 1: Find the createdAt of the sinceSnapshotIdCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts310 // Step 2: Fetch snapshots WITHOUT waitpoints to avoid N×M data explosionCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts344 // Step 3: Get waitpoint IDs for the LATEST snapshot only (first in desc order)COMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts379 // Step 4: Fetch waitpoints in chunks to avoid NAPI string conversion limitsCOMMENT
LOW…n-engine/src/engine/systems/executionSnapshotSystem.ts382 // Step 5: Build enhanced snapshots - only latest gets waitpoints, others get empty arraysCOMMENT
LOW…/run-engine/src/engine/systems/pendingVersionSystem.ts74 // Step 1: ask the injected lookup (typically ClickHouse-backed) forCOMMENT
LOW…/run-engine/src/engine/systems/pendingVersionSystem.ts91 // Step 2: fetch the actual rows from the primary by id, filtered byCOMMENT
LOWpackages/cli-v3/src/deploy/buildImage.ts250 // Step 4: Build and push the imageCOMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2753 // Step 1: A claims with token "A".COMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2761 // Step 2: simulate TTL expiry — DEL the slot directly so theCOMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2767 // Step 3: B claims with token "B".COMMENT
LOWpackages/redis-worker/src/mollifier/buffer.test.ts2775 // Step 4: A's late release. MUST be a no-op.COMMENT
LOW…/webapp/app/v3/services/finalizeDeploymentV2.server.ts257 // Step 1: We need to "login" to the registryCOMMENT
LOW…/webapp/app/v3/services/finalizeDeploymentV2.server.ts276 // Step 2: We need to run the depot push commandCOMMENT
LOWapps/webapp/app/routes/metrics.ts6 // If the TRIGGER_METRICS_AUTH_PASSWORD is set, we need to check if the request has the correct password in auth headeCOMMENT
LOWapps/webapp/test/objectStore.test.ts419 // Step 1: Upload old data without protocol (using default provider)COMMENT
LOWapps/webapp/test/objectStore.test.ts438 // Step 2: Configure new provider (S3) and set default protocolCOMMENT
LOWapps/webapp/test/objectStore.test.ts445 // Step 3: Upload new data with explicit protocolCOMMENT
LOWapps/webapp/test/objectStore.test.ts459 // Step 4: Verify both can be downloadedCOMMENT
LOWapps/webapp/test/replay-after-crash.test.ts124 // Step 1: read snapshot — returns undefined (fresh boot, no snap).COMMENT
LOWapps/webapp/test/replay-after-crash.test.ts128 // Step 2: replay tail.COMMENT
Fake / Example Data38 hits · 38 pts
SeverityFileLineSnippetContext
LOWinternal-packages/emails/emails/mfa-enabled.tsx16 userEmail: "user@example.com",CODE
LOWinternal-packages/emails/emails/mfa-disabled.tsx16 userEmail: "user@example.com",CODE
LOWinternal-packages/tsql/src/grammar/TSQLParser.ts306 "keywordForAlias", "alias", "identifier", "enumValue", "placeholder",CODE
LOWinternal-packages/tsql/src/query/printer.ts250 case "placeholder":CODE
LOWinternal-packages/tsql/src/query/printer.ts1602 } else if ((tableExpr as Placeholder).expression_type === "placeholder") {CODE
LOWinternal-packages/tsql/src/query/ast.ts471 expression_type: "placeholder";CODE
LOWinternal-packages/tsql/src/query/parser.ts1751 return { expression_type: "placeholder", expr: this.visitAsExpr(ctx.columnExpr()) };CODE
LOWinternal-packages/sso/src/loader.test.ts255 const decision = await controller.decideRouteForEmail("admin@example.com");CODE
LOWinternal-packages/sso/src/loader.test.ts270 email: "user@example.com",CODE
LOWtests/e2e/e2e.spec.ts11 await page.getByLabel("Full name").type("John Doe");CODE
LOWpackages/core/test/eventFilterMatches.test.ts26 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts45 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts64 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts83 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts102 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts121 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts140 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts162 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts181 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts200 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts220 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts242 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts263 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts287 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts311 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts333 street: "123 Main St",CODE
LOWpackages/core/test/eventFilterMatches.test.ts355 street: "123 Main St",CODE
LOWpackages/core/test/flattenAttributes.test.ts582 "user.details.name": "John Doe",CODE
LOWpackages/core/test/flattenAttributes.test.ts591 name: "John Doe",CODE
LOWapps/webapp/app/components/runs/v3/RunFilters.tsx1722 "label" | "placeholder" | "paramKey" | "validate" | "inputWidth"CODE
LOWapps/webapp/app/components/runs/v3/RunFilters.tsx1772 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOWapps/webapp/app/components/runs/v3/RunFilters.tsx1820 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOWapps/webapp/app/components/runs/v3/RunFilters.tsx1872 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOWapps/webapp/app/components/runs/v3/BatchFilters.tsx232 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOW…ebapp/app/components/runs/v3/WaitpointTokenFilters.tsx405 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOW…ebapp/app/components/runs/v3/WaitpointTokenFilters.tsx486 props: Omit<IdFilterDropdownProps, "label" | "placeholder" | "paramKey" | "validate">CODE
LOWapps/webapp/test/errorGroupWebhook.test.ts31 name: "Acme Corp",CODE
LOWapps/webapp/test/errorGroupWebhook.test.ts68 name: "Acme Corp",CODE
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWscripts/update-e2e-package.sh11# Check if package-lock.json exists in the current directoryCOMMENT
LOWpackages/cli-v3/install-mcp.sh89# Check if the CLI file existsCOMMENT
LOWpackages/cli-v3/install-mcp.sh110 # Check if Claude config exists, create if it doesn'tCOMMENT
LOWpackages/cli-v3/install-mcp.sh185 # Check if Claude Desktop config exists, create if it doesn'tCOMMENT
LOWpackages/cli-v3/install-mcp.sh260 # Check if Cursor config exists, create if it doesn'tCOMMENT
LOWpackages/cli-v3/install-mcp.sh335 # Check if VS Code config exists, create if it doesn'tCOMMENT
LOWpackages/cli-v3/install-mcp.sh410 # Check if Crush config exists, create if it doesn'tCOMMENT
LOWpackages/cli-v3/install-mcp.sh489 # Check if Windsurf config exists, create if it doesn'tCOMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM…tore/src/runOpsStore.residencyMismatchFallback.test.ts9// the classifiable path equally robust.COMMENT
MEDIUMinternal-packages/testcontainers/src/index.ts548 // Add more robust connection optionsCOMMENT
LOWhosting/k8s/setup-kind.sh19# If you're only supporting newer relases, you can just use `kind create cluster` here.COMMENT
MEDIUM…/test/waitpointPresenter.danglingConnectedRuns.test.ts165describe("WaitpointPresenter#connectedRunIdsOn is robust to dangling (FK-free) connection rows", () => {CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHinternal-packages/tsql/src/query/printer.ts154 print(node: SelectQuery | SelectSetQuery): PrintResult {CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHapps/webapp/memory-leak-detector.js947 node memory-leak-detector.js --token "your-admin-token" --api-key "your-api-key" --verboseCODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…rnal-packages/otlp-importer/scripts/generate-protos.sh3# Define the application root and directories for generated files and proto filesCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/cli-v3/src/commands/init.ts152 // scaffold by running `trigger.dev init` non-interactively, and the prompt wouldCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMhosting/k8s/helm/values.yaml21 # When disabled, you can also use extraEnvVars and podAnnotations for secret injectionCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/batch-concurrency-cleaner.sh10# Usage:COMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWinternal-packages/schedule-engine/src/engine/index.ts269 finalAttempt: false, // TODO: implement retry logicCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWapps/webapp/app/entry.server.tsx49export default function handleRequest(CODE