AI Slop Code RIsk Monitor

TracecatHQ/tracecat

Open-source security automation platform for teams and AI agents

14.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for TracecatHQ/tracecat, a Python project with 3,830 GitHub stars. SynthScan examined 1,207,906 lines of code across 4934 source files, recording 15963 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 14.9 (Moderate pattern signal); it is not an authorship estimate.

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

14.9
Adjusted Signal
14.9
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.8K
Stars
Python
Language
1.2M
Lines of Code
4.9K
Files
16.0K
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 40.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 5.9/100 · LOW

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

Agent Over-Engineering Ratio 44.6/100 · MEDIUM

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

PR Review Velocity Impact 56.0/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 3HIGH 397MEDIUM 944LOW 14619

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers11885 hits · 10278 pts
SeverityFileLineSnippetContext
LOWfrontend/tests/case-comments-section.test.tsx415function createAgentPresetFixtures(): AgentPresetReadMinimal[] {CODE
LOWfrontend/tests/memo-render-count.test.tsx126function makeCompletedToolMessages(toolInput: unknown, toolOutput: unknown) {CODE
LOWfrontend/tests/org-vcs-github-manual-form.test.tsx37function installDeferredFileReader() {CODE
LOWfrontend/tests/use-chat.test.tsx92function 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…src/app/organization/settings/agent/telemetry/page.tsx5export default function AgentTelemetrySettingsPage() {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.tsx105function connectionSpecFromIntegration(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx158function workspaceIntegrationToCatalogEntry(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx188function workspaceIntegrationMatches(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx260function 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.tsx598export function ProviderConfigFormSkeleton() {CODE
LOWfrontend/src/components/icons.tsx327function createCatalogIconRenderer(CODE
LOWfrontend/src/components/icons.tsx342function 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…mponents/organization/org-settings-scim-connection.tsx174export function OrgSettingsScimConnection({CODE
LOW⚡…end/src/components/organization/org-settings-agent.tsx2751 function handleProviderCredentialsSaved() {CODE
LOW⚡…end/src/components/organization/org-settings-agent.tsx2761 function handleOpenAddCatalogModel(providerSlug: string) {CODE
LOW⚡…end/src/components/organization/org-settings-agent.tsx2768 function handleOpenEditCatalogModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx260function buildCloudCatalogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx307function buildCatalogCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx353function buildCatalogUpdatePayload(values: CloudCatalogModelFormValues) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx451function getBedrockSubscriptionStatus(CODE
LOW…end/src/components/organization/org-settings-agent.tsx702function getCustomSourceFlavorLabel(flavor?: string | null): string | null {CODE
LOW…end/src/components/organization/org-settings-agent.tsx765function getCustomSourceModelTitle(CODE
LOW…end/src/components/organization/org-settings-agent.tsx815function canEnableBuiltInCatalogModel(model: BuiltInCatalogEntry): boolean {CODE
LOW…end/src/components/organization/org-settings-agent.tsx847function getProviderDialogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx863function buildProviderCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx876function buildProviderUpdatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx1319function ProviderAllowlistModelRow({CODE
LOW…end/src/components/organization/org-settings-agent.tsx2407 function invalidateOrganizationAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2419 function invalidateBuiltInAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2537 async function handleDeleteBuiltInCredentials(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2596 async function handleEnableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2631 async function handleDisableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2667 async function handleRefreshBuiltInProvider(provider: string) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2688 async function handleSubscribeBedrockModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2716 async function handleRefreshCustomProvider(source: CustomSourceCard) {CODE
11825 more matches not shown…
Decorative Section Separators650 hits · 2177 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/components/skills/use-skills-studio.ts190 // ── State ──────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts227 // ── Data fetching ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts274 // ── Derived ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts301 // ── Effects ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts330 // ── Stable callbacks ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts351 // ── Handlers ───────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts804 // ── Return ─────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6440// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6442// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/conftest.py335# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py350# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py352# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2070# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2073# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2187# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2189# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py143# =============================================================================COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py145# =============================================================================COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py575# =============================================================================COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py577# =============================================================================COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py2737# =============================================================================COMMENT
MEDIUM⚡tests/temporal/test_durable_agent_workflow.py2739# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py434# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py436# =============================================================================COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py173# ---------------------------------------------------------------------------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
MEDIUM⚡tests/unit/test_deduplicate.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/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
MEDIUM⚡tests/unit/test_registry_repository.py255# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_registry_repository.py257# =============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py43# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py45# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py53# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py55# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py134# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py136# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py230# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py232# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py472# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py474# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py553# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py555# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py588# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py590# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_claude_adapter.py639# ==============================================================================COMMENT
MEDIUM⚡tests/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
MEDIUMtests/unit/test_claude_adapter.py76# ==============================================================================COMMENT
MEDIUM⚡tests/unit/test_mcp_server.py5140# ---------------------------------------------------------------------------COMMENT
590 more matches not shown…
Unused Imports1122 hits · 1060 pts
SeverityFileLineSnippetContext
LOWtests/_route_utils.py16CODE
LOWtests/shared.py3CODE
LOW…mporal/test_durable_agent_runtime_error_attribution.py3CODE
LOWtests/temporal/test_payload_encryption.py3CODE
LOWtests/temporal/test_registry_tool_cancellation.py3CODE
LOWtests/temporal/test_agent_config_sandbox_parity.py3CODE
LOWtests/temporal/test_workflow_concurrency_limits.py8CODE
LOWtests/temporal/test_dsl_dependency_plan.py3CODE
LOWtests/temporal/test_agent_config_workflow_boundary.py7CODE
LOWtests/temporal/test_runtime_error_attribution.py3CODE
LOW…s/temporal/runtime_error_attribution_engine_harness.py3CODE
LOWtests/temporal/test_large_collection_regressions.py10CODE
LOW…ts/temporal/runtime_error_attribution_child_harness.py3CODE
LOWtests/temporal/durable_agent_failure_harness.py3CODE
LOWtests/temporal/runtime_error_attribution_harness.py3CODE
LOWtests/temporal/test_platform_tracing.py1CODE
LOWtests/temporal/test_dsl_workflow_replay.py3CODE
LOWtests/unit/test_sandbox_file_io.py3CODE
LOWtests/unit/test_case_attachments_internal_router.py1CODE
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_cases_query.py1CODE
LOWtests/unit/test_watchtower_service.py1CODE
LOWtests/unit/test_executor_error_policy.py3CODE
LOWtests/unit/test_service_accounts_update.py1CODE
LOWtests/unit/test_dsl_workflow_activity_retry.py1CODE
LOWtests/unit/test_read_tool_use_rewrite.py3CODE
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_workspace_creation_entitlements.py3CODE
LOWtests/unit/test_stdio_probe_nsjail.py3CODE
LOWtests/unit/test_inbox_service.py1CODE
LOWtests/unit/test_tenant_rls_registry.py1CODE
1062 more matches not shown…
Docstring Block Structure160 hits · 800 pts
SeverityFileLineSnippetContext
HIGHtracecat/store.py32Fetch the content for a specific source. Args: path: Path to the source file in the repository. STRING
HIGHtracecat/config.py733Parse 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.py117Retrieve a member of the organization by their user ID. Args: user_id (UserID): The unique identifiSTRING
HIGHtracecat/organization/service.py723Trace a member's roles to their direct and group sources. Group sources by role and workspace so a role appearsSTRING
HIGHtracecat/organization/service.py849 Update a member of the organization. This method updates the details of a specified member within the STRING
HIGHtracecat/organization/management.py111Create an organization record. Args: session: Database session. name: Organization name. slSTRING
HIGHtracecat/organization/management.py149Create a new organization with default settings and workspace. This is the canonical way to create an organization.STRING
HIGHtracecat/organization/management.py293Get the ID of the first/default organization. Args: session: Database session. Returns: OrganiSTRING
HIGHtracecat/tables/service.py443List all lookup tables for a workspace. Args: workspace_id: The ID of the workspace to list tables STRING
HIGHtracecat/tables/service.py506Get a lookup table by name. Args: table_name: The name of the table to get Returns: STRING
HIGHtracecat/tables/service.py543Create a new lookup table. Args: params: Parameters for creating the table Returns: STRING
HIGHtracecat/tables/service.py693Add a new column to an existing table. Args: table: The table to add the column to paraSTRING
HIGHtracecat/tables/service.py774Update a column in an existing table. Args: column: The column to update params: ParameSTRING
HIGHtracecat/tables/service.py1070Insert a new row into the table. Args: table: The table to insert into params: The row STRING
HIGHtracecat/tables/service.py1164Update an existing row in the table. Args: table: The table containing the row to update STRING
HIGHtracecat/tables/service.py1574List rows in a table with cursor-based pagination. Args: table: The table to search in STRING
HIGHtracecat/tables/service.py1781Insert multiple rows into the table atomically. Args: table: The table to insert into rSTRING
HIGHtracecat/tables/service.py2253Add a new column to an existing table. Args: params: Parameters for the new column ReturnsSTRING
HIGHtracecat/tables/service.py2314Update a column in an existing table. Args: params: Parameters for updating the column RetSTRING
HIGHtracecat/tables/service.py2567Update an existing row in the table. Args: row_id: The ID of the row to update data: DiSTRING
HIGHtracecat/tables/common.py318Convert a value to a SQL-compatible string based on type. Args: value: The value to convert to SQL format STRING
HIGHtracecat/auth/credentials.py938 Factory for FastAPI dependency that enforces role-based access control. This function creates a dependency forSTRING
HIGHtracecat/secrets/service.py319Get 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.py880Get a case with its associated custom fields. Args: case_id: UUID of the case to retrieve STRING
HIGHtracecat/cases/service.py1131Update a case and optionally its custom fields. Args: case: The case object to update pSTRING
HIGHtracecat/cases/service.py1978Ensure a workspace data row exists for the given case. Args: case_id: The case ID to ensure a row eSTRING
HIGHtracecat/cases/service.py2075Upsert custom field values for a case. This method ensures the workspace row exists and updates field values. STRING
HIGHtracecat/cases/service.py2954Update an existing comment. Args: comment: The comment to update params: The updated coSTRING
HIGHtracecat/cases/service.py3153Get a task by ID. Args: task_id: The ID of the task to get Returns: The task STRING
HIGHtracecat/cases/service.py3228Create a new task for a case. Args: case_id: The ID of the case to create a task for paSTRING
HIGHtracecat/cases/service.py3300Update 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.py104Upsert one case interaction without committing the caller's transaction. Args: case_id: Case toucheSTRING
HIGHtracecat/cases/attachments/service.py207Create a new attachment for a case with security validations. Args: case: The case to attach the fiSTRING
HIGHtracecat/cases/attachments/service.py415Download an attachment's content. Args: case: The case the attachment belongs to attachSTRING
HIGHtracecat/cases/attachments/service.py455Generate a presigned URL for downloading an attachment. Args: case: The case the attachment belongsSTRING
HIGHtracecat/agent/service.py489Discover models from a built-in gateway provider and upsert catalog rows. Built-in gateway providers (Ollama, vSTRING
HIGHtracecat/agent/tools.py39Create a Tool from a registry action using index-based lookup. Args: action_name: Full canonical action namSTRING
HIGHtracecat/agent/tools.py168Build tools from a list of actions using index-based lookups. Args: namespaces: Optional list of namespace STRING
HIGHtracecat/agent/tokens.py167Create a signed MCP JWT containing workspace identity and allowed actions. This token is minted by the AgentExecutoSTRING
HIGHtracecat/agent/tokens.py239Verify MCP JWT and return extracted claims. Args: token: The JWT string to verify Returns: MCPSTRING
HIGHtracecat/agent/tokens.py430Verify LLM JWT and return extracted claims. Args: token: The JWT string to verify Returns: LLMSTRING
HIGHtracecat/agent/tokens.py532Verify an Agent OTel relay JWT and return extracted claims. Args: token: The JWT string to verify. RetSTRING
HIGHtracecat/agent/skill/manifest.py113Normalize and validate a relative POSIX draft path. Args: path: User-provided file path. Returns: STRING
HIGHtracecat/agent/mcp/user_client.py414Execute a tool on a user MCP server. Args: server_name: Name of the MCP server (from config). STRING
HIGHtracecat/agent/mcp/executor.py95Execute a registry UDF through the shared executor queue. Args: action_name: The action to execute (e.g., "STRING
HIGHtracecat/agent/common/socket_io.py66Read a framed message from the socket. Args: reader: The asyncio stream reader. expected_type: If pSTRING
HIGHtracecat/agent/sandbox/config.py271Build nsjail protobuf config for agent runtime execution. Args: rootfs: Path to the sandbox rootfs (same asSTRING
HIGHtracecat/agent/sandbox/config.py560Construct a sanitized environment for the nsjail agent process. Args: config: Agent sandbox configuration. STRING
HIGHtracecat/agent/sandbox/nsjail.py153Spawn the Claude shim inside an NSJail sandbox or direct subprocess. This is the entrypoint for the orchestrator toSTRING
HIGHtracecat/agent/sandbox/nsjail.py546Wait for a jailed runtime process to complete. Args: process: The nsjail subprocess. timeout_secondSTRING
HIGHtracecat/agent/executor/activity.py528Create one direct passthrough route. Args: base_url: Resolved provider base URL. model_STRING
100 more matches not shown…
Self-Referential Comments228 hits · 718 pts
SeverityFileLineSnippetContext
MEDIUMdocker/sandbox/build.sh42# Create a temporary container and export its filesystemCOMMENT
MEDIUMtests/conftest.py632 # Create a registry repository for core actionsSTRING
MEDIUMtests/temporal/test_workflows.py755 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py2080 # Create a simple configuration variableCOMMENT
MEDIUMtests/temporal/test_workflows.py3500 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py4313 # Create a simple child workflow that doubles the inputCOMMENT
MEDIUMtests/temporal/test_workflows.py6194 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6325 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6411 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6612 # Create a workflow with sequential actions to verify time advancesCOMMENT
MEDIUMtests/temporal/test_workflows.py6749 # Create a child workflow that returns the current timeCOMMENT
MEDIUMtests/temporal/test_workflows.py6771 # Create a parent workflow that calls the child and also captures its own timeCOMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py219 # 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.py212 # Create a different UUID for comparisonCOMMENT
MEDIUMtests/unit/test_identifiers.py292 # Create a model instanceCOMMENT
MEDIUM⚡tests/unit/test_registry.py159 # Create a new moduleCOMMENT
MEDIUM⚡tests/unit/test_registry.py162 # Create a module spec for the test moduleCOMMENT
MEDIUM⚡tests/unit/test_registry.py171 # Create a file for the sync functionCOMMENT
MEDIUM⚡tests/unit/test_registry.py302 # Create a new test module with datetime/UUID UDFsCOMMENT
MEDIUM⚡tests/unit/test_registry.py311 # Create a file with UDF that accepts datetimeCOMMENT
MEDIUMtests/unit/test_registry.py190 # Create a file for the async functionCOMMENT
MEDIUMtests/unit/test_registry.py209 # Create a file for the deprecated functionCOMMENT
MEDIUMtests/unit/test_registry.py520 # Create a test directory structureCOMMENT
MEDIUM⚡tests/unit/test_concurrency.py485 # Create a generator that would be expensive if fully loadedCOMMENT
MEDIUMtests/unit/test_concurrency.py20 # 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
MEDIUM⚡tests/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
MEDIUM⚡tests/unit/test_template_actions.py148 # Create a new moduleCOMMENT
MEDIUM⚡tests/unit/test_template_actions.py151 # Create a module spec for the test moduleCOMMENT
MEDIUMtests/unit/test_template_actions.py862 # Create a template action that uses VARS expressionsCOMMENT
MEDIUMtests/unit/test_template_actions.py1047 # Create a template action with multi-level fallbackCOMMENT
MEDIUMtests/unit/test_template_actions.py1177 # Create a manifest with:COMMENT
MEDIUMtests/unit/test_mcp_integrations.py4074 # Create a second OAuth integrationCOMMENT
MEDIUMtests/unit/test_mcp_integrations.py6444 # Create a dummy MCP provider for testingCOMMENT
MEDIUMtests/unit/test_parse.py98 # Create a temporary pyproject.toml fileCOMMENT
MEDIUMtests/unit/test_secrets_service.py614 # Create a secretCOMMENT
MEDIUM⚡tests/unit/test_case_events_service.py456 # Create an event with the original service (original user)COMMENT
MEDIUM⚡tests/unit/test_case_events_service.py464 # Create a service with a different userCOMMENT
MEDIUMtests/unit/test_case_events_service.py58 # Create a role without workspace_id (but with organization_id to pass org check)COMMENT
MEDIUMtests/unit/test_case_events_service.py476 # Create an event with the different service (different user)COMMENT
168 more matches not shown…
Excessive Try-Catch Wrapping733 hits · 644 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py296 except Exception as exc:CODE
LOWtests/conftest.py379 except Exception:CODE
LOWtests/conftest.py436 except Exception as e:CODE
LOWtests/conftest.py1629 except Exception as e:CODE
LOWtests/conftest.py1661 except Exception as e:CODE
LOWtests/conftest.py1762 except Exception as e:CODE
LOWtests/conftest.py1775 except Exception as inner_e:CODE
LOWtests/conftest.py1793 except Exception as e:CODE
LOWtests/conftest.py1847 except Exception:CODE
LOWtests/conftest.py1264 except Exception as e:STRING
LOWtests/conftest.py1269 except Exception as e:STRING
LOWtests/conftest.py1440 except Exception as exc:STRING
LOWtests/temporal/test_workflows.py417 except Exception as e:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py2852 except Exception:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py2856 except Exception:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py2970 except Exception:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py2974 except Exception:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py3091 except Exception:CODE
LOW⚡tests/temporal/test_durable_agent_workflow.py3095 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3223 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py3227 except Exception:CODE
LOW⚡tests/temporal/test_dsl_workflow_replay.py166 except Exception as handler_error:CODE
LOWtests/unit/test_agent_preset_service.py96 except Exception:CODE
MEDIUMtests/unit/test_agent_sandbox_litellm.py1550 " print('Error parsing JSON response', file=sys.stderr, flush=True)",CODE
LOWtests/unit/test_registry_import_race.py43 except Exception as e: # noqa: BLE001 - regression guardCODE
LOWtests/unit/test_registry_import_race.py106 except Exception as e: # noqa: BLE001 - collect all errors for assertionCODE
MEDIUMtests/unit/test_registry_import_race.py40def reloader() -> None:CODE
LOWtests/unit/test_skill_service.py102 except Exception:CODE
LOW⚡tests/unit/test_action_environment_override.py317 except Exception:CODE
LOW⚡tests/unit/test_action_environment_override.py325 except Exception:CODE
LOWtests/unit/test_action_environment_override.py384 except Exception:CODE
LOWtests/unit/test_tables_service.py2339 except Exception as e:STRING
LOWtests/unit/test_agent_otel_relay.py240 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1243 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1275 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1304 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1357 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1424 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1457 except Exception:CODE
LOWtests/unit/test_agent_otel_relay.py1493 except Exception:CODE
LOWtests/unit/test_workflow_import_service.py754 except Exception as e:CODE
LOWtests/unit/test_case_attachments_service.py48 except Exception:CODE
LOWtests/unit/executor/test_run_python_sdk_context.py282 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
LOW⚡tests/backends/conftest.py83 except Exception:CODE
LOWtests/backends/test_backend_benchmarks.py209 except Exception:CODE
LOWtests/support/executor_backend.py160 except Exception as e:CODE
LOWtests/support/executor_backend.py307 except Exception as e: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
LOW⚡tests/registry/test_core_python.py547 except Exception as e:CODE
LOW⚡tests/registry/test_core_python.py721 except Exception as e:CODE
LOWtests/registry/test_core_python.py596 except Exception as e:CODE
LOWtracecat/concurrency.py28 except Exception:CODE
673 more matches not shown…
Cross-File Repetition96 hits · 480 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_workflow_folders_service.py0folder rows should report direct child counts, not just boolean presence.STRING
HIGHtests/unit/test_skill_folders_service.py0folder rows should report direct child counts, not just boolean presence.STRING
HIGHtests/unit/test_agent_folders_service.py0folder rows should report direct child counts, not just boolean presence.STRING
HIGHtests/unit/test_tenant_rls_registry.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_scim_connection_service.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_scim_connection_auth.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_scim_audit_chain.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_scim_protocol.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_scim_provisioning.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_scim_mappings.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_skill_folders_service.py0read methods should reject callers without agent:read before querying.STRING
HIGHtests/unit/test_agent_folders_service.py0read methods should reject callers without agent:read before querying.STRING
HIGHtests/unit/test_agent_tags_service.py0read methods should reject callers without agent:read before querying.STRING
HIGHtests/unit/test_skill_tags_service.py0read methods should reject callers without agent:read before querying.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.py0disable minio-dependent workflow bucket setup for migration tests.STRING
HIGHtests/migration/test_scim_shadow_tables_migration.py0disable minio-dependent workflow bucket setup for migration tests.STRING
HIGHtests/migration/test_scim_connection_migration.py0disable minio-dependent workflow bucket setup for migration tests.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…/migration/test_membership_aggregate_root_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
HIGH…igration/test_multi_workspace_entitlement_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…/migration/test_membership_aggregate_root_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test org', :slug, true)STRING
HIGH…emove_legacy_org_scoped_builtin_registry_repository.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test org', :slug, true)STRING
HIGHtests/migration/test_case_versions_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test org', :slug, true)STRING
HIGH…sts/migration/test_comment_activity_audit_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test org', :slug, true)STRING
HIGH…ts/migration/test_workspace_skills_preset_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test org', :slug, true)STRING
HIGH…tion/test_deferred_case_number_allocation_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'migration test 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
36 more matches not shown…
Empty Error Handlers94 hits · 470 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py1943except S3Error:CODE
HIGHtests/conftest.py112except ValueError:CODE
HIGHtests/temporal/test_workflows.py241except ValidationError:CODE
HIGHtests/temporal/test_durable_agent_workflow.py2856except Exception:CODE
HIGHtests/temporal/test_durable_agent_workflow.py2974except Exception:CODE
HIGHtests/temporal/test_durable_agent_workflow.py3095except Exception:CODE
HIGHtests/temporal/test_durable_agent_workflow.py3227except Exception:CODE
HIGHtests/unit/test_registry_artifacts.py3602except TimeoutError:CODE
HIGHtests/unit/test_action_environment_override.py317except Exception:CODE
HIGHtests/unit/test_action_environment_override.py325except Exception:CODE
HIGHtests/unit/test_action_environment_override.py384except Exception:CODE
HIGHtests/unit/test_contexts.py123except ValueError:CODE
HIGHtests/unit/test_agent_otel_relay.py1457except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py240except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py1243except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py1275except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py1304except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py1493except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py224except (OSError, NotImplementedError):CODE
HIGHtests/unit/test_agent_otel_relay.py1357except Exception:CODE
HIGHtests/unit/test_agent_otel_relay.py1424except Exception:CODE
HIGHtests/unit/test_case_tags_service.py159except (IntegrityError, DatabaseError, NoResultFound):CODE
HIGHtests/unit/test_sandbox.py188except ValueError:CODE
HIGHtests/unit/test_agent_socket_io.py375except TimeoutError:CODE
HIGHtests/unit/test_agent_socket_io.py437except TimeoutError:CODE
HIGH…/unit/executor/test_action_gateway_signal_lifecycle.py125except (BrokenPipeError, EOFError, OSError):CODE
HIGHtests/integration/test_syncv2_execv2_e2e.py469except Exception:CODE
HIGHtests/integration/test_syncv2_execv2_e2e.py778except Exception:CODE
HIGHtests/integration/test_search_storage.py551except SearchError:CODE
HIGHtests/integration/test_case_duration_benchmarks.py676except asyncio.CancelledError:CODE
HIGHtracecat/concurrency.py28except Exception:CODE
HIGHtracecat/exceptions.py314except (ValueError, TypeError):CODE
HIGHtracecat/workspace_sync/transport.py457except Exception:CODE
HIGHtracecat/workspace_sync/resources.py353except ValueError:CODE
HIGHtracecat/workspace_sync/adapters/table.py358except ValueError:CODE
HIGHtracecat/logger/_logger.py70except ValueError:CODE
HIGHtracecat/logger/_logger.py62except Exception:CODE
HIGHtracecat/auth/saml.py236except OSError:CODE
HIGHtracecat/auth/saml.py268except OSError:CODE
HIGHtracecat/auth/saml.py228except OSError:CODE
HIGHtracecat/auth/saml.py260except OSError:CODE
HIGHtracecat/cases/service.py270except ValueError:CODE
HIGHtracecat/cases/agent_sessions/backfill.py240except (UnicodeDecodeError, ValueError):CODE
HIGHtracecat/agent/service.py214except Exception:CODE
HIGHtracecat/agent/runtime_services.py75except asyncio.CancelledError:CODE
HIGHtracecat/agent/skill/service.py2290except UnicodeDecodeError:CODE
HIGHtracecat/agent/skill/service.py2351except UnicodeDecodeError:CODE
HIGH…brary/skills/create-sigma-rule/scripts/attack_check.py135except ImportError:CODE
HIGH…brary/skills/create-sigma-rule/scripts/attack_check.py534except Exception: # noqa: BLE001CODE
HIGH…brary/skills/create-sigma-rule/scripts/attack_check.py166except (OSError, UnicodeDecodeError, json.JSONDecodeError):CODE
HIGHtracecat/agent/backends/base.py299except Exception:CODE
HIGHtracecat/agent/catalog/router.py121except TracecatValidationError:CODE
HIGHtracecat/agent/runtime/claude_code/transport.py343except asyncio.CancelledError:CODE
HIGHtracecat/agent/runtime/claude_code/runtime.py1978except asyncio.CancelledError:CODE
HIGHtracecat/agent/provider/service.py213except Exception:CODE
HIGHtracecat/agent/adapter/vercel.py136except (json.JSONDecodeError, TypeError):CODE
HIGHtracecat/agent/sandbox/llm_proxy.py972except OSError:CODE
HIGHtracecat/agent/sandbox/llm_proxy.py1120except Exception:CODE
HIGHtracecat/agent/sandbox/otel_relay.py949except Exception:CODE
HIGHtracecat/agent/sandbox/otel_relay.py921except OSError:CODE
34 more matches not shown…
Deep Nesting298 hits · 244 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py288CODE
LOWtests/conftest.py494CODE
LOWtests/conftest.py610CODE
LOWtests/conftest.py1707CODE
LOWtests/conftest.py504CODE
LOWtests/conftest.py626CODE
LOWtests/temporal/test_workflows.py346CODE
LOWtests/temporal/test_registry_tool_cancellation.py47CODE
LOWtests/temporal/test_durable_agent_workflow.py2747CODE
LOWtests/temporal/test_durable_agent_workflow.py2866CODE
LOWtests/temporal/test_durable_agent_workflow.py2984CODE
LOWtests/temporal/test_durable_agent_workflow.py3105CODE
LOWtests/unit/test_agent_backends.py1014CODE
LOWtests/unit/test_agent_runtime.py4068CODE
LOWtests/unit/test_rbac_service.py1562CODE
LOWtests/unit/test_mcp_server.py11998CODE
LOWtests/unit/test_agent_sandbox_litellm.py2007CODE
LOWtests/unit/test_workflow_executions.py125CODE
LOWtests/unit/test_workflow_executions.py634CODE
LOWtests/unit/test_workflow_executions.py730CODE
LOWtests/unit/test_storage_cache.py22CODE
LOWtests/unit/test_vercel_sse_resume.py37CODE
LOWtests/unit/test_tables_service.py300CODE
LOWtests/unit/test_executor_sandbox_nsjail.py654CODE
LOWtests/unit/test_executor_sandbox_nsjail.py1023CODE
LOWtests/unit/test_config.py365CODE
LOWtests/unit/test_agent_http_framing.py139CODE
LOWtests/unit/test_group_member_rls.py23CODE
LOWtests/unit/test_outbound.py681CODE
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
LOWtests/integration/test_skill_mcp_deletion.py22CODE
LOWtests/integration/test_skill_mcp_deletion.py132CODE
LOW…ration/test_registry_artifact_cache_mount_lifecycle.py567CODE
LOWtests/backends/test_agent_dispatch_transaction.py120CODE
LOWtests/support/executor_backend.py73CODE
LOWtests/registry/test_core_transform.py771CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1047CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1185CODE
LOWtests/migration/test_deleted_dependency_cleanup.py18CODE
LOWtests/migration/test_agent_chat_visibility_migration.py19CODE
LOWtests/migration/test_session_backend_identity.py14CODE
LOWtests/migration/test_session_ancestry.py16CODE
LOWtracecat/outbound.py202CODE
LOWtracecat/ssh.py151CODE
LOWtracecat/pagination.py386CODE
LOWtracecat/temporal/errors.py335CODE
LOWtracecat/temporal/codec.py313CODE
LOWtracecat/temporal/error_chain.py8CODE
LOWtracecat/tables/service.py145CODE
LOWtracecat/tables/service.py370CODE
LOWtracecat/tables/service.py769CODE
LOWtracecat/tables/service.py1560CODE
LOWtracecat/tables/service.py1773CODE
LOWtracecat/tables/service.py1946CODE
238 more matches not shown…
Cross-Language Confusion43 hits · 200 pts
SeverityFileLineSnippetContext
HIGHtests/temporal/test_workflows.py5636 items="${{ ACTIONS.is_one.result || ACTIONS.is_two.result || ACTIONS.is_three.result }}"CODE
HIGHtests/temporal/test_workflows.py5703 "value": "${{ ACTIONS.is_one.result || ACTIONS.is_two.result }}"CODE
HIGHtests/unit/test_read_tool_use_rewrite.py132 '"offset": null}',CODE
HIGHtests/unit/test_pan_templates.py23PRISMA_BASE_URL = "${{ inputs.base_url || VARS.pan_prisma.base_url }}"CODE
HIGHtests/unit/test_pan_templates.py24SCM_BASE_URL = '${{ inputs.base_url || VARS.pan_strata.base_url || "https://api.strata.paloaltonetworks.com" }}'CODE
HIGH⚡tests/unit/test_pan_templates.py79 "${{ inputs.base_url || VARS.pan_os.base_url }}"CODE
HIGHtests/unit/test_template_actions.py636 "data": "${{ inputs.limit || 100 }}",CODE
HIGHtests/unit/test_template_actions.py889 "value": "${{ inputs.url || VARS.test.url }}",CODE
HIGHtests/unit/test_template_actions.py913 "value": "${{ inputs.custom_timeout || VARS.test.timeout }}",CODE
HIGHtests/unit/test_template_actions.py1068 "value": '${{ inputs.url || VARS.config.url || "http://default-url.com" }}',CODE
HIGH⚡tests/unit/test_template_actions.py1024 """Test template action with multi-level fallback chain using || operator.STRING
HIGH⚡tests/unit/test_template_actions.py1027 ${{ inputs.url || VARS.config.url || "http://default-url.com" }}STRING
HIGHtests/unit/test_template_actions.py838 3. VARS expressions work with fallback logic (e.g., inputs.value || VARS.default)STRING
HIGHtests/unit/test_bitbucket_vcs.py111 await git.push("", sha, "main")CODE
HIGH⚡tests/unit/test_bitbucket_vcs.py260 await one.push("", sha_one, "main")CODE
HIGH⚡tests/unit/test_bitbucket_vcs.py262 await two.push("", sha_two, "main")CODE
HIGHtests/unit/test_bitbucket_vcs.py523 await git.push("", seeded, "main")CODE
HIGH…sts/unit/test_agent_reasoning_effort_payload_compat.py6``"off"`` disables thinking, and any other level, or null, enables it. AnSTRING
HIGHtests/registry/test_core_http.py1570 "previous": null,STRING
HIGH…igration/test_multi_workspace_entitlement_migration.py76 """Tiers without the key get `true`; any stored value, including JSON null, is kept.STRING
HIGH…igration/test_multi_workspace_entitlement_migration.py109 '{"multi_workspace": null}'::jsonbCODE
HIGH…sts/migration/test_comment_activity_audit_migration.py165 f'{{"comment_id":"{comment_id}","parent_id":null,'STRING
HIGHtracecat/workspace_sync/transport.py1836 await git.push(remote, sha, branch)CODE
HIGHtracecat/workspace_sync/transport.py2082 await git.push(remote, sha, branch)CODE
HIGHtracecat/agent/service.py995 non-null) are intentionally left alone — they represent explicitSTRING
HIGHtracecat/agent/tokens.py340 "and catalog_id is null, the gateway resolves workspace provider "CODE
HIGHtracecat/agent/preset/schemas.py208 f"{field_name} cannot be null; omit the field to leave it unchanged"CODE
HIGHtracecat/agent/backends/schemas.py41 "If null, the run follows the preset's current version."CODE
HIGHtracecat/agent/common/types.py24 ``False``; any other level, or null, maps to ``True``. An explicitSTRING
HIGHtracecat/agent/session/schemas.py64 "If null, the session follows the preset's current version."CODE
HIGHtracecat/mcp/server.py2368do not parse — `${{ TRIGGER.x || false }}` is a parse error. \CODE
HIGHtracecat/mcp/server.py2369Use `${{ TRIGGER.x || False }}`, `${{ TRIGGER.x || 0 }}`, or `${{ TRIGGER.x || "" }}`.CODE
HIGHtracecat/mcp/server.py2389 Authorization: "Bearer ${{ SECRETS.azure_log_analytics_oauth.AZURE_LOG_ANALYTICS_USER_TOKEN || SECRETS.azure_log_analyCODE
HIGHtracecat/mcp/server.py3024 ${{ ACTIONS.hit.result && FN.length(FN.compact(ACTIONS.existing_case.result.fields)) > 0CODE
HIGHtracecat/variables/schemas.py60 "values cannot be null; omit the field to leave it unchanged"CODE
HIGHtracecat/workflow/management/router.py1217 If folder_id is null, the workflow will be moved to the root (no folder).STRING
HIGHtracecat/db/models.py47 null,CODE
HIGHtracecat/db/models.py2706 doc="The ID of the user who made the comment. If null, the comment is system generated.",CODE
HIGHtracecat/db/models.py2736 doc="The ID of the parent comment. If null, the comment is a top-level comment.",CODE
HIGHtracecat/db/models.py2897 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.py466 description="Maximum number of pages to fetch. If null, fetches every page.",CODE
HIGH…ges/tracecat-ee/tracecat_ee/agent/approvals/service.py11from sqlalchemy import func, null, selectCODE
Fake / Example Data173 hits · 164 pts
SeverityFileLineSnippetContext
LOW⚡frontend/tests/profile-settings.test.ts5 expect(getProfileNameUpdate("Jane Doe", " Jane Doe ")).toBeNull()CODE
LOW⚡frontend/tests/profile-settings.test.ts9 expect(getProfileNameUpdate("Jane Doe", " ")).toEqual({CODE
LOW⚡frontend/tests/profile-settings.test.ts16 expect(getProfileNameUpdate("Jane Doe", " Ada Lovelace ")).toEqual({CODE
LOWfrontend/tests/add-workspace-member.test.tsx125 await user.type(screen.getByPlaceholderText("user@example.com"), email)CODE
LOWfrontend/tests/add-workspace-member.test.tsx141 screen.queryByPlaceholderText("user@example.com")CODE
LOWfrontend/tests/agent-preset-panels.test.tsx309 "placeholder",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
LOW⚡frontend/tests/auth-ui-matrix.test.tsx328 target: { value: "user@example.com" },CODE
LOW⚡frontend/tests/auth-ui-matrix.test.tsx335 email: "user@example.com",CODE
LOW⚡frontend/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/invite-member-dialog.test.tsx250 await user.type(screen.getByPlaceholderText("user@example.com"), "a@b.com")CODE
LOWfrontend/tests/invite-member-dialog.test.tsx289 await user.type(screen.getByPlaceholderText("user@example.com"), "a@b.com")CODE
LOWfrontend/tests/invite-member-dialog.test.tsx319 await user.type(screen.getByPlaceholderText("user@example.com"), "a@b.com")CODE
LOWfrontend/tests/invite-member-dialog.test.tsx332 await user.type(screen.getByPlaceholderText("user@example.com"), "a@b.com")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…d/src/components/organization/invite-member-dialog.tsx214 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.tsx226 placeholder="user@example.com"CODE
LOW…end/src/components/workspaces/add-workspace-member.tsx220 placeholder="user@example.com"CODE
LOW⚡tests/unit/test_table_csv_importer.py206 csv_row = {"csv_name": "John Doe"}CODE
LOW⚡tests/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
LOW⚡tests/unit/test_saml_client_config.py167 fake_session, uuid.uuid4(), "user@example.com"CODE
LOW⚡tests/unit/test_saml_client_config.py245 fake_session, uuid.uuid4(), ["user@example.com"]CODE
LOW⚡tests/unit/test_saml_client_config.py248 assert email == "user@example.com"CODE
LOW⚡tests/unit/test_saml_client_config.py344 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOW⚡tests/unit/test_saml_client_config.py347 assert email == "admin@example.com"CODE
LOW⚡tests/unit/test_saml_client_config.py409 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOW⚡tests/unit/test_saml_client_config.py414 fake_session, "admin@example.com"CODE
LOW⚡tests/unit/test_saml_client_config.py423 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOW⚡tests/unit/test_saml_client_config.py428 fake_session, "admin@example.com"CODE
LOW⚡tests/unit/test_saml_client_config.py437 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOW⚡tests/unit/test_saml_client_config.py441 fake_session, "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py369 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOWtests/unit/test_saml_client_config.py461 fake_session, org_id, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py480 fake_session, uuid.uuid4(), "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py553 "user@example.com",STRING
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.py165 "metadata": {"name": "John Doe", "age": 30},CODE
LOWtests/unit/test_expressions.py208 "metadata": {"name": "John Doe", "age": 30},CODE
LOW⚡tests/unit/test_pan_templates.py219 group = {"id": "g1", "name": "blk", "folder": "Shared", "static": ["placeholder"]}CODE
LOW⚡tests/unit/test_pan_templates.py227 "static": ["placeholder", indicator["name"]],CODE
LOWtests/unit/test_pan_templates.py255 "static": {"member": "placeholder"},CODE
LOWtests/unit/test_pan_templates.py268 "static": {"member": ["placeholder", "tc-block-203.0.113.10"]},CODE
LOW⚡tests/unit/test_mcp_auth.py803 assert merged.claims["email"] == "user@example.com"CODE
LOW⚡tests/unit/test_mcp_auth.py821 email="user@example.com",CODE
LOW⚡tests/unit/test_mcp_auth.py840 "email": "user@example.com",CODE
113 more matches not shown…
Redundant / Tautological Comments105 hits · 163 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.py1543 # Check if organization existsCOMMENT
LOWtests/conftest.py1584 # Check if organization exists in this sessionCOMMENT
LOWtests/conftest.py1668 # Check if organization existsCOMMENT
LOWtests/conftest.py1722 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1747 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1780 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/temporal/test_durable_agent_workflow.py461 # Check if user already existsCOMMENT
LOW⚡tests/unit/test_registry.py165 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_validation.py435 # Check if any error message matches the expected patternCOMMENT
LOW⚡tests/unit/test_template_actions.py154 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_integrations_service.py779 # Set expiration to 4 minutes in future (within refresh window)COMMENT
LOW⚡tests/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.py299 # Check if organization existsCOMMENT
LOW⚡tests/backends/conftest.py76 # 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/management.py317 # Check if any organization existsCOMMENT
LOWtracecat/tables/service.py916 # Check if another index already existsCOMMENT
LOWtracecat/tables/service.py1119 # Check if we have any unique columns to use for conflict resolutionCOMMENT
LOWtracecat/inbox/providers/agent_runs.py404 # Check if there are more itemsCOMMENT
LOWtracecat/auth/users.py142 # Check if this is attempting to be the first user (superadmin)COMMENT
LOWtracecat/auth/credentials.py665 # Check if user is an org owner/admin via RBAC - they can access all workspacesCOMMENT
LOWtracecat/auth/saml.py717 # Check if request has expired but don't delete yetCOMMENT
LOWtracecat/auth/saml.py792 # Check if the request has expiredCOMMENT
LOWtracecat/cases/service.py3380 # Check if the field was provided in the update payload using model_fields_setCOMMENT
LOWtracecat/cases/tags/service.py297 # Check if already existsCOMMENT
LOWtracecat/cases/attachments/service.py303 # Check if file already exists (deduplication)COMMENT
LOWtracecat/cases/attachments/service.py356 # Check if attachment already exists for this case and fileCOMMENT
LOWtracecat/cases/attachments/service.py519 # 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
LOW⚡tracecat/agent/service.py418 # Check if credentials already existCOMMENT
LOWtracecat/agent/preset/service.py1006 # Check if all requested IDs existCOMMENT
LOWtracecat/agent/mcp/proxy_server.py186 # Check if this is a user MCP toolCOMMENT
LOWtracecat/agent/session/router.py419 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py504 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py563 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/tags/service.py58 # Check if ref already existsCOMMENT
LOWtracecat/integrations/service.py2420 # Check if integration configuration already exists for this providerCOMMENT
LOWtracecat/integrations/service.py2638 # Check if integration is properly connected (has access tokens)COMMENT
LOWtracecat/integrations/service.py2642 # Check if provider is an MCP providerCOMMENT
LOWtracecat/integrations/service.py2666 # Check if MCP integration already exists for this OAuth integration.COMMENT
LOWtracecat/integrations/router.py773 # Check if provider is configuredCOMMENT
LOWtracecat/integrations/providers/base.py973 # Check if subclass provides fallback endpointsCOMMENT
LOWtracecat/vcs/github/manifest.py52 # Check if we're using localhost (for development)COMMENT
LOWtracecat/workflow/management/management.py533 # Check if there are more itemsCOMMENT
LOWtracecat/workflow/management/router.py538 # Check if workflow exports are enabledCOMMENT
LOWtracecat/workflow/management/folders/service.py147 # Check if path already existsCOMMENT
LOWtracecat/workflow/management/folders/service.py302 # Check if new path already existsCOMMENT
LOW⚡tracecat/workflow/management/folders/service.py354 # Check if we're trying to make a folder its own descendantCOMMENT
LOW⚡tracecat/workflow/management/folders/service.py361 # Check if new parent is a descendant of the folder (would create a cycle)COMMENT
45 more matches not shown…
Modern Structural Boilerplate100 hits · 101 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_rbac_scopes.py44def _set_role_with_scopes(scopes: frozenset[str]) -> None:CODE
LOWtests/unit/test_workspace_creation_entitlements.py40async def _set_transaction_timeouts(session: AsyncSession) -> None:CODE
LOWtests/unit/test_agent_preset_service.py1358 async def update_instructions() -> None:CODE
LOWtests/unit/test_agent_preset_service.py1540 async def update_parent() -> None:CODE
LOWtests/unit/test_mcp_server.py3137 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.py74 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.py1748 async def update_secret(self, *, secret: SimpleNamespace) -> None:CODE
LOWtests/unit/test_ip_allowlist.py130def _set_client_ip(ip: str | None) -> 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.py207 def set_context(ctx: LegacyRegistryContext) -> None:CODE
LOWtracecat/config.py14logger = logging.getLogger(__name__)CODE
LOWtracecat/ssh.py29__all__ = [CODE
LOWtracecat/contexts.py26__all__ = [CODE
LOWtracecat/middleware/__init__.py4__all__ = [CODE
LOW⚡tracecat/settings/service.py326 async def update_git_settings(self, params: GitSettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py334 async def update_saml_settings(self, params: SAMLSettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py340 async def update_audit_settings(self, params: AuditSettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py347 async def update_security_settings(self, params: SecuritySettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py360 async def update_app_settings(self, params: AppSettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py366 async def update_agent_settings(self, params: AgentSettingsUpdate) -> None:CODE
LOW⚡tracecat/settings/service.py372 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.py2313 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.py167 def _set_secrets(self) -> None:CODE
LOWtracecat/secrets/service.py136 async def _update_secret(self, secret: BaseSecret, 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
LOW⚡tracecat/agent/service.py358 async def _set_org_setting_value(self, *, key: str, value: str) -> None:CODE
LOWtracecat/agent/litellm_compat.py21logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/skill/folders/service.py651 async def _update_descendant_paths(self, old_path: str, new_path: str) -> None:CODE
LOWtracecat/agent/backends/dispatch.py49 def update_rpc_metadata(self, metadata: Mapping[str, str | bytes]) -> None:CODE
LOWtracecat/agent/backends/dispatch.py53 def update_api_key(self, api_key: str | None) -> None:CODE
LOWtracecat/agent/catalog/loader.py13logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/mcp/stdio_probe.py48__all__ = [CODE
LOWtracecat/agent/mcp/proxy_server.py36__all__ = [CODE
LOWtracecat/agent/common/__init__.py52__all__ = [CODE
LOWtracecat/agent/folders/service.py656 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.py144 async def _set_in_progress_reaction(self) -> None:CODE
LOWtracecat/agent/channels/sinks/slack.py156 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
LOW⚡tracecat/mcp/server.py1664async def _update_template_file_artifact(artifact: TemplateFileArtifact) -> None:CODE
LOWtracecat/observability/otel.py52logger = logging.getLogger(__name__)CODE
LOW⚡tracecat/observability/otel.py396def set_current_span_attributes(attributes: _PlatformAttributes) -> None:CODE
40 more matches not shown…
Structural Annotation Overuse53 hits · 98 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
LOW⚡tests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOW⚡tests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOW⚡tests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOW⚡tests/integration/test_mcp_oidc_flow.py420 # Step 4: Verify id_token claimsCOMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md90### Step 1: Rule Anatomy and YARA-L 2.0 Syntax StandardsCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md142### Step 2: Syntax ValidationCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md151### Step 3: Historical Testing and Detection VerificationCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md161### Step 4: User Approval GateCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md169### Step 5: Rule DeploymentCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md176### Step 6: Enablement & Alerting ConfigurationCOMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md202### Step 1: Extract & Sanitize Threat IntelligenceCOMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md216### Step 2: Generate Threat Detection Opportunities (TDOs)COMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md222### Step 3: Generate Synthetic Events (For ALL TDOs)COMMENT
LOW⚡…l/library/skills/secops-detection-engineering/SKILL.md231### Step 4: Evaluate Rule Coverage (Long-Running Async Evaluation)COMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md253### Step 5: Fetch Matched Rule SummaryCOMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md266### Step 6: Gap Mitigation (Generate Rules for Verified Gaps)COMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md272### Step 7: Provide Structured Findings SummaryCOMMENT
LOW…l/library/skills/secops-detection-engineering/SKILL.md290### Step 8: User Approval and Rule CreationCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md18## Step 1: Read for observables, not conclusionsCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md50## Step 2: Choose the abstraction level deliberatelyCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md99## Step 3: Reality-check the telemetry before writingCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md117## Step 4: False positive engineeringCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md171## Step 5: Evasion reviewCOMMENT
LOW…ry/skills/create-sigma-rule/references/rule-quality.md208## Step 6: Overbreadth checkCOMMENT
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
AI Structural Patterns75 hits · 69 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_inbox_service.py30CODE
LOWtests/unit/test_aws_secrets_manager.py44CODE
LOWtracecat/concurrency.py122CODE
LOWtracecat/tables/service.py1522CODE
LOWtracecat/tables/service.py1560CODE
LOWtracecat/inbox/service.py41CODE
LOWtracecat/inbox/types.py56CODE
LOWtracecat/inbox/router.py42CODE
LOWtracecat/inbox/providers/agent_runs.py275CODE
LOWtracecat/workspace_sync/adapters/base.py626CODE
LOWtracecat/cases/service.py387CODE
LOWtracecat/cases/service.py532CODE
LOWtracecat/cases/service.py755CODE
LOWtracecat/cases/internal_router.py173CODE
LOWtracecat/cases/internal_router.py261CODE
LOWtracecat/cases/router.py254CODE
LOWtracecat/cases/router.py363CODE
LOWtracecat/cases/router.py538CODE
LOWtracecat/cases/rows/service.py185CODE
LOWtracecat/cases/rows/router.py39CODE
LOWtracecat/agent/tokens.py151CODE
LOWtracecat/agent/sandbox/config.py253CODE
LOWtracecat/agent/sandbox/nsjail.py134CODE
LOWtracecat/agent/channels/sinks/slack.py206CODE
LOWtracecat/agent/session/service.py842CODE
LOWtracecat/mcp/server.py6127CODE
LOWtracecat/mcp/server.py6357CODE
LOWtracecat/mcp/server.py8714CODE
LOWtracecat/mcp/server.py8813CODE
LOWtracecat/mcp/oidc/endpoints.py404CODE
LOWtracecat/mcp/oidc/endpoints.py527CODE
LOWtracecat/sandbox/service.py415CODE
LOWtracecat/sandbox/service.py521CODE
LOWtracecat/workflow/management/management.py1501CODE
LOWtracecat/workflow/executions/service.py420CODE
LOWtracecat/workflow/executions/common.py322CODE
LOWtracecat/workflow/executions/router.py388CODE
LOWtracecat/expressions/expectations.py144CODE
LOWtracecat/registry/sync/base_service.py288CODE
LOW…cecat-registry/tracecat_registry/_internal/registry.py11CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py29CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py203CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py248CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py323CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py647CODE
LOW…ages/tracecat-registry/tracecat_registry/core/email.py107CODE
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.py40CODE
LOW…ages/tracecat-registry/tracecat_registry/core/agent.py190CODE
LOW…ages/tracecat-registry/tracecat_registry/core/table.py264CODE
LOW…s/tracecat-registry/tracecat_registry/core/workflow.py38CODE
LOW…ecat-registry/tracecat_registry/integrations/tavily.py39CODE
LOW…t-registry/tracecat_registry/integrations/amazon_s3.py177CODE
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.py438CODE
LOW…kages/tracecat-registry/tracecat_registry/sdk/cases.py60CODE
15 more matches not shown…
AI Slop Vocabulary25 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUM…mporal/test_durable_agent_runtime_error_attribution.py35# Re-export the harness fixture under the name collected by this test module.COMMENT
MEDIUMtests/temporal/test_runtime_error_attribution.py36# Re-export the harness fixtures under the names collected by this test module.COMMENT
MEDIUMtests/unit/test_agent_sandbox_litellm.py784 # End the fake turn so the harness can clean up, then surfaceCOMMENT
MEDIUMtests/unit/test_agent_sandbox_litellm.py1297 # test only. This runs in-process AND inside the Dockerized harness,COMMENT
MEDIUMtests/unit/test_commit_conventions.py51# makes this harness *more* permissive than production and blind to exactly theCOMMENT
MEDIUM⚡tests/unit/test_action_environment_override.py493 # Create a comprehensive workflow with various environment scenariosCOMMENT
LOWtests/unit/test_tables_service.py2324 # Don't start a new transaction, just use the existing oneSTRING
MEDIUM⚡tests/unit/test_functions.py1809 # Definitely not the year 2000COMMENT
MEDIUMtracecat/tables/importer.py155 """Normalize CSV headers for robust matching across parsers."""STRING
MEDIUMtracecat/inbox/providers/agent_runs.py78# not appear here. Add a harness to this set to make its runs inbox-eligible.COMMENT
MEDIUMtracecat/inbox/providers/agent_runs.py192 # Root sessions only: runs of any inbox-eligible harness, plus legacyCOMMENT
MEDIUMtracecat/chat/schemas.py260 # Legacy harness rows are unsupported; a bad Claude row is corruption.COMMENT
MEDIUMtracecat/agent/exceptions.py28 # Build comprehensive error message with debug infoCOMMENT
MEDIUMtracecat/agent/runtime/claude_code/runtime.py252 # Session wakeups and agent discovery need an interactive harness.COMMENT
MEDIUMtracecat/agent/session/service.py2219 # target a harness binding it does not own.COMMENT
MEDIUMtracecat/storage/validation.py88 # Normalize extensions: trim whitespace and lowercase for robust comparisonCOMMENT
LOWtracecat/registry/actions/service.py1724 # If this action is already in the repo, we can just use itCOMMENT
MEDIUMtracecat/db/models.py3294 # Stable dispatcher identity, independent of the execution harness.COMMENT
MEDIUMtracecat/db/models.py3298 # Agent harness fieldsCOMMENT
LOWtracecat/executor/service.py860 # ExecutionError already has proper error info, just add loop context if neededCOMMENT
LOWtracecat/webhooks/router.py458 # 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
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
LOW⚡tests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOW⚡tests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOW⚡tests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOW⚡tests/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
Over-Commented Block47 hits · 46 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-compose.sandbox.yml1# Optional local sandbox privileges for nsjail and SquashFS registry mounts.COMMENT
LOWdocker/sandbox/build.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/next-env.d.ts1/// <reference types="next" />COMMENT
LOWfrontend/src/components/tables/table-rows-grid.tsx261 cellPanel,COMMENT
LOWfrontend/src/components/chat/chat-session-pane.tsx941 // record before it instead, and reloaded history splits one turn intoCOMMENT
LOWfrontend/src/components/chat/chat-session-pane.tsx1101 // Enter does not empty the box until the awaits here resolve, so the userCOMMENT
LOW…de/mermaid-code-block-node/mermaid-code-block-node.tsx321}COMMENT
LOWfrontend/src/lib/workspace.ts1// Workspace role utilities are now handled via RBAC roles.COMMENT
LOWtests/temporal/test_agent_config_workflow_boundary.py161COMMENT
LOWtests/temporal/test_error_handling.py41COMMENT
LOWtests/temporal/test_error_handling.py61 # ),COMMENT
LOW…kills/create-sigma-rule/assets/sigma-rule-template.yml1# Structural skeleton only. Replace every value, generate a fresh UUIDv4 for `id`, andCOMMENT
LOW…kills/create-sigma-rule/assets/sigma-rule-template.yml41 # - detection.threat-hunting # add when the rule is deliberately broadCOMMENT
LOW…kills/create-sigma-rule/assets/sigma-rule-template.yml61 selection_anchor:COMMENT
LOWtracecat/agent/session/service.py3141 # writes parallel tool calls as one assistant JSONL row per tool_useCOMMENT
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/release-drafter.yml1# Release Drafter configuration.COMMENT
LOW.github/release-drafter.yml41# 4-16 product areas, so a reader can find the part of Tracecat they use.COMMENT
LOW.github/release-drafter.yml361 # Example: feat(tables): add unique indexesCOMMENT
LOW.github/release-drafter.yml381 # instead: going forward the vendor goes in the description, not the scope.COMMENT
LOW.github/release-drafter.yml401 # from. Fixing the prefix first makes all three behave.COMMENT
LOW.github/release-drafter.yml421 # `!` is dropped with it: the autolabeler files these under `chore`, so aCOMMENT
LOW.github/release-drafter.yml501 # Retired type spellings. `[legacy_types]` in commit-conventions.toml alreadyCOMMENT
LOW.github/release-drafter.yml521 # components before the alias, complete components after it, and the closingCOMMENT
LOW.github/release-drafter.yml581 #COMMENT
LOW.github/release-drafter.yml601 # `refactor(deps)` have never been written here, and the un-normalised lineCOMMENT
LOW.github/release-drafter.yml621 # one.COMMENT
LOW.github/commit-conventions.toml1# Commit and pull-request title conventions.COMMENT
LOW.github/commit-conventions.toml21# already-merged PRs still categorize correctly in release notes. When the twoCOMMENT
LOW.github/commit-conventions.toml241# assumes the opposite.COMMENT
LOW.github/commit-conventions.toml261# candidates, so a note can name a replacement that is not itself a scope.COMMENT
LOW.github/commit-conventions.toml301# Applied when the title carries `!` before the colon.COMMENT
LOW.github/workflows/release-drafter.yml61 printf '%s\n' "${subjects}" | while IFS= read -r subject; doCOMMENT
LOW.github/workflows/release-drafter.yml121 # backfill finishes late can therefore reach the group after a newer runCOMMENT
LOW.github/workflows/run-integration-tests.yml121 - name: Verify git over SSHCOMMENT
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
Modern AI Meta-Vocabulary13 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_mcp_server.py3783 # The publish orchestration lives in WorkflowsManagementService.publish_workflow;COMMENT
MEDIUMtests/unit/api/test_api_workflows.py267 # The build/validate/lock/commit orchestration lives inCOMMENT
MEDIUMtests/integration/test_embedding_configuration.py714 # Refresh removes the embedding model but leaves chat usable.COMMENT
MEDIUM…/library/skills/security-audit/CLOUD-AND-DEPLOYMENT.md41## Container and orchestration attack classes (subagent_type: `general`)COMMENT
MEDIUMtracecat/executor/service.py849 # This handles both template orchestration and UDF executionCOMMENT
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json893 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json893 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1974 "docs": "https://docs.snyk.io/integrations/snyk-studio-agentic-integrations",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2029 "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.json2030 "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.json2370 "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.json2411 "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.json2522 "notes": "The official first-party SharePoint MCP server is the \"Work IQ SharePoint\" server in Microsoft AgeCODE
Dead Code15 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/temporal/durable_agent_failure_harness.py212CODE
MEDIUMtests/unit/test_agent_runtime.py176CODE
MEDIUMtests/unit/test_agent_runtime.py4089CODE
MEDIUMtests/unit/test_agent_runtime.py831CODE
MEDIUMtests/unit/test_agent_runtime.py871CODE
MEDIUMtests/unit/test_agent_runtime.py1976CODE
MEDIUMtests/unit/test_agent_llm_proxy.py74CODE
MEDIUMtests/unit/test_agent_llm_proxy.py822CODE
MEDIUMtests/unit/test_concurrency.py426CODE
MEDIUMtests/unit/test_agent_otel_relay.py60CODE
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.py427CODE
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
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtracecat/integrations/service.py1137 # 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.py184 def test_function(num: int) -> int:STRING
LOW⚡tests/registry/test_core_python.py90def helper():CODE
LOW⚡tests/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.py760 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.json745 "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