Next-generation AI Agent Optimization Platform: Cozeloop addresses challenges in AI agent development by providing full-lifecycle management capabilities from development, debugging, and evaluation to monitoring.
This report summarizes scanner evidence for coze-dev/coze-loop, a Go project with 5,798 GitHub stars. SynthScan examined 1,770,585 lines of code across 5044 source files, recording 422 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 0.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 363 finding(s).
Are imports declared and package/API names verified? 55 finding(s).
Are wrappers, guards, and repeated structures necessary? 102 finding(s).
Which changes need focused human review? 422 finding(s).
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.
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.
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.
The scanner identified 422 distinct pattern matches across 15 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/infra/idl/idl-parser/__tests__/demo.unify.ts | 141 | // FooSub.NumFoo k2 = 2; | COMMENT |
| LOW | frontend/infra/idl/idl-parser/__tests__/demo.unify.ts | 181 | // syntax = "proto3"; | COMMENT |
| LOW | frontend/config/eslint-config/rules/ts-standard.js | 341 | '@typescript-eslint/prefer-string-starts-ends-with': 0, | COMMENT |
| LOW | frontend/config/eslint-config/rules/ts-standard.js | 361 | // vars: 'all', | COMMENT |
| LOW | …ontend/packages/loop-modules/evaluate/src/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …loop-modules/evaluate/src/utils/experiment/constant.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …aluate/src/pages/evaluator/evaluator-template/index.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …odules/evaluate/src/pages/experiment/contrast/utils.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …ules/evaluate/src/pages/experiment/contrast/service.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …nt/contrast/components/contrast-table/table-header.tsx | 141 | newColumns.push( | COMMENT |
| LOW | …riment/contrast/components/experiment-result/index.tsx | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …periment/contrast/components/contrast-header/index.tsx | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …/contrast/components/add-contrast-experiment/index.tsx | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …nts/src/prompt-editor/widgets/modal-variable/index.tsx | 41 | COMMENT | |
| LOW | …s/loop-components/evaluate-components/src/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …onents/src/components/dataset-list/use-filter-store.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …tem/multipart/components/text-item-readonly-render.tsx | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …ponents/prompt-editor/widgets/modal-variable/index.tsx | 41 | regexp: regex, | COMMENT |
| LOW | …vation-components/src/features/trace-data/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …race-data/span-definition/query-span/index.module.less | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …race-data/span-definition/user-input/index.module.less | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …loop-components/observation-adapter/src/hooks/index.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …tag-components/src/hooks/use-fetch-trace-annotation.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | frontend/packages/loop-base/bot-env/src/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | frontend/packages/loop-base/bot-flags/src/global.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | frontend/packages/loop-base/logger/src/global.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …/loop-base/components/src/logic-editor/logic-types.tsx | 261 | // setter: StringSetter, | COMMENT |
| LOW | …src/semi-schema-form/components/tmpls/object-field.tsx | 41 | formData, | COMMENT |
| LOW | …/src/semi-schema-form/components/tmpls/array-field.tsx | 41 | // required, | COMMENT |
| LOW | …packages/loop-base/bot-md-box-adapter/src/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | frontend/packages/loop-base/guard/src/typings.d.ts | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | frontend/packages/loop-base/i18n/src/locale-types.ts | 721 | COMMENT | |
| LOW | …se/deployment/helm-chart/umbrella/conf/evaluation.yaml | 1 | # 评测记录大对象存储配置:200KB 以下 RDS,200KB 以上 S3 | COMMENT |
| LOW | release/deployment/docker-compose/conf/evaluation.yaml | 1 | # 评测记录大对象存储配置:200KB 以下 RDS,200KB 以上 S3 | COMMENT |
| LOW | …/api/handler/coze/loop/apis/experiment_service_test.go | 141 | description: "测试UpdateExperimentTemplateMeta有效请求", | COMMENT |
| LOW | …/api/handler/coze/loop/apis/experiment_service_test.go | 161 | // requestBody: `{invalid json}`, | COMMENT |
| LOW | …/api/handler/coze/loop/apis/experiment_service_test.go | 181 | // { | COMMENT |
| LOW | …/api/handler/coze/loop/apis/experiment_service_test.go | 201 | // description: "测试GetExptInsightAnalysisRecord有效请求", | COMMENT |
| LOW | …/api/handler/coze/loop/apis/experiment_service_test.go | 221 | // requestBody: `{}`, | COMMENT |
| LOW | …ility/domain/trace/entity/collector/confmap/confmap.go | 21 | // will be used to monitor for updates of the retrieved value. | COMMENT |
| LOW | …ility/domain/trace/entity/collector/confmap/confmap.go | 161 | COMMENT | |
| LOW | backend/modules/prompt/infra/repo/manage_test.go | 1821 | wantErr: nil, | COMMENT |
| LOW | backend/modules/prompt/infra/repo/manage_test.go | 1841 | // }, nil) | COMMENT |
| LOW | backend/modules/prompt/infra/repo/manage_test.go | 1861 | // args: args{ | COMMENT |
| LOW | backend/modules/prompt/application/execute_test.go | 181 | // manageRepo: mockManageRepo, | COMMENT |
| LOW | …s/evaluation/infra/metrics/sandbox_agent/classifier.go | 1 | // Copyright (c) 2025 coze-dev Authors | COMMENT |
| LOW | …ra/repo/experiment/mysql/expt_turn_result_page_test.go | 101 | WillReturnRows(sqlmock.NewRows([]string{"id"})) | COMMENT |
| LOW | …tion/infra/repo/experiment/mysql/expt_item_dispatch.go | 181 | COMMENT | |
| LOW | …modules/evaluation/application/standard_eval_output.go | 781 | return payload.EvalSet.ItemKey | COMMENT |
| LOW | …modules/evaluation/application/standard_eval_output.go | 961 | return map[string]any{"detail": map[string]any{"output": stripStandardEvalOutputSelfFields(detailOutput)}} | COMMENT |
| LOW | …/modules/evaluation/application/experiment_app_test.go | 4561 | // TagValueName: ptr.Of("name"), | COMMENT |
| LOW | …valuation/application/standard_eval_output_filediff.go | 21 | "github.com/coze-dev/coze-loop/backend/pkg/logs" | COMMENT |
| LOW | …valuation/application/standard_eval_output_filediff.go | 301 | } | COMMENT |
| LOW | …end/modules/evaluation/application/eval_openapi_app.go | 1321 | // —— 调试态压根走不到它的销毁。 | COMMENT |
| LOW | …end/modules/evaluation/application/eval_openapi_app.go | 1381 | // entity.SandboxAgentExtKeyExtraExecuteID (裸字符串, 仅"额外"那个; 主 execution = invokeID) | COMMENT |
| LOW | …ckend/modules/evaluation/application/experiment_app.go | 181 | // OpenAPI 面在 convertor 入口就拒非法值 (OpenAPIRunModeConfigDTO2Domain 报 | COMMENT |
| LOW | …ckend/modules/evaluation/application/experiment_app.go | 261 | Experiment: experiment.ToExptDTO(createExpt), | COMMENT |
| LOW | …ckend/modules/evaluation/application/experiment_app.go | 1561 | ItemConcurNum: itemConcurNum, | COMMENT |
| LOW | …ckend/modules/evaluation/application/experiment_app.go | 1581 | // 报错文案 "cannot change tenant of active task")。 | COMMENT |
| LOW | …ckend/modules/evaluation/application/experiment_app.go | 1961 | // | COMMENT |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 859 | print( | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 864 | print(f"prompt llm_config: {llm_config.model_dump_json(exclude_none=True)}") | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 876 | print( | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1031 | print(f"Message: {result.message}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1033 | print(f"FinishReason: {result.finish_reason}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1035 | print(f"Usage: {result.usage}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1040 | print("=== Sync Stream Example ===") | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 1058 | print("\nStream finished.") | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 1063 | print("=== Async Stream Example ===") | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 1081 | print("\nStream finished.") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1237 | print(f"Message: {result.message}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1239 | print(f"FinishReason: {result.finish_reason}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1241 | print(f"Usage: {result.usage}") | CODE |
| HIGH⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1246 | print("=== Sync Non-Stream Example ===") | CODE |
| HIGH | frontend/packages/loop-base/i18n/src/locale-types.ts | 1272 | print("=== Async Non-Stream Example ===") | CODE |
| HIGH | …t/charts/python-faas/bootstrap/pyodide_pool_manager.ts | 413 | print(ret_val) | CODE |
| HIGH | …-compose/bootstrap/python-faas/pyodide_pool_manager.ts | 233 | print(ret_val) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/infra/idl/idl2ts-helper/src/helper.ts | 38 | export function createIdWithTypeAnnotation(exp: string) { | CODE |
| LOW | frontend/infra/idl/idl2ts-helper/src/helper.ts | 253 | export function getParseResultFromNamespace( | CODE |
| LOW | frontend/infra/idl/idl2ts-helper/src/helper.ts | 314 | export function getTypeFromDynamicJsonAnnotation( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/proto.ts | 75 | function extractExtensionConfigFromOption( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/proto.ts | 163 | function getServiceExtensionConfig( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 69 | function extractExtensionConfigFromAnnotation( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 155 | function getServiceExtensionConfig( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 289 | function createAddNamespaceReferValue( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 336 | function getAddNamespaceReferValue( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 442 | function addNamespaceValueToConstValue(constValue: ConstValue) { | CODE |
| LOW | frontend/infra/idl/idl-parser/src/unify/thrift.ts | 528 | function convertFunctionDefinition( | CODE |
| LOW | frontend/infra/idl/idl-parser/src/thrift/index.ts | 29 | function extractExtensionConfigFromAnnotation(annotation: Annotation) { | CODE |
| LOW | frontend/infra/idl/idl-parser/src/thrift/index.ts | 90 | function convertFunctionAnnotations(func: FunctionDefinition) { | CODE |
| LOW | frontend/infra/idl/idl-parser/src/thrift/index.ts | 112 | function convertServiceAnnotations(service: ServiceDefinition) { | CODE |
| LOW⚡ | …tend/infra/idl/idl-parser/src/common/extension_util.ts | 168 | export function filterFieldExtensionConfig(config: ExtensionConfig) { | CODE |
| LOW⚡ | …tend/infra/idl/idl-parser/src/common/extension_util.ts | 175 | export function filterFunctionExtensionConfig(config: ExtensionConfig) { | CODE |
| LOW⚡ | …tend/infra/idl/idl-parser/src/common/extension_util.ts | 182 | export function filterServiceExtensionConfig(config: ExtensionConfig) { | CODE |
| LOW | …ator/src/plugin/auto-fix-duplicate-namespace-plugin.ts | 221 | function renameNamespaceInStatements( | CODE |
| LOW | …ator/src/plugin/auto-fix-duplicate-namespace-plugin.ts | 255 | function renameNamespaceInNestedDefs( | CODE |
| LOW | frontend/config/tailwind-config/src/design-token.ts | 3 | export function designTokenToTailwindConfig( | CODE |
| LOW | frontend/config/tailwind-config/src/coze.js | 17 | function generateSemanticVariables(semantics, theme, property) { | CODE |
| LOW | …p-modules/evaluate/src/utils/experiment-local-cache.ts | 20 | export function getExperimentDetailLocalCache(experimentID: Int64) { | CODE |
| LOW | …p-modules/evaluate/src/utils/experiment-local-cache.ts | 29 | export function setExperimentDetailLocalCache( | CODE |
| LOW | …ponents/experiment/experiment-info-edit-form-modal.tsx | 23 | export default function ExperimentInfoEditFormModal({ | CODE |
| LOW | …nt/experiment-export/use-experiment-export-columns.tsx | 93 | export function getExportExperimentColumns() { | CODE |
| LOW | …nt/experiment-export/use-experiment-export-columns.tsx | 168 | export function useExportExperimentListColumns({ | CODE |
| LOW | …s/experiment/previews/evaluator-run-status-preview.tsx | 17 | export default function EvaluatorRunStatusPreview({ | CODE |
| LOW | …periment/previews/experiment-group-item-run-status.tsx | 16 | export function ExperimentGroupItemRunStatus({ | CODE |
| LOW | …valuate/src/components/experiment/selectors/requery.ts | 28 | export async function listSourceEvalTargetVersion( | CODE |
| LOW | …valuate/src/components/experiment/selectors/requery.ts | 122 | export async function listEvaluationSetVersions( | CODE |
| LOW | …/selectors/experiment-group-item-run-status-select.tsx | 28 | export function ExprGroupItemRunStatusSelect({ | CODE |
| LOW | …riment/selectors/experiment-item-run-status-select.tsx | 28 | export default function ExperimentItemRunStatusSelect({ | CODE |
| LOW | …get-version-select/eval-target-cascade-tree-select.tsx | 16 | export default function EvalTargetCascadeTreeSelect({ | CODE |
| LOW | …et-version-select/coze-bot-eval-target-tree-select.tsx | 23 | export default function CozeBotEvalTargetTreeSelect({ | CODE |
| LOW | …rget-version-select/prompt-eval-target-tree-select.tsx | 22 | export default function PromptEvalTargetTreeSelect({ | CODE |
| LOW | …ges/loop-modules/evaluate/src/hooks/use-experiment.tsx | 16 | export function ExperimentContextProvider({ | CODE |
| LOW | …odules/evaluate/src/hooks/evaluate-config-community.ts | 9 | export function useEvaluateConfigCommunityInit() { | CODE |
| LOW | …ckages/loop-modules/evaluate/src/request/experiment.ts | 41 | export async function batchGetExperimentAggrResult( | CODE |
| LOW⚡ | …ckages/loop-modules/evaluate/src/request/experiment.ts | 54 | export async function listExptInsightAnalysisRecord( | CODE |
| LOW⚡ | …ckages/loop-modules/evaluate/src/request/experiment.ts | 61 | export async function insightAnalysisExperiment( | CODE |
| LOW⚡ | …ckages/loop-modules/evaluate/src/request/experiment.ts | 68 | export async function getExptInsightAnalysisRecord( | CODE |
| LOW | …es/loop-modules/evaluate/src/request/evaluation-set.ts | 27 | export async function listEvaluationSetVersions( | CODE |
| LOW | …aluator-template/evaluator-template-detail-preview.tsx | 13 | export function EvaluatorTemplateDetailPreview({ | CODE |
| LOW | …r/evaluator-template/evaluator-template-list-panel.tsx | 25 | export function EvaluatorTemplateListPanel({ | CODE |
| LOW | …/evaluator-template/evaluator-template-name-search.tsx | 6 | export function EvaluatorTemplateNameSearchInput(props: SearchProps) { | CODE |
| LOW | …tor-template-detail/evaluator-template-code-detail.tsx | 33 | export function EvaluatorTemplateCodeDetail( | CODE |
| LOW | …pages/evaluator/evaluator-detail/version-list-pane.tsx | 16 | function evaluatorVersionToVersion( | CODE |
| LOW | …iment-detail-table/trace-target-trace-detail-panel.tsx | 16 | export function TraceTargetTraceDetailPanel({ | CODE |
| LOW | …nt/detail/components/experiment-detail-table/utils.tsx | 207 | export function getExprDetailDatasetColumns( | CODE |
| LOW | …components/experiment-chart/evaluators-score-chart.tsx | 85 | function getEvaluatorAggregateResultMap( | CODE |
| LOW | …pages/experiment/contrast/utils/logic-filter-tools.tsx | 14 | export function getExperimentContrastLogicFields( | CODE |
| LOW | …/evaluate/src/pages/experiment/contrast/utils/tools.ts | 28 | export function experimentContrastToRecordItems(data: ItemResult[]) { | CODE |
| LOW | …xperiment/contrast/components/contrast-table/index.tsx | 43 | function experimentResultToRecordItems(res: BatchGetExperimentResultResponse) { | CODE |
| LOW | …eriment/contrast/components/contrast-table/columns.tsx | 60 | export function getExperimentContrastColumns( | CODE |
| LOW | …nt/contrast/components/contrast-table/table-header.tsx | 26 | export default function ExperimentContrastTableHeader({ | CODE |
| LOW | …s/experiment/contrast/components/item-detail/index.tsx | 18 | export default function ExperimentContrastItemDetail({ | CODE |
| LOW | …/components/item-detail/contrast-item-detail-table.tsx | 29 | function ExperimentDetailColumnHeader({ | CODE |
| LOW | …/components/item-detail/contrast-item-detail-table.tsx | 53 | function getExperimentContrastDetailColumns({ | CODE |
| LOW | …src/pages/experiment/create/code-evaluator-content.tsx | 23 | function transformVersionDetailToCodeEvaluator( | CODE |
| LOW | …-modules/evaluate/src/pages/experiment/create/tools.ts | 142 | export function experimentToCreateExperimentValues(params: { | CODE |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 47 | # Step 1: Execute CREATE TABLE statements (excluding stored procedures and alter files) | COMMENT |
| LOW | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 61 | # Step 2: Execute compatibility functions | COMMENT |
| LOW⚡ | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 72 | # Step 3: Execute ALTER TABLE statements | COMMENT |
| LOW | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 48 | # Step 1: Execute CREATE TABLE statements (excluding compatibility and alter files) | COMMENT |
| LOW | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 62 | # Step 2: Execute compatibility functions | COMMENT |
| LOW⚡ | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 73 | # Step 3: Execute ALTER TABLE statements | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 816 | // Step 1: Get tenants (shared across all items) | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 822 | // Step 2: Batch get all pre span IDs from redis | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 828 | // Step 3: Collect all unique span IDs to query | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 830 | // Step 4: Batch query all spans from ClickHouse | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 836 | // Step 5: Apply span processors once for all spans | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 841 | // Step 6: Build span map for quick lookup | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 851 | // Step 7: Process each item individually (auth check, ordering) | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 428 | // Step 2: update task | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 566 | // Step 1: create evaluation dataset | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 581 | // Step 2: create experiment | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 630 | // Step 5: create task run | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 806 | // Step 1: 通过 ITaskRPCAdapter 查询当前空间下所有的 task | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 841 | // Step 2: 将 task 转换为 ExptTemplate(使用 task.Rule.SpanFilters,Scheduler 从 task 取,Task 无 Scheduler 则为 nil) | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 870 | // Step 3: 查询当前空间下所有在线 ExptTemplate(expt_type=Online) | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 908 | // Step 4: 填充 DB 模板的关联数据(EvalSet、Target、Evaluators) | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 925 | // Step 5: 对 DB 模板(非 task 来源)从 Pipeline 填充 ExptSource.SpanFilterFields 和 Scheduler | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 931 | // Step 6: 合并 task 转换的模板 + DB 模板 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 936 | // Step 7: 内存筛选 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 939 | // Step 8: 内存排序 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 942 | // Step 9: 内存分页 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 47 | # Step 1: Execute CREATE TABLE statements (excluding stored procedures and alter files) | COMMENT |
| LOW | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 61 | # Step 2: Execute compatibility functions | COMMENT |
| LOW⚡ | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 72 | # Step 3: Execute ALTER TABLE statements | COMMENT |
| LOW | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 48 | # Step 1: Execute CREATE TABLE statements (excluding compatibility and alter files) | COMMENT |
| LOW | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 62 | # Step 2: Execute compatibility functions | COMMENT |
| LOW⚡ | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 73 | # Step 3: Execute ALTER TABLE statements | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 816 | // Step 1: Get tenants (shared across all items) | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 822 | // Step 2: Batch get all pre span IDs from redis | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 828 | // Step 3: Collect all unique span IDs to query | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 830 | // Step 4: Batch query all spans from ClickHouse | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 836 | // Step 5: Apply span processors once for all spans | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 841 | // Step 6: Build span map for quick lookup | COMMENT |
| LOW⚡ | …es/observability/domain/trace/service/trace_service.go | 851 | // Step 7: Process each item individually (auth check, ordering) | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 428 | // Step 2: update task | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 566 | // Step 1: create evaluation dataset | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 581 | // Step 2: create experiment | COMMENT |
| LOW | …domain/task/service/taskexe/processor/auto_evaluate.go | 630 | // Step 5: create task run | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 806 | // Step 1: 通过 ITaskRPCAdapter 查询当前空间下所有的 task | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 841 | // Step 2: 将 task 转换为 ExptTemplate(使用 task.Rule.SpanFilters,Scheduler 从 task 取,Task 无 Scheduler 则为 nil) | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 870 | // Step 3: 查询当前空间下所有在线 ExptTemplate(expt_type=Online) | COMMENT |
| LOW | …odules/evaluation/domain/service/expt_template_impl.go | 908 | // Step 4: 填充 DB 模板的关联数据(EvalSet、Target、Evaluators) | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 925 | // Step 5: 对 DB 模板(非 task 来源)从 Pipeline 填充 ExptSource.SpanFilterFields 和 Scheduler | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 931 | // Step 6: 合并 task 转换的模板 + DB 模板 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 936 | // Step 7: 内存筛选 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 939 | // Step 8: 内存排序 | COMMENT |
| LOW⚡ | …odules/evaluation/domain/service/expt_template_impl.go | 942 | // Step 9: 内存分页 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 86 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 109 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 162 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 181 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 203 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 222 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 241 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 260 | APIKey: "your-api-key", | CODE |
| HIGH | …/modules/llm/domain/service/llmfactory/factory_test.go | 279 | APIKey: "your-api-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …te-components/src/components/column-item-map/index.tsx | 25 | Placeholder = 'placeholder', | CODE |
| LOW | …ponents/prompt-editor/widgets/skill/template-parser.ts | 351 | // 提取模板中内容{#InputSlot placeholder="placeholder"#}123{#/InputSlot#}xxx,嵌套模板下内部所有的content | COMMENT |
| LOW | …op-base/api-schema/src/api/idl/prompt/domain/prompt.ts | 183 | Placeholder = "placeholder", | CODE |
| LOW | …op-base/api-schema/src/api/idl/prompt/domain/prompt.ts | 249 | Placeholder = "placeholder", | CODE |
| LOW | backend/infra/middleware/session/session_mw_test.go | 24 | return &User{ID: "123", Name: "John Doe", Email: "john.doe@example.com", AppID: 1}, nil | CODE |
| LOW | backend/infra/middleware/session/session_mw_test.go | 26 | wantUser: &User{ID: "123", Name: "John Doe", Email: "john.doe@example.com", AppID: 1}, | CODE |
| LOW | backend/infra/middleware/session/session_mw_test.go | 49 | user := &User{ID: "123", Name: "John Doe", Email: "john.doe@example.com", AppID: 1} | CODE |
| LOW | backend/modules/foundation/application/user_test.go | 239 | config.AllowedEmails = "admin@example.com" | CODE |
| LOW | backend/modules/foundation/application/user_test.go | 451 | config.AllowedEmails = "admin@example.com" | CODE |
| LOW | …d/modules/prompt/application/convertor/openapi_test.go | 2154 | CreatedBy: "user@example.com", | CODE |
| LOW | …d/modules/prompt/application/convertor/openapi_test.go | 2167 | CreatedBy: ptr.Of("user@example.com"), | CODE |
| LOW | backend/modules/prompt/domain/entity/prompt_detail.go | 76 | RolePlaceholder Role = "placeholder" | CODE |
| LOW | backend/modules/prompt/domain/entity/prompt_detail.go | 124 | VariableTypePlaceholder VariableType = "placeholder" | CODE |
| LOW | …n/application/convertor/evaluation_set/openapi_test.go | 602 | email := "user@example.com" | CODE |
| LOW | …evaluation/application/convertor/common/common_test.go | 1018 | Name: gptr.Of("John Doe"), | CODE |
| LOW | …evaluation/application/convertor/common/common_test.go | 1028 | Name: gptr.Of("John Doe"), | CODE |
| LOW | …evaluation/application/convertor/common/common_test.go | 1074 | Name: gptr.Of("John Doe"), | CODE |
| LOW | …evaluation/application/convertor/common/common_test.go | 1084 | Name: gptr.Of("John Doe"), | CODE |
| LOW | …kend/modules/evaluation/domain/component/rpc/prompt.go | 87 | VariableTypePlaceholder = "placeholder" | CODE |
| LOW | …aluation/domain/service/expt_item_filter_match_test.go | 193 | _ = errors.New("placeholder") | CODE |
| LOW | …kend/modules/data/domain/dataset/entity/schema_test.go | 680 | data: &FieldData{Content: `{"first_name": "John", "last_name": "Doe", "birthday": "1990-01-01", "address": {"stree | CODE |
| LOW | …kend/modules/data/domain/dataset/entity/schema_test.go | 686 | data: &FieldData{Content: `{"first_name": "John", "last_name": "Doe", "birthday": "bad date", "address": {"street_ | CODE |
| LOW | …modules/data/domain/dataset/service/item_utils_test.go | 48 | Content: "John Doe", | CODE |
| LOW | …modules/data/domain/dataset/service/item_utils_test.go | 82 | Content: "John Doe", | CODE |
| LOW | …x_gen/coze/loop/prompt/domain_openapi/prompt/prompt.go | 60 | VariableTypePlaceholder = "placeholder" | CODE |
| LOW | …x_gen/coze/loop/prompt/domain_openapi/prompt/prompt.go | 72 | RolePlaceholder = "placeholder" | CODE |
| LOW | …end/kitex_gen/coze/loop/prompt/domain/prompt/prompt.go | 64 | RolePlaceholder = "placeholder" | CODE |
| LOW | …end/kitex_gen/coze/loop/prompt/domain/prompt/prompt.go | 94 | VariableTypePlaceholder = "placeholder" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kages/loop-base/loop-lng/src/locales/prompt/zh-CN.json | 28 | "prompt_use_python_configuration": "if __name__ == '__main__':\n # 1.Create a prompt on the platform\n # You can | CODE |
| LOW | …kages/loop-base/loop-lng/src/locales/prompt/en-US.json | 28 | "prompt_use_python_configuration": "if __name__ == '__main__':\n # 1.Create a prompt on the platform\n # You can | CODE |
| LOW | frontend/packages/loop-base/i18n/src/locale-types.ts | 845 | # Set whether to report a trace span when get or format prompt. | COMMENT |
| LOW | …ckages/loop-base/api-schema/scripts/download-thrift.sh | 16 | # Check if current repository is coze-dev/coze-loop | COMMENT |
| LOW | …ckages/loop-base/api-schema/scripts/download-thrift.sh | 131 | # Check if we are in the coze-loop repository and execute accordingly | COMMENT |
| LOW⚡ | …lm-chart/charts/app/bootstrap/init/mysql/entrypoint.sh | 78 | # Read file content and clean it up for MySQL execution | COMMENT |
| LOW⚡ | …ment/docker-compose/bootstrap/mysql-init/entrypoint.sh | 80 | # Read file content and clean it up for MySQL execution | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …pplication/convertor/evaluator/evaluator_agent_test.go | 66 | assert.Equal(t, "score", got.AgentEvaluatorVersion.PromptConfig.OutputRules.ScorePrompt.Content.GetText()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …kages/loop-base/loop-lng/src/locales/prompt/zh-CN.json | 34 | "prompt_use_python_simultaneous_call": "import asyncio\nimport os\n\nfrom anyio import sleep\n\nfrom cozeloop import n | CODE |
| MEDIUM | …kages/loop-base/loop-lng/src/locales/prompt/en-US.json | 34 | "prompt_use_python_simultaneous_call": "import asyncio\nimport os\n\nfrom anyio import sleep\n\nfrom cozeloop import n | CODE |
| MEDIUM⚡ | frontend/packages/loop-base/i18n/src/locale-types.ts | 1249 | # Create a Prompt on the platform's Prompt development page (set Prompt Key to 'ptaas_demo'), | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …luation/domain/service/expt_run_item_turn_impl_test.go | 1239 | // Note: RemoveFirstJSONPathLevel implementation might be robust, but let's try invalid path | COMMENT |
| MEDIUM | …/evaluation/domain/service/evaluation_set_impl_test.go | 291 | // For more robust error comparison, especially with custom error types or wrapped errors, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ges/loop-base/loop-lng/src/locales/evaluate/en-US.json | 329 | "generated_by_ai_tip": "The content is generated by AI. Its authenticity and accuracy cannot be guaranteed and it is f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …se/deployment/helm-chart/umbrella/conf/evaluation.yaml | 1328 | - Polite phrases like "hope this helps" or "let me know if you need more information". | CODE |
| MEDIUM | release/deployment/docker-compose/conf/evaluation.yaml | 1328 | - Polite phrases like "hope this helps" or "let me know if you need more information". | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | backend/script/errorx/code_gen.py | 162 | print(f"Error in metadata.yaml: {e}") | STRING |
| MEDIUM | backend/script/errorx/code_gen.py | 175 | print("Error: cozeloop app not found in metadata") | STRING |
| MEDIUM | backend/script/errorx/code_gen.py | 193 | print(f"Error: Business domain '{args.biz}' not found in metadata") | STRING |
| LOW | …dules/evaluation/pkg/conf/templates/python_template.go | 55 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/script/errorx/code_gen.py | 26 | CODE |