Repository Analysis

TracecatHQ/tracecat

Open-source security automation platform for teams and AI agents

15.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of TracecatHQ/tracecat, a Python project with 3,782 GitHub stars. SynthScan v2.0 examined 986,987 lines of code across 4042 source files, recording 13081 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 15.1 places this repository in the Moderate AI signal 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).

15.1
Adjusted Score
15.1
Raw Score
100%
Time Factor
2026-08-29
Last Push
3.8K
Stars
Python
Language
987.0K
Lines of Code
4.0K
Files
13.1K
Pattern Hits
2026-08-29
Scan Date
0.06
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 3HIGH 259MEDIUM 943LOW 11876

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 13081 distinct pattern matches across 26 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 Identifiers9375 hits · 8091 pts
SeverityFileLineSnippetContext
LOWfrontend/tests/case-comments-section.test.tsx244function createAgentPresetFixtures(): AgentPresetReadMinimal[] {CODE
LOWfrontend/tests/memo-render-count.test.tsx108function makeCompletedToolMessages(toolInput: unknown, toolOutput: unknown) {CODE
LOWfrontend/tests/org-vcs-github-manual-form.test.tsx37function installDeferredFileReader() {CODE
LOWfrontend/tests/use-chat.test.tsx57function createSessionReadWithMessages(CODE
LOWfrontend/tests/workspace-sync-settings.test.tsx113function createCatalogMappingRequirement(CODE
LOWfrontend/tests/workspace-sync-settings.test.tsx139function createMcpMappingRequirement(CODE
LOWfrontend/tests/smoke/utils/auth.ts87export async function createOrganizationInvitation(CODE
LOWfrontend/src/types/workspace-chat-artifacts.ts231export function parseWorkspaceChatArtifactStreamPart(CODE
LOW…rc/app/organization/settings/service-accounts/page.tsx11export default function OrganizationServiceAccountsPage() {CODE
LOW…src/app/organization/settings/custom-registry/page.tsx10export default function CustomRegistrySettingsPage() {CODE
LOW…anization/settings/custom-registry/versions/layout.tsx7export default function CustomRegistryVersionsLayout({CODE
LOW…rganization/settings/custom-registry/versions/page.tsx13export default function CustomRegistryVersionsPage() {CODE
LOWfrontend/src/app/admin/registry/settings/page.tsx5export default function AdminRegistrySettingsPage() {CODE
LOWfrontend/src/app/admin/registry/versions/page.tsx5export default function AdminRegistryVersionsPage() {CODE
LOW…kspaceId]/workflows/[workflowId]/executions/layout.tsx49function WorkflowExecutionsPanelGroup({CODE
LOW…src/app/workspaces/[workspaceId]/integrations/page.tsx91function getIntegrationDisplayType(CODE
LOW…p/workspaces/[workspaceId]/service-accounts/layout.tsx7export default function WorkspaceServiceAccountsLayout({CODE
LOW…app/workspaces/[workspaceId]/service-accounts/page.tsx7export default function WorkspaceServiceAccountsPage() {CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx92function connectionSpecFromIntegration(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx145function workspaceIntegrationToCatalogEntry(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx176function workspaceIntegrationMatches(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx240function isCatalogEntryConnectable(entry: PlatformMCPCatalogRead) {CODE
LOWfrontend/src/providers/builder.tsx51function readPersistedSelectedNode({CODE
LOWfrontend/src/providers/builder.tsx73function writePersistedSelectedNode({CODE
LOWfrontend/src/providers/agent-preset-detail.tsx43export function AgentPresetDetailProvider({CODE
LOWfrontend/src/providers/agent-preset-detail.tsx66export function useAgentPresetDetailContext(): AgentPresetDetailContextValue | null {CODE
LOWfrontend/src/components/error-boundaries.tsx159export function WorkflowBuilderErrorBoundary({CODE
LOWfrontend/src/components/error-boundaries.tsx180export function TemplatePillErrorBoundary({CODE
LOWfrontend/src/components/mcp-catalog-icons.tsx16function createEmbeddedCatalogIcon(href: string, darkHref?: string) {CODE
LOWfrontend/src/components/dynamic-lucide-icon.tsx7function buildLegacyIconCandidates(rawName: string): string[] {CODE
LOWfrontend/src/components/provider-config-form.tsx573export function ProviderConfigFormSkeleton() {CODE
LOWfrontend/src/components/icons.tsx301function createCatalogIconRenderer(CODE
LOWfrontend/src/components/icons.tsx314function createColoredLucideRenderer(Icon: LucideIcon, colorClassName: string) {CODE
LOW…nd/src/components/entitlement-required-empty-state.tsx25export function EntitlementRequiredEmptyState({CODE
LOW…ntend/src/components/service-account-json-uploader.tsx28export function ServiceAccountJsonUploader({CODE
LOW…d/src/components/organization/workspace-mcp-access.tsx103function getDefaultCustomExpiration(): string {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2486 function handleProviderCredentialsSaved() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2496 function handleOpenAddCatalogModel(providerSlug: string) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2503 function handleOpenEditCatalogModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx257function buildCloudCatalogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx304function buildCatalogCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx350function buildCatalogUpdatePayload(values: CloudCatalogModelFormValues) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx575function getCustomSourceFlavorLabel(flavor?: string | null): string | null {CODE
LOW…end/src/components/organization/org-settings-agent.tsx638function getCustomSourceModelTitle(CODE
LOW…end/src/components/organization/org-settings-agent.tsx688function canEnableBuiltInCatalogModel(model: BuiltInCatalogEntry): boolean {CODE
LOW…end/src/components/organization/org-settings-agent.tsx720function getProviderDialogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx736function buildProviderCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx749function buildProviderUpdatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx1192function ProviderAllowlistModelRow({CODE
LOW…end/src/components/organization/org-settings-agent.tsx2209 function invalidateOrganizationAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2221 function invalidateBuiltInAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2321 async function handleDeleteBuiltInCredentials(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2380 async function handleEnableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2415 async function handleDisableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2451 async function handleRefreshCustomProvider(source: CustomSourceCard) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2469 async function handleDeleteCustomProvider(provider: AgentCustomProviderRead) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2517 function handleOpenDeleteCatalogModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2525 async function handleConfirmDeleteCatalogEntry(entry: AgentCatalogRead) {CODE
LOW…end/src/components/organization/org-settings-audit.tsx218function normalizePayloadAttribute(value: string | null | undefined): string {CODE
LOW…mponents/organization/org-settings-custom-registry.tsx53export function OrgSettingsCustomRegistryForm() {CODE
9315 more matches not shown…
Decorative Section Separators648 hits · 2176 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/components/skills/use-skills-studio.ts188 // ── State ──────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts216 // ── Data fetching ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts258 // ── Derived ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts285 // ── Effects ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts314 // ── Stable callbacks ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts335 // ── Handlers ───────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts786 // ── Return ─────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6333// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6335// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/conftest.py281# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py283# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py296# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py298# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py1997# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2000# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py146# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py148# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py578# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py580# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2667# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2669# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py3162# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py3164# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py437# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py439# =============================================================================COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_registry_repository.py81# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py83# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py255# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py257# =============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py43# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py45# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py53# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py55# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py134# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py136# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py230# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py232# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py472# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py474# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py553# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py555# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py588# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py590# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py639# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py641# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py26# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py28# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py74# ==============================================================================COMMENT
588 more matches not shown…
Unused Imports1004 hits · 953 pts
SeverityFileLineSnippetContext
LOWtests/_route_utils.py16CODE
LOWtests/shared.py3CODE
LOWtests/temporal/test_payload_encryption.py3CODE
LOWtests/temporal/test_agent_config_sandbox_parity.py3CODE
LOWtests/temporal/test_workflow_concurrency_limits.py8CODE
LOWtests/temporal/test_agent_config_workflow_boundary.py9CODE
LOWtests/temporal/test_large_collection_regressions.py10CODE
LOWtests/temporal/test_dsl_workflow_replay.py3CODE
LOWtests/unit/test_temporal_errors.py1CODE
LOWtests/unit/test_agent_session_search_attributes.py3CODE
LOWtests/unit/test_workspace_sync_service.py3CODE
LOWtests/unit/test_control_plane_audit.py1CODE
LOWtests/unit/test_saml_client_config.py1CODE
LOWtests/unit/test_deduplicate.py9CODE
LOWtests/unit/test_executor_template_actions.py7CODE
LOWtests/unit/test_watchtower_service.py1CODE
LOWtests/unit/test_service_accounts_update.py1CODE
LOWtests/unit/test_dsl_workflow_activity_retry.py1CODE
LOWtests/unit/test_agent_factory.py1CODE
LOWtests/unit/test_agent_llm_proxy.py1CODE
LOWtests/unit/test_registry_repository.py1CODE
LOWtests/unit/test_dynamic_workspace_service_rls.py1CODE
LOWtests/unit/test_agent_mcp_proxy_server.py1CODE
LOWtests/unit/test_admin_users_service.py3CODE
LOWtests/unit/test_registry_repositories_service.py3CODE
LOWtests/unit/test_registry_artifact_keys.py3CODE
LOWtests/unit/test_agent_session_approval_sink.py1CODE
LOWtests/unit/conftest.py1CODE
LOWtests/unit/test_mcp_config.py1CODE
LOWtests/unit/test_agent_sandbox_entrypoint.py1CODE
LOWtests/unit/test_temporal_codec.py1CODE
LOWtests/unit/test_role_acl.py1CODE
LOWtests/unit/test_dsl_workflow_logging.py1CODE
LOWtests/unit/test_mcp_auth.py1CODE
LOWtests/unit/test_workflow_execution_object_resolution.py1CODE
LOWtests/unit/test_tier_limits_cache.py1CODE
LOWtests/unit/test_rbac_service.py3CODE
LOWtests/unit/test_slack_helpers.py1CODE
LOWtests/unit/test_dsl_workflow_concurrency.py1CODE
LOWtests/unit/test_rbac_scopes.py3CODE
LOWtests/unit/test_dsl_validation.py1CODE
LOWtests/unit/test_mcp_json_patch.py1CODE
LOWtests/unit/test_workflow_execution_schemas.py1CODE
LOWtests/unit/test_stdio_probe_nsjail.py3CODE
LOWtests/unit/test_inbox_service.py1CODE
LOWtests/unit/test_tenant_rls_registry.py1CODE
LOWtests/unit/test_registry_sync_runner.py1CODE
LOWtests/unit/test_mcp_server.py1CODE
LOWtests/unit/test_agent_nsjail.py1CODE
LOWtests/unit/test_sandbox_networking.py1CODE
LOWtests/unit/test_agent_sandbox_litellm.py1CODE
LOWtests/unit/test_sanitization.py1CODE
LOWtests/unit/test_runtime_errors.py1CODE
LOWtests/unit/test_registry_sync_subprocess.py3CODE
LOWtests/unit/test_executor_token_service_id.py1CODE
LOWtests/unit/test_auth_discovery_service.py3CODE
LOWtests/unit/test_registry_import_race.py21CODE
LOWtests/unit/test_agent_skill_internal_router.py1CODE
LOWtests/unit/test_worker_activity_registration.py1CODE
LOWtests/unit/test_workspace_sync_acceptance_contract.py7CODE
944 more matches not shown…
Docstring Block Structure166 hits · 830 pts
SeverityFileLineSnippetContext
HIGHtracecat/store.py32Fetch the content for a specific source. Args: path: Path to the source file in the repository. STRING
HIGHtracecat/config.py672Parse a comma-separated environment variable into validated IP networks. Args: name: Environment variable nSTRING
HIGHtracecat/ssh.py381Get a Git SSH command for the given Git URL. Args: git_url: Git URL object containing repository informatioSTRING
HIGHtracecat/pagination.py600Execute a stable keyset-paginated SQLAlchemy query. The statement must not already contain ``ORDER BY``, ``LIMIT``,STRING
HIGHtracecat/base62.py9Convert a non-negative integer to a base62 string. Args: num: Non-negative integer to encode Returns: STRING
HIGHtracecat/base62.py35Convert a base62 string back to an integer. Args: encoded: Base62 encoded string Returns: DecoSTRING
HIGHtracecat/organization/service.py63Accept an invitation and create organization membership + RBAC assignment. This is a standalone function (not a metSTRING
HIGHtracecat/organization/service.py266Retrieve a member of the organization by their user ID. Args: user_id (UserID): The unique identifiSTRING
HIGHtracecat/organization/service.py373 Update a member of the organization. This method updates the details of a specified member within the STRING
HIGHtracecat/organization/service.py614Get an invitation by ID (must belong to this organization). Args: invitation_id: The invitation UUISTRING
HIGHtracecat/organization/service.py635Get an invitation by its unique token. This method does not require scope checks as it is used during tSTRING
HIGHtracecat/organization/service.py659Accept an invitation and create organization membership + RBAC assignment. This method validates the invitationSTRING
HIGHtracecat/organization/service.py801Revoke a pending invitation. Args: invitation_id: The invitation UUID. Returns: STRING
HIGHtracecat/organization/management.py116Create an organization record. Args: session: Database session. name: Organization name. slSTRING
HIGHtracecat/organization/management.py154Create a new organization with default settings and workspace. This is the canonical way to create an organization.STRING
HIGHtracecat/organization/management.py296Get the ID of the first/default organization. Args: session: Database session. Returns: OrganiSTRING
HIGHtracecat/tables/service.py303List all lookup tables for a workspace. Args: workspace_id: The ID of the workspace to list tables STRING
HIGHtracecat/tables/service.py366Get a lookup table by name. Args: table_name: The name of the table to get Returns: STRING
HIGHtracecat/tables/service.py403Create a new lookup table. Args: params: Parameters for creating the table Returns: STRING
HIGHtracecat/tables/service.py547Add a new column to an existing table. Args: table: The table to add the column to paraSTRING
HIGHtracecat/tables/service.py624Update a column in an existing table. Args: column: The column to update params: ParameSTRING
HIGHtracecat/tables/service.py909Insert a new row into the table. Args: table: The table to insert into params: The row STRING
HIGHtracecat/tables/service.py1038Update an existing row in the table. Args: table: The table containing the row to update STRING
HIGHtracecat/tables/service.py1369List rows in a table with cursor-based pagination. Args: table: The table to search in STRING
HIGHtracecat/tables/service.py1555Insert multiple rows into the table atomically. Args: table: The table to insert into rSTRING
HIGHtracecat/tables/service.py1980Add a new column to an existing table. Args: params: Parameters for the new column ReturnsSTRING
HIGHtracecat/tables/service.py2036Update a column in an existing table. Args: params: Parameters for updating the column RetSTRING
HIGHtracecat/tables/service.py2263Update an existing row in the table. Args: row_id: The ID of the row to update data: DiSTRING
HIGHtracecat/tables/common.py246Convert a value to a SQL-compatible string based on type. Args: value: The value to convert to SQL format STRING
HIGHtracecat/auth/credentials.py1001 Factory for FastAPI dependency that enforces role-based access control. This function creates a dependency forSTRING
HIGHtracecat/secrets/service.py221Get a workspace secret by name. Args: secret_name: The name of the secret to retrieve eSTRING
HIGHtracecat/secrets/encryption.py38Encrypt a string using Fernet encryption. Args: value: The string to encrypt key: The encryption keSTRING
HIGHtracecat/secrets/encryption.py57Decrypt a Fernet-encrypted value back to a string. Args: encrypted_value: The encrypted bytes key: STRING
HIGHtracecat/cases/service.py712Get a case with its associated custom fields. Args: case_id: UUID of the case to retrieve STRING
HIGHtracecat/cases/service.py953Update a case and optionally its custom fields. Args: case: The case object to update pSTRING
HIGHtracecat/cases/service.py1828Ensure a workspace data row exists for the given case. Args: case_id: The case ID to ensure a row eSTRING
HIGHtracecat/cases/service.py1925Upsert custom field values for a case. This method ensures the workspace row exists and updates field values. STRING
HIGHtracecat/cases/service.py2804Update an existing comment. Args: comment: The comment to update params: The updated coSTRING
HIGHtracecat/cases/service.py3003Get a task by ID. Args: task_id: The ID of the task to get Returns: The task STRING
HIGHtracecat/cases/service.py3078Create a new task for a case. Args: case_id: The ID of the case to create a task for paSTRING
HIGHtracecat/cases/service.py3150Update a task. Args: task_id: The ID of the task to update params: The task update paraSTRING
HIGHtracecat/cases/agent_invocations/prompts.py32Build hidden thread context and the invoking comment's visible message. Args: context: Ordered thread snapsSTRING
HIGHtracecat/cases/agent_invocations/output.py20Convert terminal agent output into valid case-comment content. Plain text is preserved through the normal comment vSTRING
HIGHtracecat/cases/agent_sessions/service.py55Resolve a session or continuation to its Inbox-facing root session. Args: session_id: Agent sessionSTRING
HIGHtracecat/cases/agent_sessions/service.py102Upsert one case interaction without committing the caller's transaction. Args: case_id: Case toucheSTRING
HIGHtracecat/cases/attachments/service.py204Create a new attachment for a case with security validations. Args: case: The case to attach the fiSTRING
HIGHtracecat/cases/attachments/service.py412Download an attachment's content. Args: case: The case the attachment belongs to attachSTRING
HIGHtracecat/cases/attachments/service.py452Generate a presigned URL for downloading an attachment. Args: case: The case the attachment belongsSTRING
HIGHtracecat/agent/tools.py44Execute a Tracecat action in a subprocess. This spawns a separate process to run the action, providing process isolSTRING
HIGHtracecat/agent/tools.py147Create a Tool from a registry action using index-based lookup. Args: action_name: Full canonical action namSTRING
HIGHtracecat/agent/tools.py276Build tools from a list of actions using index-based lookups. Args: namespaces: Optional list of namespace STRING
HIGHtracecat/agent/tokens.py206Verify MCP JWT and return extracted claims. Args: token: The JWT string to verify Returns: MCPSTRING
HIGHtracecat/agent/tokens.py397Verify LLM JWT and return extracted claims. Args: token: The JWT string to verify Returns: LLMSTRING
HIGHtracecat/agent/tokens.py499Verify an Agent OTel relay JWT and return extracted claims. Args: token: The JWT string to verify. RetSTRING
HIGHtracecat/agent/skill/service.py529Normalize and validate a relative POSIX draft path. Args: path: User-provided file path. RSTRING
HIGHtracecat/agent/stream/writers.py111 Event stream handler for TemporalAgent. Args: run_context: The run context for the agent. evenSTRING
HIGHtracecat/agent/runtime/pydantic_ai/runtime.py97Run an AI agent with specified configuration and actions. This function creates and executes a Tracecat AI agent wiSTRING
HIGHtracecat/agent/mcp/user_client.py336Execute a tool on a user MCP server. Args: server_name: Name of the MCP server (from config). STRING
HIGHtracecat/agent/mcp/executor.py86Execute a registry UDF through the shared executor queue. Args: action_name: The action to execute (e.g., "STRING
HIGHtracecat/agent/common/socket_io.py61Read a framed message from the socket. Args: reader: The asyncio stream reader. expected_type: If pSTRING
106 more matches not shown…
Self-Referential Comments237 hits · 747 pts
SeverityFileLineSnippetContext
MEDIUMdocker/sandbox/build.sh42# Create a temporary container and export its filesystemCOMMENT
MEDIUMtests/conftest.py572 # Create a registry repository for core actionsSTRING
MEDIUMtests/temporal/test_workflows.py764 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py2089 # Create a simple configuration variableCOMMENT
MEDIUMtests/temporal/test_workflows.py3503 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py4361 # Create a simple child workflow that doubles the inputCOMMENT
MEDIUMtests/temporal/test_workflows.py6244 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6375 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6461 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6662 # Create a workflow with sequential actions to verify time advancesCOMMENT
MEDIUMtests/temporal/test_workflows.py6799 # Create a child workflow that returns the current timeCOMMENT
MEDIUMtests/temporal/test_workflows.py6821 # Create a parent workflow that calls the child and also captures its own timeCOMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py222 # Create a mock registry lock for the toolsCOMMENT
MEDIUMtests/unit/test_oauth_state.py248 # Create a valid stateCOMMENT
MEDIUMtests/unit/test_oauth_state.py261 # Create an expired stateCOMMENT
MEDIUMtests/unit/test_oauth_state.py274 # Create a second workspace for the "wrong workspace" testCOMMENT
MEDIUMtests/unit/test_oauth_state.py284 # Create a state with wrong workspaceCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py166 # Create a 2-step template: step1 adds 100, step2 multiplies by 2COMMENT
MEDIUMtests/unit/test_executor_template_actions.py251 # Create a template that passes data between steps using steps contextCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py334 # Create a template with a complex returns expressionCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py421 # Create a secretCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py617 # Create a simple templateCOMMENT
MEDIUMtests/unit/test_identifiers.py121 # Create a different UUID for comparisonCOMMENT
MEDIUMtests/unit/test_identifiers.py201 # Create a model instanceCOMMENT
MEDIUMtests/unit/test_registry.py127 # Create a new moduleCOMMENT
MEDIUMtests/unit/test_registry.py130 # Create a module spec for the test moduleCOMMENT
MEDIUMtests/unit/test_registry.py139 # Create a file for the sync functionCOMMENT
MEDIUMtests/unit/test_registry.py270 # Create a new test module with datetime/UUID UDFsCOMMENT
MEDIUMtests/unit/test_registry.py279 # Create a file with UDF that accepts datetimeCOMMENT
MEDIUMtests/unit/test_registry.py158 # Create a file for the async functionCOMMENT
MEDIUMtests/unit/test_registry.py177 # Create a file for the deprecated functionCOMMENT
MEDIUMtests/unit/test_registry.py488 # Create a test directory structureCOMMENT
MEDIUMtests/unit/test_concurrency.py484 # Create a generator that would be expensive if fully loadedCOMMENT
MEDIUMtests/unit/test_concurrency.py19 # Create a GatheringTaskGroup instanceCOMMENT
MEDIUMtests/unit/test_webhook.py425 # Create a mock webhook with the ID attributeCOMMENT
MEDIUMtests/unit/test_webhook.py455 # Create a mock webhook with the ID attributeCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py42 # Create a test workflowCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py178 # Create a folder to renameCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py182 # Create a child folder to verify path updatesCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py240 # Create a folder hierarchyCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py265 # Create a folder to deleteCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py296 # Create a folder hierarchyCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py344 # Create a folderCOMMENT
MEDIUMtests/unit/test_validation.py658 # Create a test template action with both AC and CC OAuth secrets as optionalCOMMENT
MEDIUMtests/unit/test_validation.py702 # Create a second template action with required OAuth credentialCOMMENT
MEDIUMtests/unit/test_validation.py879 # Create a template action with optional OAuth credentials (both AC and CC)COMMENT
MEDIUMtests/unit/test_validation.py935 # Create a DSL that uses this actionCOMMENT
MEDIUMtests/unit/test_agent_preset_service.py3281 # Create a preset with comprehensive configurationCOMMENT
MEDIUMtests/unit/test_template_actions.py149 # Create a new moduleCOMMENT
MEDIUMtests/unit/test_template_actions.py152 # Create a module spec for the test moduleCOMMENT
MEDIUMtests/unit/test_template_actions.py859 # Create a template action that uses VARS expressionsCOMMENT
MEDIUMtests/unit/test_template_actions.py1044 # Create a template action with multi-level fallbackCOMMENT
MEDIUMtests/unit/test_template_actions.py1174 # Create a manifest with:COMMENT
MEDIUMtests/unit/test_mcp_integrations.py4220 # Create a second OAuth integrationCOMMENT
MEDIUMtests/unit/test_mcp_integrations.py6391 # Create a dummy MCP provider for testingCOMMENT
MEDIUMtests/unit/test_parse.py98 # Create a temporary pyproject.toml fileCOMMENT
MEDIUMtests/unit/test_pydantic_ai_adapter.py279 # Create a mock event that doesn't match any known typeCOMMENT
MEDIUMtests/unit/test_secrets_service.py614 # Create a secretCOMMENT
MEDIUMtests/unit/test_case_events_service.py454 # Create an event with the original service (original user)COMMENT
MEDIUMtests/unit/test_case_events_service.py462 # Create a service with a different userCOMMENT
177 more matches not shown…
Excessive Try-Catch Wrapping695 hits · 619 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py242 except Exception as exc:CODE
LOWtests/conftest.py325 except Exception:CODE
LOWtests/conftest.py382 except Exception as e:CODE
LOWtests/conftest.py1562 except Exception as e:CODE
LOWtests/conftest.py1594 except Exception as e:CODE
LOWtests/conftest.py1695 except Exception as e:CODE
LOWtests/conftest.py1708 except Exception as inner_e:CODE
LOWtests/conftest.py1726 except Exception as e:CODE
LOWtests/conftest.py1780 except Exception:CODE
LOWtests/conftest.py1204 except Exception as e:STRING
LOWtests/conftest.py1209 except Exception as e:STRING
LOWtests/conftest.py1373 except Exception as exc:STRING
LOWtests/temporal/test_workflows.py426 except Exception as e:CODE
LOWtests/temporal/test_durable_agent_workflow.py2782 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2786 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2900 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2904 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3021 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3025 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3153 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3157 except Exception:CODE
LOWtests/unit/test_interactions.py177 except Exception:CODE
LOWtests/unit/test_interactions.py181 except Exception:CODE
LOWtests/unit/test_agent_preset_service.py84 except Exception:CODE
MEDIUMtests/unit/test_agent_sandbox_litellm.py1411 " print('Error parsing JSON response', file=sys.stderr, flush=True)",CODE
LOWtests/unit/test_registry_import_race.py100 except Exception as e: # noqa: BLE001 - we collect all exceptionsCODE
LOWtests/unit/test_registry_import_race.py145 except Exception as e: # noqa: BLE001 - we collect all exceptionsCODE
LOWtests/unit/test_registry_import_race.py187 except Exception as e: # noqa: BLE001 - regression guardCODE
LOWtests/unit/test_registry_import_race.py250 except Exception as e: # noqa: BLE001 - collect all errors for assertionCODE
MEDIUMtests/unit/test_registry_import_race.py184def reloader() -> None:CODE
LOWtests/unit/test_skill_service.py88 except Exception:CODE
LOWtests/unit/test_action_environment_override.py317 except Exception:CODE
LOWtests/unit/test_action_environment_override.py325 except Exception:CODE
LOWtests/unit/test_action_environment_override.py384 except Exception:CODE
LOWtests/unit/test_tables_service.py2211 except Exception as e:STRING
LOWtests/unit/test_workflow_import_simple.py152 except Exception as e:CODE
LOWtests/unit/test_agent_otel_relay.py223 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py866 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py898 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py927 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py980 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1047 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1080 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1116 except Exception:CODE
LOWtests/unit/test_workflow_import_service.py754 except Exception as e:CODE
LOWtests/unit/test_case_attachments_service.py46 except Exception:CODE
LOWtests/unit/executor/test_run_python_sdk_context.py280 except Exception as exc:CODE
LOW…sts/integration/test_registry_artifact_loop_hotplug.py466 except Exception as error:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py469 except Exception:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py739 except Exception as e:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py778 except Exception:CODE
LOWtests/integration/test_case_duration_benchmarks.py309 except Exception:CODE
LOWtests/integration/test_case_duration_benchmarks.py450 except Exception:CODE
LOWtests/backends/conftest.py84 except Exception:CODE
LOWtests/backends/test_backend_benchmarks.py209 except Exception:CODE
MEDIUMtests/registry/test_core_python.py542def main():CODE
MEDIUMtests/registry/test_core_python.py591def main():CODE
MEDIUMtests/registry/test_core_python.py714def main():CODE
LOWtests/registry/test_core_python.py547 except Exception as e:CODE
LOWtests/registry/test_core_python.py721 except Exception as e:CODE
635 more matches not shown…
Cross-File Repetition67 hits · 335 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_oauth_state.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_mcp_integrations.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_integrations_service.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_executor_template_actions.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_validation.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_template_actions.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_registry.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_template_actions.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_executor.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_dynamic_workspace_service_rls.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_tables_service.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_case_fields_service.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_workflow_folders_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_workflow_definitions_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_tags_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_tenant_rls_registry.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_rls.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_rls_failure_repros.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_case_events_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_integrations_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_cases_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_case_comments_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_case_fields_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/migration/test_dynamic_workspace_rls_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGHtests/migration/test_case_fields_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGHtests/migration/test_migration_advisory_lock.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGH…s/migration/test_uuid_timestamp_user_type_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGH…sts/migration/test_case_numbers_workspace_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…emove_legacy_org_scoped_builtin_registry_repository.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…ts/migration/test_workspace_skills_preset_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGHtests/migration/test_case_versions_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGHtests/migration/test_skill_slug_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…tion/test_deferred_case_number_allocation_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…sts/migration/test_comment_activity_audit_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…emove_legacy_org_scoped_builtin_registry_repository.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGHtests/migration/test_case_versions_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGH…sts/migration/test_comment_activity_audit_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGH…ts/migration/test_workspace_skills_preset_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGHtracecat/admin/registry/service.py0promote a registry version to be the current version for a repository.STRING
HIGHtracecat/admin/registry/router.py0promote a registry version to be the current version for a repository.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0promote a registry version to be the current version for a repository.STRING
HIGHtracecat/workflow/management/schemas.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/workflow/executions/internal_router.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/dsl/schemas.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/dsl/common.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/expressions/functions.py0return object with single level of keys (as jsonpath) and values.STRING
HIGH…acecat-registry/tracecat_registry/_internal/flatten.py0return object with single level of keys (as jsonpath) and values.STRING
HIGH…/tracecat-registry/tracecat_registry/core/transform.py0return object with single level of keys (as jsonpath) and values.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0list versions for a specific repository in an organization.STRING
HIGH…tracecat-ee/tracecat_ee/admin/organizations/service.py0list versions for a specific repository in an organization.STRING
HIGH…/tracecat-ee/tracecat_ee/admin/organizations/router.py0list versions for a specific repository in an organization.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0promote a registry version to be the current version for an org repository.STRING
HIGH…tracecat-ee/tracecat_ee/admin/organizations/service.py0promote a registry version to be the current version for an org repository.STRING
HIGH…/tracecat-ee/tracecat_ee/admin/organizations/router.py0promote a registry version to be the current version for an org repository.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0update organization's tier assignment and overrides.STRING
HIGHpackages/tracecat-ee/tracecat_ee/admin/tiers/service.py0update organization's tier assignment and overrides.STRING
HIGHpackages/tracecat-ee/tracecat_ee/admin/tiers/router.py0update organization's tier assignment and overrides.STRING
HIGHpackages/tracecat-admin/tracecat_admin/cli.py0decorator to run async functions in typer commands.STRING
HIGHpackages/tracecat-admin/tracecat_admin/commands/auth.py0decorator to run async functions in typer commands.STRING
HIGH…ges/tracecat-admin/tracecat_admin/commands/registry.py0decorator to run async functions in typer commands.STRING
7 more matches not shown…
Deep Nesting265 hits · 212 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py234CODE
LOWtests/conftest.py435CODE
LOWtests/conftest.py550CODE
LOWtests/conftest.py1640CODE
LOWtests/conftest.py445CODE
LOWtests/conftest.py566CODE
LOWtests/temporal/test_workflows.py352CODE
LOWtests/temporal/test_durable_agent_workflow.py2677CODE
LOWtests/temporal/test_durable_agent_workflow.py2796CODE
LOWtests/temporal/test_durable_agent_workflow.py2914CODE
LOWtests/temporal/test_durable_agent_workflow.py3035CODE
LOWtests/unit/test_interactions.py76CODE
LOWtests/unit/test_mcp_server.py10663CODE
LOWtests/unit/test_workflow_executions.py125CODE
LOWtests/unit/test_workflow_executions.py634CODE
LOWtests/unit/test_workflow_executions.py730CODE
LOWtests/unit/test_storage_cache.py21CODE
LOWtests/unit/test_vercel_sse_resume.py37CODE
LOWtests/unit/test_tables_service.py286CODE
LOWtests/unit/test_executor_sandbox_nsjail.py645CODE
LOWtests/unit/test_executor_sandbox_nsjail.py1006CODE
LOWtests/unit/test_config.py245CODE
LOWtests/unit/test_formatters.py331CODE
LOWtests/unit/test_agent_socket_io.py74CODE
LOWtests/unit/test_agent_socket_io.py184CODE
LOWtests/unit/test_agent_socket_io.py279CODE
LOWtests/unit/test_agent_socket_io.py352CODE
LOWtests/unit/test_agent_socket_io.py414CODE
LOW…/unit/executor/test_action_gateway_signal_lifecycle.py93CODE
LOW…ration/test_registry_artifact_cache_mount_lifecycle.py567CODE
LOWtests/registry/test_core_transform.py771CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1047CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1185CODE
LOWtracecat/ssh.py151CODE
LOWtracecat/pagination.py386CODE
LOWtracecat/temporal/errors.py278CODE
LOWtracecat/temporal/codec.py313CODE
LOWtracecat/tables/service.py242CODE
LOWtracecat/tables/service.py619CODE
LOWtracecat/tables/service.py904CODE
LOWtracecat/tables/service.py1357CODE
LOWtracecat/tables/service.py1547CODE
LOWtracecat/tables/service.py1690CODE
LOWtracecat/tables/service.py2214CODE
LOWtracecat/tables/service.py2262CODE
LOWtracecat/tables/importer.py49CODE
LOWtracecat/tables/schemas.py66CODE
LOWtracecat/tables/common.py27CODE
LOWtracecat/workspace_sync/service.py926CODE
LOWtracecat/workspace_sync/service.py1414CODE
LOWtracecat/workspace_sync/service.py1611CODE
LOWtracecat/workspace_sync/resources.py36CODE
LOWtracecat/workspace_sync/resources.py369CODE
LOWtracecat/workspace_sync/resources.py514CODE
LOWtracecat/workspace_sync/adapters/agent_preset.py461CODE
LOWtracecat/workspace_sync/adapters/agent_preset.py968CODE
LOWtracecat/workspace_sync/adapters/case_field.py89CODE
LOWtracecat/workspace_sync/adapters/case_field.py198CODE
LOWtracecat/auth/credentials.py482CODE
LOWtracecat/auth/credentials.py858CODE
205 more matches not shown…
Redundant / Tautological Comments113 hits · 176 pts
SeverityFileLineSnippetContext
LOWenv-migration.sh33# Check if .env file existsCOMMENT
LOWenv-migration.sh39# Check if .env.template file existsCOMMENT
LOWenv.sh24 # Check if running on macOS and adjust sed_option accordinglyCOMMENT
LOW…src/components/builder/panel/action-panel-tooltips.tsx27 # Check if user has admin roleCOMMENT
LOW…src/components/builder/panel/action-panel-tooltips.tsx37 # Check if failed login attempts exceed thresholdCOMMENT
LOWtests/conftest.py1476 # Check if organization existsCOMMENT
LOWtests/conftest.py1517 # Check if organization exists in this sessionCOMMENT
LOWtests/conftest.py1601 # Check if organization existsCOMMENT
LOWtests/conftest.py1655 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1680 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1713 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/temporal/test_durable_agent_workflow.py464 # Check if user already existsCOMMENT
LOWtests/unit/test_registry.py133 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_validation.py435 # Check if any error message matches the expected patternCOMMENT
LOWtests/unit/test_template_actions.py155 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_integrations_service.py779 # Set expiration to 4 minutes in future (within refresh window)COMMENT
LOWtests/unit/test_executor.py302 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_rls_policies.py298 # Set context to a random workspace ID (likely no matching rows)COMMENT
LOWtests/unit/test_rls_policies.py319 # Set context to a random org IDCOMMENT
LOWtests/integration/test_syncv2_execv2_e2e.py300 # Check if organization existsCOMMENT
LOWtests/backends/conftest.py77 # Check if any registry version has a tarball (regardless of org)COMMENT
LOWtests/registry/test_core_python.py20# Check if nsjail is available (required for the sandbox)COMMENT
LOWtests/registry/test_core_python.py23# Check if the sandbox rootfs existsCOMMENT
LOW.devcontainer/safe-yolo.sh7# Check if Docker is installedCOMMENT
LOW.devcontainer/safe-yolo.sh13# Check if Docker is runningCOMMENT
LOWtracecat/ssh.py176 # Check if host already exists in known_hostsCOMMENT
LOWtracecat/organization/service.py536 # Check if user with this email is already a member (case-insensitive)COMMENT
LOWtracecat/organization/management.py320 # Check if any organization existsCOMMENT
LOWtracecat/organization/router.py730 # Check if authenticated user's email matches the invitation (case-insensitive)COMMENT
LOWtracecat/tables/service.py760 # Check if another index already existsCOMMENT
LOWtracecat/tables/service.py956 # Check if we have any unique columns to use for conflict resolutionCOMMENT
LOWtracecat/auth/users.py132 # Check if this is attempting to be the first user (superadmin)COMMENT
LOWtracecat/auth/credentials.py736 # Check if user is an org owner/admin via RBAC - they can access all workspacesCOMMENT
LOWtracecat/auth/saml.py768 # Check if request has expired but don't delete yetCOMMENT
LOWtracecat/auth/saml.py843 # Check if the request has expiredCOMMENT
LOWtracecat/cases/service.py3230 # Check if the field was provided in the update payload using model_fields_setCOMMENT
LOWtracecat/cases/tags/service.py294 # Check if already existsCOMMENT
LOWtracecat/cases/attachments/service.py300 # Check if file already exists (deduplication)COMMENT
LOWtracecat/cases/attachments/service.py353 # Check if attachment already exists for this case and fileCOMMENT
LOWtracecat/cases/attachments/service.py516 # Check if user has permission (must be creator or admin)COMMENT
LOWtracecat/cases/attachments/router.py91 # Read file content with bounded memory to avoid DoS via large uploadsCOMMENT
LOWtracecat/agent/service.py408 # Check if credentials already existCOMMENT
LOWtracecat/agent/context.py73 # Check if any tool returns need truncationCOMMENT
LOWtracecat/agent/context.py155 # Check if next message has matching returnsCOMMENT
LOWtracecat/agent/context.py171 # Check if previous kept message has matching callsCOMMENT
LOWtracecat/agent/preset/service.py677 # Check if all requested IDs existCOMMENT
LOWtracecat/agent/mcp/proxy_server.py186 # Check if this is a user MCP toolCOMMENT
LOWtracecat/agent/session/service.py2851 # Check if this is a forked session (has parent_session_id)COMMENT
LOWtracecat/agent/session/router.py383 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py461 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py512 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/workspaces/service.py369 # Check if the existing invitation is expired - if so, delete and retryCOMMENT
LOWtracecat/workspaces/service.py482 # Check if user is already a member of the organizationCOMMENT
LOWtracecat/workspaces/service.py501 # Check if user is already a member of the workspaceCOMMENT
LOWtracecat/tags/service.py58 # Check if ref already existsCOMMENT
LOWtracecat/integrations/service.py2403 # Check if integration configuration already exists for this providerCOMMENT
LOWtracecat/integrations/service.py2621 # Check if integration is properly connected (has access tokens)COMMENT
LOWtracecat/integrations/service.py2625 # Check if provider is an MCP providerCOMMENT
LOWtracecat/integrations/service.py2649 # Check if MCP integration already exists for this OAuth integration.COMMENT
LOWtracecat/integrations/router.py737 # Check if provider is configuredCOMMENT
53 more matches not shown…
Fake / Example Data157 hits · 152 pts
SeverityFileLineSnippetContext
LOWfrontend/tests/profile-settings.test.ts5 expect(getProfileNameUpdate("Jane Doe", " Jane Doe ")).toBeNull()CODE
LOWfrontend/tests/profile-settings.test.ts9 expect(getProfileNameUpdate("Jane Doe", " ")).toEqual({CODE
LOWfrontend/tests/profile-settings.test.ts16 expect(getProfileNameUpdate("Jane Doe", " Ada Lovelace ")).toEqual({CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx297 target: { value: "user@example.com" },CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx304 email: "user@example.com",CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx328 target: { value: "user@example.com" },CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx335 email: "user@example.com",CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx345 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx358 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx415 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx426 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx436 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx454 mockUser = { email: "user@example.com", isSuperuser: false }CODE
LOWfrontend/tests/workspace-sync-settings.test.tsx269 "placeholder",CODE
LOW…ntend/src/components/service-account-json-uploader.tsx299 placeholder="user@example.com"CODE
LOW…tend/src/components/organization/org-members-table.tsx145 placeholder="user@example.com"CODE
LOW…nd/src/components/admin/create-organization-dialog.tsx133 placeholder="Acme Inc"CODE
LOWfrontend/src/components/admin/admin-users-table.tsx227 placeholder="user@example.com"CODE
LOW…/src/components/admin/admin-org-invitations-dialog.tsx201 placeholder="user@example.com"CODE
LOWtests/unit/test_table_csv_importer.py206 csv_row = {"csv_name": "John Doe"}CODE
LOWtests/unit/test_table_csv_importer.py215 "\ufeffcsv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py130 "csv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py148 "name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py226 "name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py269 "csv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py282 "name": "John Doe",CODE
LOWtests/unit/test_saml_client_config.py161 fake_session, uuid.uuid4(), "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py239 fake_session, uuid.uuid4(), ["user@example.com"]CODE
LOWtests/unit/test_saml_client_config.py242 assert email == "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py338 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOWtests/unit/test_saml_client_config.py341 assert email == "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py403 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py408 fake_session, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py417 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py422 fake_session, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py431 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py435 fake_session, "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py363 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOWtests/unit/test_saml_client_config.py455 fake_session, org_id, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py474 fake_session, uuid.uuid4(), "admin@example.com"CODE
LOWtests/unit/test_watchtower_service.py220 last_user_email="user@example.com",CODE
LOWtests/unit/test_watchtower_service.py282 email="user@example.com",CODE
LOWtests/unit/test_expressions.py159 "metadata": {"name": "John Doe", "age": 30},CODE
LOWtests/unit/test_expressions.py202 "metadata": {"name": "John Doe", "age": 30},CODE
LOWtests/unit/test_invitation.py132 email="admin@example.com",CODE
LOWtests/unit/test_invitation.py364 email="admin@example.com",CODE
LOWtests/unit/test_mcp_auth.py803 assert merged.claims["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py821 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py840 "email": "user@example.com",CODE
LOWtests/unit/test_mcp_auth.py878 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1059 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1076 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1087 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1138 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1152 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py634 assert email == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py647 assert claims == {"email": "user@example.com"}CODE
LOWtests/unit/test_mcp_auth.py974 assert identity.email == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1103 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1197 email="user@example.com",CODE
97 more matches not shown…
Modern Structural Boilerplate97 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_rbac_scopes.py44def _set_role_with_scopes(scopes: frozenset[str]) -> None:CODE
LOWtests/unit/test_mcp_server.py2464 async def update_schedule(self, schedule_id: uuid.UUID, params: Any) -> None:CODE
LOWtests/unit/test_gitlab_vcs.py818 async def _update_org_secret(self, secret: Any, params: Any) -> None:CODE
LOWtests/unit/test_agent_filesystem.py687 async def update_current_snapshot(self, **_kwargs: Any) -> None:CODE
LOWtests/unit/test_agent_filesystem.py922 async def update_current_snapshot(self, **_kwargs: Any) -> None:CODE
LOWtests/unit/test_agent_otel_relay.py61 def set_outcomes(self, *outcomes: int | httpx.TransportError) -> None:CODE
LOWtests/unit/test_agent_provider_service.py37def set_db_encryption_key(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_audit_service.py1734 async def update_secret(self, *, secret: SimpleNamespace) -> None:CODE
LOWtests/unit/test_agent_channel_service.py38def set_db_encryption_key(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_agent_channel_service.py492def _set_signing_secret(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/executor/test_minimal_runner_protocol.py205 def set_context(ctx: LegacyRegistryContext) -> None:CODE
LOWtracecat/config.py13logger = logging.getLogger(__name__)CODE
LOWtracecat/ssh.py29__all__ = [CODE
LOWtracecat/contexts.py16__all__ = [CODE
LOWtracecat/middleware/__init__.py5__all__ = [CODE
LOWtracecat/settings/service.py317 async def update_git_settings(self, params: GitSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py325 async def update_saml_settings(self, params: SAMLSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py331 async def update_audit_settings(self, params: AuditSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py338 async def update_app_settings(self, params: AppSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py344 async def update_agent_settings(self, params: AgentSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py350 async def update_agent_otel_settings(self, params: AgentOtelSettingsUpdate) -> None:CODE
LOWtracecat/feature_flags/__init__.py12__all__ = ["is_feature_enabled", "FeatureFlag"]CODE
LOWtracecat/tables/service.py2035 async def update_column(self, column_name: str, params: TableColumnUpdate) -> None:CODE
LOWtracecat/workspace_sync/importer.py17__all__ = ["ImportedResource", "WorkspaceResourceImportService"]CODE
LOWtracecat/workspace_sync/projector.py22__all__ = [CODE
LOWtracecat/workspace_sync/adapters/__init__.py40__all__ = [CODE
LOWtracecat/logger/__init__.py3__all__ = ["logger"]CODE
LOWtracecat/auth/sandbox.py100 def _set_secrets(self) -> None:CODE
LOWtracecat/ee/interactions/connectors.py10__all__ = ["parse_slack_interaction_input"]CODE
LOWtracecat/ee/interactions/decorators.py19__all__ = ["maybe_interactive"]CODE
LOWtracecat/secrets/service.py68 async def _update_secret(self, secret: BaseSecret, params: SecretUpdate) -> None:CODE
LOWtracecat/secrets/service.py280 async def update_secret(self, secret: Secret, params: SecretUpdate) -> None:CODE
LOWtracecat/custom_fields/service.py176 async def update_field(self, field_id: str, params: CustomFieldUpdate) -> None:CODE
LOWtracecat/custom_fields/service.py202__all__ = ["CustomFieldsService"]CODE
LOWtracecat/custom_fields/__init__.py4__all__ = [CODE
LOWtracecat/custom_fields/schemas.py81__all__ = [CODE
LOWtracecat/cases/durations/__init__.py16__all__ = [CODE
LOWtracecat/cases/attachments/__init__.py11__all__ = [CODE
LOWtracecat/agent/service.py310 async def _set_org_setting_value(self, *, key: str, value: str) -> None:CODE
LOWtracecat/agent/litellm_compat.py15logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/catalog/loader.py13logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/mcp/stdio_probe.py45__all__ = [CODE
LOWtracecat/agent/mcp/proxy_server.py36__all__ = [CODE
LOWtracecat/agent/common/__init__.py52__all__ = [CODE
LOWtracecat/agent/folders/service.py649 async def _update_descendant_paths(self, old_path: str, new_path: str) -> None:CODE
LOWtracecat/agent/approvals/__init__.py8__all__ = [CODE
LOWtracecat/agent/channels/sinks/__init__.py5__all__ = ["ExternalChannelSink"]CODE
LOWtracecat/agent/channels/sinks/slack.py143 async def _set_in_progress_reaction(self) -> None:CODE
LOWtracecat/agent/channels/sinks/slack.py155 async def _set_terminal_reaction(self, *, is_error: bool) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py76async def set_in_progress(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py88async def set_complete(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py106async def set_error(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/mcp/server.py1551async def _update_template_file_artifact(artifact: TemplateFileArtifact) -> None:CODE
LOWtracecat/observability/otel.py36logger = logging.getLogger(__name__)CODE
LOWtracecat/observability/otel.py177def set_current_span_attributes(attributes: dict[str, str | int | bool | None]) -> None:CODE
LOWtracecat/identifiers/__init__.py103__all__ = [CODE
LOWtracecat/storage/object.py364def set_object_storage(storage: ObjectStorage | None) -> None:CODE
LOWtracecat/storage/object.py425__all__ = [CODE
LOWtracecat/storage/backends/__init__.py6__all__ = [CODE
LOW…cecat/integrations/providers/google/service_account.py27__all__ = [CODE
37 more matches not shown…
Cross-Language Confusion22 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtests/temporal/test_workflows.py5684 items="${{ ACTIONS.is_one.result || ACTIONS.is_two.result || ACTIONS.is_three.result }}"CODE
HIGHtests/temporal/test_workflows.py5751 "value": "${{ ACTIONS.is_one.result || ACTIONS.is_two.result }}"CODE
HIGHtests/unit/test_template_actions.py637 "data": "${{ inputs.limit || 100 }}",CODE
HIGHtests/unit/test_template_actions.py886 "value": "${{ inputs.url || VARS.test.url }}",CODE
HIGHtests/unit/test_template_actions.py910 "value": "${{ inputs.custom_timeout || VARS.test.timeout }}",CODE
HIGHtests/unit/test_template_actions.py1065 "value": '${{ inputs.url || VARS.config.url || "http://default-url.com" }}',CODE
HIGHtests/unit/test_template_actions.py1021 """Test template action with multi-level fallback chain using || operator.STRING
HIGHtests/unit/test_template_actions.py1024 ${{ inputs.url || VARS.config.url || "http://default-url.com" }}STRING
HIGHtests/unit/test_template_actions.py835 3. VARS expressions work with fallback logic (e.g., inputs.value || VARS.default)STRING
HIGHtests/registry/test_core_http.py1570 "previous": null,STRING
HIGH…sts/migration/test_comment_activity_audit_migration.py165 f'{{"comment_id":"{comment_id}","parent_id":null,'STRING
HIGHtracecat/agent/service.py792 non-null) are intentionally left alone — they represent explicitSTRING
HIGHtracecat/agent/tokens.py307 "and catalog_id is null, the gateway resolves workspace provider "CODE
HIGHtracecat/agent/session/schemas.py62 "If null, the session follows the preset's current version."CODE
HIGHtracecat/workflow/management/router.py1082 If folder_id is null, the workflow will be moved to the root (no folder).STRING
HIGHtracecat/db/models.py2499 doc="The ID of the user who made the comment. If null, the comment is system generated.",CODE
HIGHtracecat/db/models.py2529 doc="The ID of the parent comment. If null, the comment is a top-level comment.",CODE
HIGHtracecat/db/models.py2690 doc="The ID of the user who made the event. If null, the event is system generated.",CODE
HIGH…istry/tracecat_registry/integrations/cloudflare_sdk.py112 "If null, fetches every page."CODE
HIGH…-registry/tracecat_registry/integrations/google_api.py465 description="Maximum number of pages to fetch. If null, fetches every page.",CODE
HIGH…ges/tracecat-ee/tracecat_ee/agent/workflows/durable.py443 "If null, the run follows the preset's current version."CODE
HIGH…ges/tracecat-ee/tracecat_ee/agent/approvals/service.py20from sqlalchemy import func, null, selectCODE
AI Structural Patterns81 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_inbox_service.py30CODE
LOWtracecat/concurrency.py114CODE
LOWtracecat/tables/service.py1321CODE
LOWtracecat/inbox/service.py40CODE
LOWtracecat/inbox/types.py55CODE
LOWtracecat/inbox/router.py39CODE
LOWtracecat/workspace_sync/adapters/base.py626CODE
LOWtracecat/cases/service.py270CODE
LOWtracecat/cases/service.py391CODE
LOWtracecat/cases/service.py596CODE
LOWtracecat/cases/internal_router.py121CODE
LOWtracecat/cases/internal_router.py209CODE
LOWtracecat/cases/router.py167CODE
LOWtracecat/cases/router.py271CODE
LOWtracecat/cases/router.py436CODE
LOWtracecat/agent/runtime/pydantic_ai/runtime.py78CODE
LOWtracecat/agent/sandbox/config.py231CODE
LOWtracecat/agent/sandbox/nsjail.py132CODE
LOWtracecat/agent/channels/sinks/slack.py205CODE
LOWtracecat/mcp/server.py5256CODE
LOWtracecat/mcp/server.py5486CODE
LOWtracecat/mcp/server.py7784CODE
LOWtracecat/mcp/server.py7864CODE
LOWtracecat/mcp/oidc/endpoints.py404CODE
LOWtracecat/mcp/oidc/endpoints.py527CODE
LOWtracecat/sandbox/service.py322CODE
LOWtracecat/sandbox/service.py419CODE
LOWtracecat/ai/ranker.py369CODE
LOWtracecat/workflow/management/management.py1495CODE
LOWtracecat/workflow/executions/service.py431CODE
LOWtracecat/workflow/executions/common.py322CODE
LOWtracecat/workflow/executions/router.py415CODE
LOWtracecat/expressions/expectations.py144CODE
LOWtracecat/registry/sync/base_service.py277CODE
LOWtracecat/webhooks/router.py573CODE
LOW…cecat-registry/tracecat_registry/_internal/registry.py11CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py30CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py207CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py58CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py133CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py390CODE
LOW…ages/tracecat-registry/tracecat_registry/core/email.py102CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py591CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py710CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py858CODE
LOW…ages/tracecat-registry/tracecat_registry/core/agent.py241CODE
LOW…ages/tracecat-registry/tracecat_registry/core/agent.py375CODE
LOW…ages/tracecat-registry/tracecat_registry/core/table.py101CODE
LOW…s/tracecat-registry/tracecat_registry/core/workflow.py33CODE
LOW…y/tracecat_registry/integrations/google_secops_soar.py46CODE
LOW…ecat-registry/tracecat_registry/integrations/tavily.py39CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py954CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py1167CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py1225CODE
LOW…-registry/tracecat_registry/integrations/google_api.py437CODE
LOW…gistry/tracecat_registry/integrations/mcp/runreveal.py79CODE
LOW…-registry/tracecat_registry/integrations/mcp/linear.py79CODE
LOW…at-registry/tracecat_registry/integrations/mcp/jira.py82CODE
LOW…-registry/tracecat_registry/integrations/mcp/notion.py79CODE
LOW…-registry/tracecat_registry/integrations/mcp/github.py79CODE
21 more matches not shown…
AI Slop Vocabulary24 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_agent_preset_service.py3281 # Create a preset with comprehensive configurationCOMMENT
MEDIUMtests/unit/test_action_environment_override.py493 # Create a comprehensive workflow with various environment scenariosCOMMENT
LOWtests/unit/test_tables_service.py2194 # Don't start a new transaction, just use the existing oneSTRING
MEDIUMtests/unit/test_functions.py1809 # Definitely not the year 2000COMMENT
MEDIUMtracecat/tables/importer.py155 """Normalize CSV headers for robust matching across parsers."""STRING
MEDIUMtracecat/agent/types.py70# These are used by the legacy pydantic-ai harness, not the sandbox runtimeCOMMENT
MEDIUMtracecat/agent/types.py108# Union type for messages from either harnessCOMMENT
MEDIUMtracecat/agent/exceptions.py28 # Build comprehensive error message with debug infoCOMMENT
MEDIUMtracecat/agent/adapter/vercel.py1121 # Unified approval request from any harness (pydantic-ai or claude)COMMENT
MEDIUMtracecat/agent/adapter/vercel.py1708 # Skip approval header for both harness typesCOMMENT
MEDIUMtracecat/agent/executor/aio.py52# This is an execution harness for an agent that adds persistence + streamingCOMMENT
MEDIUMtracecat/agent/executor/aio.py144 # Unified streaming: emit harness-agnostic eventCOMMENT
MEDIUMtracecat/storage/validation.py88 # Normalize extensions: trim whitespace and lowercase for robust comparisonCOMMENT
LOWtracecat/sandbox/service.py270 # beat us), this will fail on POSIX - that's fine, we just use theirs.COMMENT
LOWtracecat/registry/actions/service.py1600 # If this action is already in the repo, we can just use itCOMMENT
MEDIUMtracecat/db/models.py3087 # Agent harness fieldsCOMMENT
LOWtracecat/executor/service.py864 # ExecutionError already has proper error info, just add loop context if neededCOMMENT
LOWtracecat/webhooks/router.py419 # Currently just return the last response's wf_exec_idCOMMENT
MEDIUM…plates/tools/splunk/kv_store/batch_save_kv_entries.yml9 doc_url: https://help.splunk.com/en/splunk-cloud-platform/leverage-rest-apis/rest-api-reference/10.0.2503/kv-store-endCODE
MEDIUMpackages/tracecat-benchmark/docker-compose.loadtest.yml166 # Internal benchmark bootstrap. This is fixed harness wiring, not anCOMMENT
MEDIUMpackages/tracecat-benchmark/docker-compose.loadtest.yml185 # Internal benchmark bootstrap. This is fixed harness wiring, not anCOMMENT
MEDIUMpackages/tracecat-benchmark/docker-compose.loadtest.yml221 # Internal benchmark bootstrap. This is fixed harness wiring, not anCOMMENT
MEDIUM…/tracecat-ee/tracecat_ee/inbox/providers/agent_runs.py72# not appear here. Add a harness to this set to make its runs inbox-eligible.COMMENT
MEDIUM…/tracecat-ee/tracecat_ee/inbox/providers/agent_runs.py189 # Root sessions only: runs of any inbox-eligible harness, plus legacyCOMMENT
Verbosity Indicators33 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ontend/src/components/builder/canvas/selector-node.tsx370 // Step 1: create nodeCOMMENT
LOW…ontend/src/components/builder/canvas/selector-node.tsx385 // Step 2: connect incoming edge to the new nodeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py420 # Step 4: Verify id_token claimsCOMMENT
LOWtracecat/registry/sync/artifact.py402 # Step 1: Create a minimal venv using uvCOMMENT
LOWtracecat/registry/sync/artifact.py417 # Step 2: Install the package and all dependencies into the venvCOMMENT
LOWtracecat/registry/sync/artifact.py439 # Step 3: Locate the site-packages directory (PYTHONPATH entry)COMMENT
LOWtracecat/registry/sync/artifact.py452 # Step 4: Pre-compile Python bytecode for faster imports in sandboxCOMMENT
LOWtracecat/registry/sync/artifact.py472 # Step 5: Pack site-packages into a SquashFS imageCOMMENT
LOWtracecat/registry/sync/artifact.py488 # Step 6: Compute content hashCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py152 # Step 1: Fetch repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py159 # Step 2: Display numbered list of repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py178 # Step 3: Prompt user to select repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py192 # Step 4: Fetch versions for selected repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py201 # Step 5: Display numbered list of versionsCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py227 # Step 6: Prompt user to select versionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py251 # Step 7: Confirm selectionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py260 # Step 8: Call promote endpointCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py266 # Step 9: Display resultCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py26 # Step 1: Remap role_scope links from duplicate custom scopes to theCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py55 # Step 2: Drop stale role_scope links that point to custom duplicates.COMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py80 # Step 3: Delete the now-orphaned custom scope rows that are duplicatesCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py18 # Step 1: Add the owner_id column to case_fields table as nullable initiallyCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py26 # Step 2: Create an index on the owner_id column for better query performanceCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py36 # Step 3: Populate the new owner_id column with data from the related cases tableCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py51 # Step 4: Delete orphaned case_fields records that don't have a valid owner_idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py62 # Step 5: Create a foreign key constraint linking owner_id to workspace.idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py76 # Step 6: Make the owner_id column NOT NULL after populating it with dataCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py87 # Step 1: Remove the foreign key constraint first (dependencies must be removed before columns)COMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py90 # Step 2: Remove the index on owner_id columnCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py97 # Step 3: Finally, drop the owner_id column entirelyCOMMENT
Structural Annotation Overuse33 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ontend/src/components/builder/canvas/selector-node.tsx370 // Step 1: create nodeCOMMENT
LOW…ontend/src/components/builder/canvas/selector-node.tsx385 // Step 2: connect incoming edge to the new nodeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py420 # Step 4: Verify id_token claimsCOMMENT
LOWtracecat/registry/sync/artifact.py402 # Step 1: Create a minimal venv using uvCOMMENT
LOWtracecat/registry/sync/artifact.py417 # Step 2: Install the package and all dependencies into the venvCOMMENT
LOWtracecat/registry/sync/artifact.py439 # Step 3: Locate the site-packages directory (PYTHONPATH entry)COMMENT
LOWtracecat/registry/sync/artifact.py452 # Step 4: Pre-compile Python bytecode for faster imports in sandboxCOMMENT
LOWtracecat/registry/sync/artifact.py472 # Step 5: Pack site-packages into a SquashFS imageCOMMENT
LOWtracecat/registry/sync/artifact.py488 # Step 6: Compute content hashCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py152 # Step 1: Fetch repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py159 # Step 2: Display numbered list of repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py178 # Step 3: Prompt user to select repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py192 # Step 4: Fetch versions for selected repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py201 # Step 5: Display numbered list of versionsCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py227 # Step 6: Prompt user to select versionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py251 # Step 7: Confirm selectionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py260 # Step 8: Call promote endpointCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py266 # Step 9: Display resultCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py26 # Step 1: Remap role_scope links from duplicate custom scopes to theCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py55 # Step 2: Drop stale role_scope links that point to custom duplicates.COMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py80 # Step 3: Delete the now-orphaned custom scope rows that are duplicatesCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py18 # Step 1: Add the owner_id column to case_fields table as nullable initiallyCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py26 # Step 2: Create an index on the owner_id column for better query performanceCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py36 # Step 3: Populate the new owner_id column with data from the related cases tableCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py51 # Step 4: Delete orphaned case_fields records that don't have a valid owner_idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py62 # Step 5: Create a foreign key constraint linking owner_id to workspace.idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py76 # Step 6: Make the owner_id column NOT NULL after populating it with dataCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py87 # Step 1: Remove the foreign key constraint first (dependencies must be removed before columns)COMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py90 # Step 2: Remove the index on owner_id columnCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py97 # Step 3: Finally, drop the owner_id column entirelyCOMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALtests/registry/test_core_http.py229 assert route.calls.last.request.content.replace(b" ", b"") == b'{"data":"value"}'CODE
CRITICALtests/registry/test_core_http.py641 content_type_header = route.calls.last.request.headers.get("content-type", "")CODE
CRITICALtests/registry/test_core_http.py703 content_type_header = route.calls.last.request.headers.get("content-type", "")CODE
Modern AI Meta-Vocabulary12 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_mcp_server.py3110 # The publish orchestration lives in WorkflowsManagementService.publish_workflow;COMMENT
MEDIUMtests/unit/api/test_api_workflows.py261 # The build/validate/lock/commit orchestration lives inCOMMENT
MEDIUMtracecat/executor/service.py853 # This handles both template orchestration and UDF executionCOMMENT
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json740 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json740 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1821 "docs": "https://docs.snyk.io/integrations/snyk-studio-agentic-integrations",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1876 "https://docs.snyk.io/cli-ide-and-ci-cd-integrations/snyk-cli/developer-guardrails-for-agentic-workflows/snyCODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1877 "https://docs.snyk.io/integrations/developer-guardrails-for-agentic-workflows/quickstart-guides-for-mcp"CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2217 "https://www.redhat.com/en/blog/it-automation-agentic-ai-introducing-mcp-server-red-hat-ansible-automation-pCODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2258 "notes": "This is the Microsoft Agent 365 \"Work IQ User\" MCP server (internal server ID mcp_MeServer, displaCODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2369 "notes": "The official first-party SharePoint MCP server is the \"Work IQ SharePoint\" server in Microsoft AgeCODE
MEDIUM…workspace_chat/skills/tracecat-platform-guide/SKILL.md71## Correctness guardrailsCOMMENT
Over-Commented Block26 hits · 24 pts
SeverityFileLineSnippetContext
LOWalembic.ini1# A generic, single database configuration.COMMENT
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWalembic.ini61# output_encoding = utf-8COMMENT
LOWenv-migration.sh1#!/bin/bashCOMMENT
LOWdocker/sandbox/build.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/jest.setup.js101// Alternatively,COMMENT
LOWfrontend/next-env.d.ts1/// <reference types="next" />COMMENT
LOW…ontend/src/components/agents/agent-presets-builder.tsx1721 }COMMENT
LOW…de/mermaid-code-block-node/mermaid-code-block-node.tsx201#${svgId} foreignObject span,COMMENT
LOWfrontend/src/lib/workspace.ts1// Workspace role utilities are now handled via RBAC roles.COMMENT
LOWtests/conftest.py281# ---------------------------------------------------------------------------COMMENT
LOWtests/temporal/test_workflows.py5261 ),COMMENT
LOWtests/temporal/test_error_handling.py41COMMENT
LOWtests/temporal/test_error_handling.py61 # ),COMMENT
LOWtracecat/agent/session/service.py3241COMMENT
LOWtracecat/dsl/scheduler.py721 # Update child indegreesCOMMENT
LOWpackages/tracecat-benchmark/docker-compose.loadtest.yml1# PostgreSQL scatter load-test override.COMMENT
LOWpackages/tracecat-benchmark/docker-compose.loadtest.yml81 cpus: "${TRACECAT__LOADTEST_REDIS_CPUS:-0}"COMMENT
LOWpackages/tracecat-benchmark/docker-compose.loadtest.yml101 # idle connections of the non-load services against the same budget.COMMENT
LOWpackages/tracecat-benchmark/docker-compose.loadtest.yml121 # pins LiteLLM to 1 worker). Executor sandbox workers use the executor-localCOMMENT
LOWpackages/tracecat-benchmark/docker-compose.loadtest.yml141 #COMMENT
LOW…tracecat-benchmark/tracecat_benchmark/pgdog/users.toml1# Runtime users and independent logical database pools come fromCOMMENT
LOW.github/workflows/run-integration-tests.yml121 #COMMENT
LOWalembic/env.py61# this is the Alembic Config object, which providesCOMMENT
LOWdeployments/fargate/modules/ecs/secrets.tf1# Required secrets in AWS Secrets Manager (all services):COMMENT
Dead Code11 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_agent_runtime.py165CODE
MEDIUMtests/unit/test_agent_runtime.py762CODE
MEDIUMtests/unit/test_agent_runtime.py802CODE
MEDIUMtests/unit/test_agent_runtime.py1845CODE
MEDIUMtests/unit/test_concurrency.py425CODE
MEDIUMtests/unit/test_agent_otel_relay.py47CODE
MEDIUMtests/unit/test_tier_permits.py42CODE
MEDIUMtests/unit/test_tier_permits.py111CODE
MEDIUMtests/unit/test_agent_socket_io.py68CODE
MEDIUMtests/unit/api/test_api_audit_webhook_test.py91CODE
MEDIUMtracecat/agent/stream/connector.py426CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtracecat/integrations/service.py1120 # means "as requested"; a declared-empty [] means the AS stripped grants.COMMENT
HIGHtracecat/integrations/types.py55 # None = grant_types omitted ("as requested"); [] = AS stripped all grants.COMMENT
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_registry.py152 def test_function(num: int) -> int:STRING
LOWtests/registry/test_core_python.py90def helper():CODE
LOWtests/registry/test_core_python.py103def process_data(x):CODE
LOWtests/registry/test_core_python.py152def process_data(a, b, c):CODE
LOWtests/registry/test_core_python.py745def process_data(data):CODE
LOWtracecat/dsl/workflow.py709 async def execute_task(self, task: ActionStatement) -> TaskResult:CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHfrontend/tests/markdown-with-frontmatter.test.tsx102 print("hello")CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json651 "description": "The Iru API key sent as the X-API-Key HTTP header. Must be copied exactly as Iru shows it, iCODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/middleware.ts31 * Feel free to modify this pattern to include more paths.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker-compose.sandbox.yml2# Usage:COMMENT