Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
This report summarizes scanner evidence for NandhaKishorM/laya, a Python project with 34,786 GitHub stars. SynthScan examined 1,156,066 lines of code across 2161 source files, recording 2992 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 4.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
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? 1924 finding(s).
Are imports declared and package/API names verified? 399 finding(s).
Are wrappers, guards, and repeated structures necessary? 1936 finding(s).
Which changes need focused human review? 2992 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 2992 distinct pattern matches across 21 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 | research/benchmarks/feishu_zh/tests/test_audit.py | 13 | def test_archived_source_bytes(self): | CODE |
| LOW | research/benchmarks/feishu_zh/tests/test_audit.py | 35 | def test_reject_corrupted_records(self): | CODE |
| LOW | research/benchmarks/feishu_zh/tests/test_audit.py | 49 | def test_failed_request_stays_in_denominator(self): | CODE |
| LOW | research/benchmarks/feishu_zh/tests/test_audit.py | 60 | def test_balanced_frozen_cases(self): | CODE |
| LOW | research/benchmarks/feishu_zh/tests/test_audit.py | 65 | def test_perfect_and_failed_classification(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 29 | def test_answering_keep_talking_by_mistake_is_not_a_wrong_action(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 34 | def test_acting_when_it_should_not_is_a_wrong_action(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 39 | def test_the_gate_only_lets_actions_through(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 49 | def test_borderline_cases_stay_out_of_the_headline(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 59 | def test_every_rung_asks_the_same_question_with_the_same_options(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 66 | def test_every_case_has_a_label_of_its_menu(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 75 | def test_no_training_destination_is_a_test_destination(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 83 | def test_a_test_sentence_with_one_word_changed_is_refused(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 91 | def test_a_case_always_offers_its_own_answer(self): | CODE |
| LOW | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 107 | def test_the_committed_training_set_holds_no_test_sentence(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 144 | def test_the_untouched_archive_passes(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 147 | def test_a_better_accuracy_than_the_records_give_is_caught(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 152 | def test_a_flipped_decision_is_caught(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 158 | def test_a_rewritten_gold_is_caught(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 166 | def test_a_dropped_case_is_caught(self): | CODE |
| LOW⚡ | …benchmarks/es_phone_turns/tests/test_es_phone_turns.py | 171 | def test_a_hidden_wrong_action_is_caught(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 46 | def test_cases_parse_and_are_unique(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 51 | def test_every_case_has_a_known_gold_label(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 57 | def test_every_label_is_covered(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 63 | def test_choice_options_are_the_label_policy(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 66 | def test_four_noul_dimensions(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 71 | def test_noul_criteria_use_the_two_documented_keys(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 140 | def test_json_state_is_the_only_wrapped_state(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 149 | def test_noul_rungs_ask_the_four_dimensions_in_order(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 156 | def test_choice_rungs_ask_one_six_option_question(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 164 | def test_unknown_config_is_rejected(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 236 | def test_accuracy_re_derives_from_the_cases(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 244 | def test_noul_accuracy_re_derives_per_dimension(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 253 | def test_hashes_of_the_frozen_inputs_are_recorded(self): | CODE |
| LOW⚡ | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 259 | def test_stub_run_records_no_checkpoint(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 96 | def test_only_the_none_label_is_not_a_command(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 107 | def test_every_config_builds_one_pair_per_text(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 119 | def test_noul_plain_omits_criteria_and_the_higher_rungs_add_them(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 127 | def test_scenario_rungs_prepend_the_scenario(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 204 | def test_every_case_is_recorded_once_per_role(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 208 | def test_probabilities_are_finite_and_normalised(self): | CODE |
| LOW | …h/benchmarks/zh_short_commands/tests/test_benchmark.py | 220 | def test_every_record_carries_the_request_it_was_asked(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 36 | def test_manifest_hashes_pin_the_current_files(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 43 | def test_manifest_counts_match_the_cases(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 52 | def test_manifest_freezes_the_ladder_this_file_builds(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 58 | def test_archive_audits_clean(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 64 | def test_archive_pins_the_weights(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 70 | def test_stub_archive_has_no_weight_to_pin(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 136 | def test_probability_out_of_range(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 141 | def test_prediction_that_does_not_follow_from_the_probability(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 147 | def test_noul_confidence_that_is_not_the_maximum(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 152 | def test_protocol_from_a_different_prompt_revision(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 172 | def test_relabelled_dimension(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 177 | def test_summary_that_disagrees_with_its_report(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 182 | def test_unexplained_report_field(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 187 | def test_a_ladder_other_than_the_frozen_one(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 192 | def test_missing_weights_for_a_real_run(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 232 | def test_a_confidence_of_exactly_one_lands_in_the_last_bin(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 236 | def test_a_confidence_of_exactly_zero_is_counted(self): | CODE |
| LOW⚡ | …earch/benchmarks/zh_short_commands/tests/test_audit.py | 240 | def test_summarise_rounding_matches(self): | CODE |
| 1158 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | research/evals/test_act_head_eval.py | 76 | # One class absent: ROC-AUC is undefined, and must not be faked as 0.5 or 0.0. | COMMENT |
| HIGH | laya/_agreement.py | 297 | ``abstention`` equal to ``laya.confidence.GATE_ABSTAINED`` becomes a null, which is what | STRING |
| HIGH | laya/evals.py | 103 | ``float(tolerances.get(metric, 0.0))``. A string, null, list or dict there raised ``TypeError`` | STRING |
| HIGH | laya/serve.py | 1100 | # `{"<i>": null}`, which a Jev client's schema refuses to parse (#302). Reject it as a | COMMENT |
| HIGH | laya/agent.py | 1092 | "question %r: choice label %d is null; a label is rendered as option text " | CODE |
| HIGH | laya/agent.py | 1129 | raise ValueError("question %r: score level %d is null; give every level a description, " | CODE |
| HIGH | laya/mcp/server.py | 131 | "flagged 'low_confidence' (and, on laya_decide, its value comes back null), so a caller that " | CODE |
| HIGH | laya/mcp/server.py | 268 | "normal. explain=true adds the final routing decision's language diagnostic, or null; " | CODE |
| HIGH | laya/mcp/server.py | 397 | "model_counts. explain=true adds each final decision's language diagnostic, or null; " | CODE |
| HIGH | tests/test_packaging.py | 1013 | check_true("nix/%s is opt-in (nullOr, default null)" % opt, | CODE |
| HIGH | tests/test_packaging.py | 1014 | _t.count("nullOr") == 1 and re.search(r"^\s*default = null;", _t, re.M) is not None, | CODE |
| HIGH | tests/test_packaging.py | 1120 | _PER_COMMIT = "github.event_name == 'pull_request' && github.ref || github.sha" | CODE |
| HIGH | tests/test_evals_api.py | 294 | check_true("a local-path checkpoint is recorded as null, not dropped", | CODE |
| HIGH | tests/test_evals_api.py | 337 | check_true("that paragraph says a local directory is recorded as null, not dropped", | CODE |
| HIGH | tests/test_evals.py | 2231 | '{"overall": null}', '{"overall": {"choice_accuracy": "0.9"}}', | CODE |
| HIGH⚡ | tests/test_serve.py | 3076 | """`{"hooks": null}` means "no per-call hooks", which is what core reads as inherit. | STRING |
| HIGH | tests/test_serve.py | 1655 | """A null score level would come back as `legend: {"<i>": null}`, which Jev clients refuse to | STRING |
| HIGH | tests/test_serve.py | 3250 | """``{"lang_guess": null}`` means "no hint" -- same shape the single endpoint honours. | STRING |
| HIGH | laya-dotnet/tools/dump_differential_golden.py | 422 | '{"a": 1, "b": [true, false, null], "c": {"d": "e"}}', | CODE |
| HIGH | laya-dotnet/tools/golden_cases.py | 573 | # ("sv-SE" is replaced by "SV"). An entry that is null, or has a null `temperature`, inherits the | COMMENT |
| HIGH⚡ | examples/server.py | 971 | var r = document.documentElement, t = null; | CODE |
| HIGH⚡ | examples/server.py | 973 | var pick = function (k) { return k && Object.prototype.hasOwnProperty.call(names, k) ? names[k] : null; }; | CODE |
| HIGH⚡ | examples/server.py | 973 | var pick = function (k) { return k && Object.prototype.hasOwnProperty.call(names, k) ? names[k] : null; }; | CODE |
| HIGH⚡ | examples/server.py | 977 | if (q || t) r.dataset.theme = q || t; /* runs in <head>, before first paint */ | CODE |
| HIGH⚡ | examples/server.py | 1012 | while (box && box !== document.body && getComputedStyle(box).overflow === "visible") box = box.parentElement; | CODE |
| HIGH⚡ | examples/server.py | 1013 | const r = w.getBoundingClientRect(), g = box && box !== document.body ? box.getBoundingClientRect() : null; | CODE |
| HIGH⚡ | examples/server.py | 1013 | const r = w.getBoundingClientRect(), g = box && box !== document.body ? box.getBoundingClientRect() : null; | CODE |
| HIGH⚡ | examples/server.py | 1729 | const $ = (sel, root) => (root || document).querySelector(sel); | CODE |
| HIGH⚡ | examples/server.py | 1735 | if (v == null || v === false) continue; | CODE |
| HIGH⚡ | examples/server.py | 1742 | for (const c of kids.flat(Infinity)) if (c != null && c !== false) el.append(c); | CODE |
| HIGH⚡ | examples/server.py | 1758 | try { const v = localStorage.getItem(k); return v == null ? null : JSON.parse(v); } catch (e) { return null; } | CODE |
| HIGH⚡ | examples/server.py | 1763 | const isMap = (x) => !!x && typeof x === "object" && !Array.isArray(x); | CODE |
| HIGH⚡ | examples/server.py | 1770 | const plainEnter = (e) => e.key === "Enter" && !e.isComposing && e.keyCode !== 229 && !e.shiftKey && !e.ctrlKey | CODE |
| HIGH⚡ | examples/server.py | 1875 | if (!node || node.t !== "obj") return null; | CODE |
| HIGH⚡ | examples/server.py | 1875 | if (!node || node.t !== "obj") return null; | CODE |
| HIGH⚡ | examples/server.py | 1877 | return null; | CODE |
| HIGH⚡ | examples/server.py | 1881 | ind = ind || 0; | CODE |
| HIGH⚡ | examples/server.py | 1889 | const pretty = (v) => JSON.stringify(v, null, 2); | CODE |
| HIGH⚡ | examples/server.py | 1913 | const errAt = marks && marks.errAt != null ? marks.errAt : -1; | CODE |
| HIGH⚡ | examples/server.py | 1914 | const warn = (marks && marks.warn) || new Set(); | CODE |
| HIGH⚡ | examples/server.py | 1918 | const end = off + line.length, errHere = errAt >= off && errAt <= end; | CODE |
| HIGH⚡ | examples/server.py | 1924 | if (errHere && errAt >= at && errAt < at + t.length) { | CODE |
| HIGH⚡ | examples/server.py | 1931 | if (errHere && errAt === end) div.append(span("", "eol")); | CODE |
| HIGH⚡ | examples/server.py | 2009 | const pane = sc && getComputedStyle(sc).overflowY !== "visible" ? sc : null; | CODE |
| HIGH⚡ | examples/server.py | 2009 | const pane = sc && getComputedStyle(sc).overflowY !== "visible" ? sc : null; | CODE |
| HIGH⚡ | examples/server.py | 2017 | if (dir > 0) while (li < rows.length - 1 && off(li + 1) <= off(li)) li++; | CODE |
| HIGH⚡ | examples/server.py | 2018 | else while (li > 0 && off(li - 1) <= off(li)) li--; | CODE |
| HIGH⚡ | examples/server.py | 2024 | (pane || window).scrollBy(0, dy); | CODE |
| HIGH⚡ | examples/server.py | 2056 | else if (e.altKey && e.shiftKey && e.code === "KeyF") { e.preventDefault(); ed.format(); } | CODE |
| HIGH⚡ | examples/server.py | 2062 | if (!out && s === e) { insertText(ta, " "); return; } | CODE |
| HIGH⚡ | examples/server.py | 2064 | let le = v.indexOf("\n", e > s && v[e - 1] === "\n" ? e - 1 : e); | CODE |
| HIGH⚡ | examples/server.py | 2096 | const MOD = /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent) ? "\u2318" : "Ctrl"; | CODE |
| HIGH⚡ | examples/server.py | 2099 | const SOURCES = Object.create(null); /* no inherited keys, so ?preset=constructor is just unknown */ | CODE |
| HIGH⚡ | examples/server.py | 2105 | stateMode: "fields", qMode: "form", fields: [], qs: [], base: null, last: null, running: false, | CODE |
| HIGH⚡ | examples/server.py | 2106 | problems: [], body: null, qValue: null, view: "answers", notes: {state: null, questions: null}, | CODE |
| HIGH⚡ | examples/server.py | 2165 | if (!t || t.v.t !== "str" || !FORM_TYPES.includes(t.v.v)) | CODE |
| HIGH⚡ | examples/server.py | 2167 | if (ins && ins.v.t !== "str") return "The instructions of " + name + " are not text."; | CODE |
| HIGH⚡ | examples/server.py | 2168 | if (!c || (c.v.t === "lit" && c.v.v === null)) continue; | CODE |
| HIGH⚡ | examples/server.py | 2169 | const textOrNull = (x) => x.t === "str" || (x.t === "lit" && x.v === null); | CODE |
| HIGH⚡ | examples/server.py | 2176 | if (t.v.v === "noul" && !(tf.length && tf.every((k) => k === "true" || k === "false") && | CODE |
| 183 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | laya/integrations/agno.py | 42 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 85 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 103 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 105 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 143 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 254 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 257 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 350 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 352 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 368 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 370 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 413 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 415 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya/integrations/agno.py | 500 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | laya/integrations/agno.py | 502 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/test_predict_long.py | 1298 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 22 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 24 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 31 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 33 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 93 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 95 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 103 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/confidence_cases.py | 105 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/confidence_cases.py | 116 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/confidence_cases.py | 119 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/confidence_cases.py | 161 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/confidence_cases.py | 163 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/bench_python.py | 184 | # ── cold latency ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/bench_python.py | 196 | # ── warm latency ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/bench_python.py | 223 | # ── peak memory ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/bench_python.py | 232 | # ── answer snapshot ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/golden_cases.py | 559 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/golden_cases.py | 570 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/golden_cases.py | 722 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/golden_cases.py | 735 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | laya-dotnet/tools/export_onnx.py | 652 | # ─── ONNX graph signature check ───────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 63 | # ─── model catalogue ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 169 | # ─── fixture cases ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 308 | # ─── ONNX export ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 435 | # ─── tokenizer copy ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 461 | # ─── ONNX parity verification ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 723 | # ─── main per-model export ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 823 | # ─── graph signature check against reference ──────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/export_onnx.py | 839 | # ─── CLI ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tools/lang_temperature_cases.py | 141 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tools/lang_temperature_cases.py | 148 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 39 | // ── a pure footer is still removed ─────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 56 | // ── unrelated cleaning is unchanged ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 96 | // ── email_state ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 128 | // ── every recorded probe entry ──────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/PredictParityTests.cs | 23 | // ── cross-checkpoint theory data ────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/PredictParityTests.cs | 60 | // ── theory tests ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/PredictParityTests.cs | 202 | // ── fact tests (multilingual checkpoint) ───────────────────────────────── | COMMENT |
| MEDIUM | laya-dotnet/tests/Laya.Tests/PredictParityTests.cs | 243 | // ── helpers ─────────────────────────────────────────────────────────────── | COMMENT |
| 203 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compose.http.yaml | 1 | # Serve Laya over HTTP from the same image, so a Jev client can point its `baseUrl` at it: | COMMENT |
| LOW | compose.http.yaml | 61 | # third checkpoint routing can choose on demand, and a cap below it reloads one per switch. | COMMENT |
| LOW | compose.modelscope.yaml | 1 | # Bake the checkpoint from ModelScope (https://modelscope.cn) into the image, so neither the build | COMMENT |
| LOW | compose.modelscope.yaml | 21 | # For NVIDIA, append -f compose.cuda.yaml; it repeats the build args and the device reservation for | COMMENT |
| LOW | compose.example.yml | 21 | # Optional token: enable this setting and its read-only mount below. | COMMENT |
| LOW | setup_laya_linux.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | laya/lang.py | 161 | _STOP = { | COMMENT |
| LOW | laya/lang.py | 321 | # letters -- `ả`, `ạ`, `ề`, `ơ`, `ư` and friends -- are precomposed codepoints | COMMENT |
| LOW | laya/lang.py | 341 | "hej", "ja", "nej", "jo", "tack", "mig", "min", "om", "kommer", "får", "skulle", "vi", | COMMENT |
| LOW | laya/lang.py | 361 | # A token whose dot or @ joins word characters is an identifier, not prose: `github.com`, | COMMENT |
| LOW | laya/lang.py | 501 | COMMENT | |
| LOW | laya/lang.py | 661 | return latin_profile(text)["language"] | COMMENT |
| LOW | laya/lang.py | 681 | # ...but a line of nothing but acronyms has no lowercase either, so it skips the blanking above | COMMENT |
| LOW | laya/lang.py | 701 | # word >= 5 only 10,854 99.03% 431 141 <- addresses stand | COMMENT |
| LOW | laya/lang.py | 721 | _SHOUTED_MIN_STOPWORD = 4 | COMMENT |
| LOW | laya/lang.py | 861 | prof_lat = _latin_profile(text, diagnostic) | COMMENT |
| LOW | laya/lang.py | 881 | if not _shouted_evidence(_WORD.findall(text), lang, | COMMENT |
| LOW | laya/lang.py | 941 | for line_number, line in enumerate(leaf.split("\n"), 1): | COMMENT |
| LOW | laya/lang.py | 961 | # non-English letters and that no stopword list can name. `WIE SPÄT IST ES IN KÖLN` | COMMENT |
| LOW | laya/__init__.py | 1 | """Laya: Fast, non-autoregressive System 1 decision engine with calibrated probabilities.""" | COMMENT |
| LOW | laya/evals.py | 201 | """An ordered collection of labelled examples.""" | COMMENT |
| LOW | laya/evals.py | 241 | COMMENT | |
| LOW | laya/evals.py | 401 | COMMENT | |
| LOW | laya/evals.py | 1161 | # on a runner that does not accept it is refused. The gate does not change which answers score | COMMENT |
| LOW | laya/evals.py | 1221 | # different key order is a different signature, so rows that would share one forward pass | COMMENT |
| LOW | laya/serve.py | 101 | # means a client that sends a request head and one partial body chunk and then goes quiet holds one | COMMENT |
| LOW | laya/serve.py | 121 | # | COMMENT |
| LOW | laya/serve.py | 141 | # HTTP-only amplification guard; the library keeps its head_max_len-aware budget. | COMMENT |
| LOW | laya/serve.py | 161 | # open; the rest of the payload names checkpoints, revision SHAs and host device state, so it | COMMENT |
| LOW | laya/serve.py | 181 | # apply to the whole batch (chunking, padding, the abstention threshold) and per-request keys that | COMMENT |
| LOW | laya/serve.py | 1041 | # Already past the cap on a lower bound, so serializing the rest cannot change the verdict. | COMMENT |
| LOW | laya/serve.py | 1321 | from .mcp.device import agent_device, resolve_device, router_agent | COMMENT |
| LOW | laya/serve.py | 1441 | return hmac.compare_digest(supplied, expected_auth) | COMMENT |
| LOW | laya/serve.py | 1601 | # `MAX_STATE_CHARS`/`MAX_QUESTIONS` bound what the walk can reach. A `\udXXX` escape with | COMMENT |
| LOW | laya/serve.py | 1701 | else MAX_CHOICE_OPTIONS) | COMMENT |
| LOW | laya/cli.py | 161 | """ | COMMENT |
| LOW | laya/email.py | 21 | # "Em resposta ao que você escreveu:" is body text; a client's attribution always carries a date | COMMENT |
| LOW | laya/email.py | 41 | ] | COMMENT |
| LOW | laya/structured.py | 201 | # top-level type/enum/const, the same nullable shape the list form `type: ["string", "null"]` | COMMENT |
| LOW | laya/agent.py | 1081 | # The score path rejects a null level with the same argument one question type | COMMENT |
| LOW | laya/agent.py | 1781 | # (max_len=512, head_max_len=192, config budget 312): a 2-option question leaves room for | COMMENT |
| LOW | laya/agent.py | 1801 | COMMENT | |
| LOW | laya/agent.py | 1921 | ans = dict(original) | COMMENT |
| LOW | laya/router.py | 341 | if _takes_lang(scan): | COMMENT |
| LOW | laya/router.py | 361 | "laya: Router.predict_long: %s.predict_long has no `lang` parameter, so the %s " | COMMENT |
| LOW | laya/router.py | 761 | # unverified. | COMMENT |
| LOW | laya/router.py | 1741 | return [] | COMMENT |
| LOW | laya/router.py | 1761 | if sort_by_length and diagnostics is not None else None) | COMMENT |
| LOW | laya/evidence.py | 81 | "types": types, | COMMENT |
| LOW | laya/onnx_agent.py | 521 | max_len = self.cfg.get("max_len", 512) | COMMENT |
| LOW | laya/evals_cli.py | 281 | COMMENT | |
| LOW | laya/evals_cli.py | 421 | if revisions: | COMMENT |
| LOW | laya/evals_cli.py | 541 | result = evidence.inspect_checkpoint(args.checkpoint, args.report) | COMMENT |
| LOW | laya/mcp/server.py | 361 | # batch_size=0 means "unset": MCP clients send defaults eagerly, and | COMMENT |
| LOW | laya/integrations/_controls.py | 21 | from typing import Any, Dict, Optional | COMMENT |
| LOW | laya/integrations/agno.py | 321 | body = e.read().decode("utf-8", errors="replace") | COMMENT |
| LOW | laya/integrations/llamaindex.py | 201 | raise RuntimeError(f"Laya server error {e.code}: {body}") from e | COMMENT |
| LOW | tests/test_compose_env.py | 221 | for name in names: | COMMENT |
| LOW | tests/test_compose_env.py | 241 | # A file may still deviate, and the test for that is *where the deviation is said*: the entry | COMMENT |
| LOW | tests/test_compose_env.py | 401 | "the omission has to be explained where a reader meets it") | COMMENT |
| 351 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/evals/shouted_bar_corpora.py | 187 | except Exception: # offline: the same revision, already in the local cache | CODE |
| LOW | research/benchmarks/idle_unload/benchmark.py | 120 | except Exception as exc: | CODE |
| LOW | research/benchmarks/feishu_zh/run.py | 126 | except Exception as e: | CODE |
| LOW | research/benchmarks/feishu_zh/run.py | 141 | except Exception as e: | CODE |
| LOW | research/benchmarks/zh_short_commands/run.py | 180 | except Exception: # pragma: no cover - provenance only | CODE |
| LOW | research/benchmarks/zh_short_commands/run.py | 200 | except Exception as exc: # pragma: no cover - provenance only | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 136 | except Exception as e: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 176 | except Exception: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 336 | except Exception: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 359 | except Exception as e: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 384 | except Exception as e: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 401 | except Exception as e: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 425 | except Exception as e: print(" FAIL sst5:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 439 | except Exception as e: print(" FAIL emotion:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 451 | except Exception as e: print(" FAIL prompt_injections:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 465 | except Exception as e: print(" FAIL banking77:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 479 | except Exception as e: print(" FAIL ag_news:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 490 | except Exception as e: print(" FAIL boolq:", str(e)[:90]) | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 566 | except Exception as e: | CODE |
| LOW | research/scripts/build_benchmark_nb.py | 817 | except Exception as e: | CODE |
| LOW | research/scripts/bench_local.py | 67 | except Exception: | CODE |
| LOW | research/scripts/bench_local.py | 184 | except Exception as e: | CODE |
| LOW | research/scripts/bench_local.py | 235 | except Exception: | CODE |
| LOW | research/scripts/bench_local.py | 327 | except Exception: | CODE |
| LOW | research/scripts/bench_nvidia_capacity.py | 179 | except Exception as e: | CODE |
| LOW | research/scripts/bench_nvidia_capacity.py | 216 | except Exception: | CODE |
| LOW | research/scripts/bench_nvidia_capacity.py | 274 | except Exception: | CODE |
| LOW | research/scripts/bench_apps.py | 95 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 111 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 127 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 156 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 169 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 186 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 218 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 240 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 269 | except Exception as e: | CODE |
| LOW | research/scripts/bench_apps.py | 298 | except Exception as e: | CODE |
| LOW | research/scripts/step4_benchmark/kaggle/step4_gate_r.py | 54 | except Exception: | CODE |
| LOW | research/scripts/step4_benchmark/kaggle/step4_gate_r.py | 120 | except Exception as _e: # noqa: BLE001 - a missing optional row must not kill the run | CODE |
| LOW | research/scripts/step4_benchmark/kaggle/build_gate_d.py | 79 | except Exception: | CODE |
| LOW | research/scripts/step4_benchmark/kaggle/build_kernel.py | 78 | except Exception: | STRING |
| LOW | research/scripts/step4_benchmark/kaggle/build_kernel.py | 144 | except Exception as _e: # noqa: BLE001 - a missing optional row must not kill the run | STRING |
| LOW | …/scripts/step4_benchmark/kaggle/gate_d/step4_gate_d.py | 57 | except Exception: | CODE |
| LOW | research/eval/metamorphic.py | 464 | except Exception as exc: | CODE |
| LOW | research/eval/metamorphic.py | 689 | except Exception as exc: | CODE |
| LOW | research/eval/laya_eval.py | 105 | except Exception as exc: # pragma: no cover - network path | CODE |
| LOW | research/eval/laya_eval.py | 317 | except Exception as exc: | CODE |
| LOW | research/eval/laya_eval.py | 357 | except Exception as exc: | CODE |
| LOW | laya/train_cli.py | 233 | except Exception as err: | CODE |
| LOW | laya/hooks.py | 566 | except Exception as exc: # noqa: BLE001 -- policy depends on raise_errors | CODE |
| MEDIUM | laya/hooks.py | 522 | def runner(): | CODE |
| LOW | laya/evals.py | 397 | except Exception: # pragma: no cover - identity only | CODE |
| LOW | laya/evals.py | 1301 | except Exception as exc: # noqa: BLE001 -- honoured by on_error | CODE |
| MEDIUM | laya/serve.py | 1357 | def _run_inference(fn): | CODE |
| LOW | laya/serve.py | 1382 | except Exception: # noqa: BLE001 -- a failed unload must not stop future attempts | CODE |
| LOW | laya/serve.py | 1578 | except Exception: # noqa: BLE001 -- never expose internal paths or hook errors | CODE |
| LOW | laya/serve.py | 1671 | except Exception: # noqa: BLE001 -- never leak paths/weights/OOM text to clients | CODE |
| LOW | laya/serve.py | 1828 | except Exception: # noqa: BLE001 | CODE |
| LOW | laya/agent.py | 107 | except Exception as e: | CODE |
| LOW | laya/agent.py | 467 | except Exception: | CODE |
| 265 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | research/benchmarks/zh_short_commands/run.py | 180 | except Exception: # pragma: no cover - provenance only | CODE |
| HIGH | research/scripts/bench_local.py | 235 | except Exception: | CODE |
| HIGH | research/scripts/bench_local.py | 327 | except Exception: | CODE |
| HIGH | laya/serve.py | 1250 | except ValueError: | CODE |
| HIGH | laya/serve.py | 1404 | except asyncio.CancelledError: | CODE |
| HIGH | laya/serve.py | 1849 | except OSError: | CODE |
| HIGH | laya/agent.py | 742 | except Exception: | CODE |
| HIGH | laya/agent.py | 2023 | except Exception: | CODE |
| HIGH | laya/agent.py | 2108 | except FileNotFoundError: | CODE |
| HIGH | laya/agent.py | 98 | except OSError: | CODE |
| HIGH | laya/agent.py | 2116 | except OSError: | CODE |
| HIGH | laya/agent.py | 104 | except OSError: | CODE |
| HIGH | laya/router.py | 1059 | except Exception: | CODE |
| HIGH | laya/router.py | 1139 | except Exception: | CODE |
| HIGH | laya/router.py | 1170 | except Exception: | CODE |
| HIGH | laya/backends/compile.py | 62 | except Exception: | CODE |
| HIGH | laya/mcp/device.py | 146 | except Exception: | CODE |
| HIGH | laya/mcp/device.py | 164 | except Exception: | CODE |
| HIGH | laya/mcp/tools.py | 696 | except (AttributeError, TypeError): | CODE |
| HIGH | laya/mcp/tools.py | 1179 | except Exception: | CODE |
| HIGH | laya/integrations/crewai.py | 464 | except Exception: | CODE |
| HIGH | laya/integrations/crewai.py | 486 | except Exception: | CODE |
| HIGH | docker/check_torch.py | 64 | except PackageNotFoundError: | CODE |
| HIGH | tests/test_state_budget.py | 806 | except _Skip: | CODE |
| HIGH | tests/test_mcp_local_e2e.py | 89 | except Exception: | CODE |
| HIGH | tests/test_router.py | 1956 | except TypeError: | CODE |
| HIGH | tests/test_router.py | 2032 | except Exception: # noqa: BLE001 | CODE |
| HIGH | tests/test_router.py | 2014 | except ValueError: # unregistered at that instant | CODE |
| HIGH | tests/test_langchain.py | 1559 | except ValueError: | CODE |
| HIGH | tests/test_calibrate.py | 529 | except OSError: | CODE |
| HIGH | tests/test_compile.py | 140 | except RuntimeError: | CODE |
| HIGH | tests/test_compile.py | 367 | except RuntimeError: | CODE |
| HIGH | tests/test_agent_gate.py | 193 | except RuntimeError: | CODE |
| HIGH | tests/test_agent_gate.py | 201 | except RuntimeError: | CODE |
| HIGH | tests/test_crewai.py | 853 | except ValueError: | CODE |
| HIGH | tests/test_cli.py | 213 | except SystemExit: | CODE |
| HIGH | tests/test_onnx_export_batch.py | 269 | except _Skip: | CODE |
| HIGH | tests/test_onnx_export_batch.py | 339 | except _Skip: | CODE |
| HIGH | laya-dotnet/tools/export_onnx.py | 631 | except Exception: | CODE |
| HIGH | laya-dotnet/tools/export_onnx.py | 780 | except Exception: | CODE |
| HIGH | laya-dotnet/tools/export_onnx.py | 790 | except Exception: | CODE |
| HIGH | laya-dotnet/tools/export_onnx.py | 368 | except (AttributeError, io.UnsupportedOperation): | CODE |
| HIGH | laya-dotnet/tools/export_onnx.py | 642 | except Exception: | CODE |
| HIGH | sdk/python/tests/_support.py | 54 | except (BrokenPipeError, ConnectionResetError, OSError): | CODE |
| HIGH | laya-rust/tools/export_onnx.py | 567 | except Exception: | CODE |
| HIGH | laya-rust/tools/export_onnx.py | 716 | except Exception: | CODE |
| HIGH | laya-rust/tools/export_onnx.py | 726 | except Exception: | CODE |
| HIGH | laya-rust/tools/export_onnx.py | 301 | except (AttributeError, io.UnsupportedOperation): | CODE |
| HIGH | laya-rust/tools/export_onnx.py | 578 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/com/convaiinnovations/laya/QuestionRenderingTest.java | 56 | org.junit.jupiter.api.Assertions.assertTrue(rendered.contains("a: {\"d\": 1}"), rendered.toString()); | CODE |
| CRITICAL | …/com/convaiinnovations/laya/QuestionRenderingTest.java | 57 | org.junit.jupiter.api.Assertions.assertTrue(rendered.contains("b: [1, 2]"), rendered.toString()); | CODE |
| CRITICAL | …/com/convaiinnovations/laya/QuestionRenderingTest.java | 156 | org.junit.jupiter.api.Assertions.assertTrue(refused.getMessage().contains("level 1"), | CODE |
| CRITICAL | …/com/convaiinnovations/laya/QuestionRenderingTest.java | 180 | org.junit.jupiter.api.Assertions.assertThrows(IllegalArgumentException.class, | CODE |
| CRITICAL | …/com/convaiinnovations/laya/QuestionRenderingTest.java | 201 | org.junit.jupiter.api.Assertions.assertThrows(IllegalArgumentException.class, | CODE |
| CRITICAL | …java/com/convaiinnovations/laya/AgentBatchingTest.java | 140 | org.junit.jupiter.api.Assertions.assertNotNull(collapsed, | CODE |
| CRITICAL | …st/java/com/convaiinnovations/laya/AgentHooksTest.java | 83 | com.convaiinnovations.laya.tokenizer.Tokenizer.fromModelDirectory(root), | CODE |
| CRITICAL | …st/java/com/convaiinnovations/laya/AgentHooksTest.java | 84 | com.convaiinnovations.laya.config.AgentConfig.fromModelDirectory(root), | CODE |
| CRITICAL | …com/convaiinnovations/laya/config/AgentConfigTest.java | 73 | org.junit.jupiter.api.Assertions.assertThrows( | CODE |
| CRITICAL | …com/convaiinnovations/laya/config/AgentConfigTest.java | 78 | org.junit.jupiter.api.Assertions.assertThrows( | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 42 | org.junit.jupiter.api.Assertions.assertTrue(checked > 400, | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 47 | org.junit.jupiter.api.Assertions.assertTrue(covered.contains(discriminating) | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 82 | org.junit.jupiter.api.Assertions.assertThrows(Json.JsonException.class, | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 106 | org.junit.jupiter.api.Assertions.assertThrows(Json.JsonException.class, | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 119 | Json.JsonException cyclic = org.junit.jupiter.api.Assertions.assertThrows( | CODE |
| CRITICAL | …va/com/convaiinnovations/laya/json/PythonJsonTest.java | 125 | org.junit.jupiter.api.Assertions.assertThrows(Json.JsonException.class, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/evals/shouted_bar_corpora.py | 218 | CODE | |
| LOW | research/benchmarks/tournament/benchmark.py | 89 | CODE | |
| LOW | research/benchmarks/feishu_zh/run.py | 26 | CODE | |
| LOW | research/benchmarks/feishu_zh/render_cards.py | 38 | CODE | |
| LOW | research/benchmarks/feishu_zh/tests/test_audit.py | 35 | CODE | |
| LOW | research/benchmarks/es_phone_turns/train/build_train.py | 175 | CODE | |
| LOW | research/benchmarks/zh_short_commands/audit.py | 121 | CODE | |
| LOW | research/benchmarks/zh_short_commands/audit.py | 202 | CODE | |
| LOW | research/scripts/bench_position_sensitivity.py | 83 | CODE | |
| LOW | research/scripts/bench_local.py | 225 | CODE | |
| LOW | research/scripts/bench_long_context.py | 53 | CODE | |
| LOW | research/scripts/bench_question_token_reuse.py | 72 | CODE | |
| LOW | research/scripts/bench_length_batching.py | 60 | CODE | |
| LOW | research/scripts/bench_nvidia_capacity.py | 149 | CODE | |
| LOW | research/scripts/bench_nvidia_capacity.py | 297 | CODE | |
| LOW | research/scripts/bench_nvidia_capacity.py | 163 | CODE | |
| LOW | research/scripts/finetune_single_device.py | 32 | CODE | |
| LOW | research/scripts/step4_benchmark/analyze_gate_d.py | 61 | CODE | |
| LOW | research/scripts/step4_benchmark/evaluate.py | 52 | CODE | |
| LOW | laya/lang.py | 598 | CODE | |
| LOW | laya/lang.py | 802 | CODE | |
| LOW | laya/lang.py | 835 | CODE | |
| LOW | laya/lang.py | 929 | CODE | |
| LOW | laya/hooks.py | 538 | CODE | |
| LOW | laya/hooks.py | 439 | CODE | |
| LOW | laya/hooks.py | 758 | CODE | |
| LOW | laya/hooks.py | 853 | CODE | |
| LOW | laya/_agreement.py | 216 | CODE | |
| LOW | laya/confidence.py | 278 | CODE | |
| LOW | laya/evals.py | 1113 | CODE | |
| LOW | laya/evals.py | 246 | CODE | |
| LOW | laya/serve.py | 229 | CODE | |
| LOW | laya/serve.py | 952 | CODE | |
| LOW | laya/serve.py | 1059 | CODE | |
| LOW | laya/serve.py | 1166 | CODE | |
| LOW | laya/serve.py | 1312 | CODE | |
| LOW | laya/serve.py | 1689 | CODE | |
| LOW | laya/cli.py | 225 | CODE | |
| LOW | laya/cli.py | 392 | CODE | |
| LOW | laya/structured.py | 279 | CODE | |
| LOW | laya/agent.py | 61 | CODE | |
| LOW | laya/agent.py | 536 | CODE | |
| LOW | laya/agent.py | 1029 | CODE | |
| LOW | laya/agent.py | 1268 | CODE | |
| LOW | laya/agent.py | 1470 | CODE | |
| LOW | laya/agent.py | 1664 | CODE | |
| LOW | laya/train.py | 196 | CODE | |
| LOW | laya/train.py | 317 | CODE | |
| LOW | laya/train.py | 649 | CODE | |
| LOW | laya/train.py | 754 | CODE | |
| LOW | laya/train.py | 807 | CODE | |
| LOW | laya/train.py | 989 | CODE | |
| LOW | laya/calibrate.py | 732 | CODE | |
| LOW | laya/router.py | 807 | CODE | |
| LOW | laya/router.py | 942 | CODE | |
| LOW | laya/router.py | 1035 | CODE | |
| LOW | laya/router.py | 1118 | CODE | |
| LOW | laya/router.py | 1145 | CODE | |
| LOW | laya/router.py | 1239 | CODE | |
| LOW | laya/router.py | 1340 | CODE | |
| 121 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | laya/integrations/crewai.py | 0 | do not forward bearer credentials across an origin or https downgrade. | STRING |
| HIGH | laya/integrations/agno.py | 0 | do not forward bearer credentials across an origin or https downgrade. | STRING |
| HIGH | laya/integrations/llamaindex.py | 0 | do not forward bearer credentials across an origin or https downgrade. | STRING |
| HIGH | laya/integrations/langchain.py | 0 | do not forward bearer credentials across an origin or https downgrade. | STRING |
| HIGH | laya/integrations/crewai.py | 0 | send decision request to a remote laya-serve http instance using standard library urllib. `max_len` / `head_max_len` tra | STRING |
| HIGH | laya/integrations/llamaindex.py | 0 | send decision request to a remote laya-serve http instance using standard library urllib. `max_len` / `head_max_len` tra | STRING |
| HIGH | laya/integrations/langchain.py | 0 | send decision request to a remote laya-serve http instance using standard library urllib. `max_len` / `head_max_len` tra | STRING |
| HIGH | tests/test_agno.py | 0 | mock agent returning deterministic responses for testing. | STRING |
| HIGH | tests/test_langchain.py | 0 | mock agent returning deterministic responses for testing. | STRING |
| HIGH | tests/test_llamaindex.py | 0 | mock agent returning deterministic responses for testing. | STRING |
| HIGH | tests/test_crewai.py | 0 | mock agent returning deterministic responses for testing. | STRING |
| HIGH | tests/test_tools.py | 0 | mock agent returning deterministic responses for testing. | STRING |
| HIGH | tests/test_agno.py | 0 | a harm_severity answer shaped the way agent._decode_answers returns one. | STRING |
| HIGH | tests/test_langchain.py | 0 | a harm_severity answer shaped the way agent._decode_answers returns one. | STRING |
| HIGH | tests/test_crewai.py | 0 | a harm_severity answer shaped the way agent._decode_answers returns one. | STRING |
| HIGH | tests/test_agno.py | 0 | answers whose two confidence fields disagree, on purpose. | STRING |
| HIGH | tests/test_llamaindex.py | 0 | answers whose two confidence fields disagree, on purpose. | STRING |
| HIGH | tests/test_crewai.py | 0 | answers whose two confidence fields disagree, on purpose. | STRING |
| HIGH | tests/test_langchain.py | 0 | an agent-shaped runner: the budgets yes, either routing hint never. | STRING |
| HIGH | tests/test_llamaindex.py | 0 | an agent-shaped runner: the budgets yes, either routing hint never. | STRING |
| HIGH | tests/test_crewai.py | 0 | an agent-shaped runner: the budgets yes, either routing hint never. | STRING |
| HIGH | laya-dotnet/tools/regen_golden.py | 0 | refuses a snapshot that is missing files, or whose files arrived empty or unparseable. `snapshot_download` reports succe | STRING |
| HIGH | laya-dotnet/tools/export_onnx.py | 0 | refuses a snapshot that is missing files, or whose files arrived empty or unparseable. `snapshot_download` reports succe | STRING |
| HIGH | laya-java/scripts/prepare_checkpoint.py | 0 | refuses a snapshot that is missing files, or whose files arrived empty or unparseable. `snapshot_download` reports succe | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/evals/act_head_eval.py | 69 | CODE | |
| LOW | research/evals/massive_route_comparison.py | 16 | CODE | |
| LOW | research/evals/check_regression.py | 9 | CODE | |
| LOW | research/evals/shouted_bar_corpora.py | 30 | CODE | |
| LOW | research/benchmarks/zh_short_commands/run.py | 28 | CODE | |
| LOW | research/benchmarks/zh_short_commands/run.py | 28 | CODE | |
| LOW | research/scripts/bench_apps.py | 25 | CODE | |
| LOW | research/scripts/bench_apps.py | 35 | CODE | |
| LOW | research/scripts/bench_apps.py | 36 | CODE | |
| LOW | research/scripts/step4_benchmark/smoke_test.py | 13 | CODE | |
| LOW | research/scripts/step4_benchmark/run_benchmark.py | 24 | CODE | |
| LOW | research/scripts/step4_benchmark/metrics.py | 19 | CODE | |
| LOW | research/scripts/step4_benchmark/analyze_gate_d.py | 19 | CODE | |
| LOW | research/scripts/step4_benchmark/prepare_data.py | 19 | CODE | |
| LOW | research/scripts/step4_benchmark/order_flip.py | 24 | CODE | |
| LOW | research/scripts/step4_benchmark/evaluate.py | 28 | CODE | |
| LOW | research/scripts/step4_benchmark/kaggle/build_gate_d.py | 14 | CODE | |
| LOW | research/scripts/step4_benchmark/kaggle/build_kernel.py | 17 | CODE | |
| LOW | research/scripts/step4_benchmark/kaggle/build_kernel.py | 21 | CODE | |
| LOW | research/eval/metamorphic.py | 6 | CODE | |
| LOW | research/eval/presentation_checks.py | 58 | CODE | |
| LOW | research/eval/laya_eval.py | 36 | CODE | |
| LOW | laya/train_cli.py | 11 | CODE | |
| LOW | laya/hooks.py | 9 | CODE | |
| LOW | laya/evals_shortlist.py | 7 | CODE | |
| LOW | laya/__init__.py | 24 | CODE | |
| LOW | laya/__init__.py | 24 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 25 | CODE | |
| LOW | laya/__init__.py | 26 | CODE | |
| LOW | laya/__init__.py | 27 | CODE | |
| LOW | laya/__init__.py | 27 | CODE | |
| LOW | laya/__init__.py | 28 | CODE | |
| LOW | laya/__init__.py | 28 | CODE | |
| LOW | laya/__init__.py | 28 | CODE | |
| LOW | laya/__init__.py | 28 | CODE | |
| LOW | laya/__init__.py | 28 | CODE | |
| LOW | laya/__init__.py | 35 | CODE | |
| LOW | laya/__init__.py | 35 | CODE | |
| LOW | laya/__init__.py | 35 | CODE | |
| LOW | laya/__init__.py | 36 | CODE | |
| LOW | laya/__init__.py | 36 | CODE | |
| LOW | laya/__init__.py | 36 | CODE | |
| LOW | laya/evals.py | 22 | CODE | |
| LOW | laya/evals_tournament.py | 2 | CODE | |
| LOW | laya/email.py | 17 | CODE | |
| LOW | laya/structured.py | 17 | CODE | |
| LOW | laya/structured.py | 84 | CODE | |
| LOW | laya/evidence.py | 17 | CODE | |
| LOW | laya/evals_cli.py | 12 | CODE | |
| LOW | laya/backends/__init__.py | 21 | CODE | |
| LOW | laya/backends/__init__.py | 21 | CODE | |
| LOW | laya/backends/__init__.py | 39 | CODE | |
| LOW | laya/mcp/server.py | 38 | CODE | |
| LOW | laya/mcp/remote.py | 22 | CODE | |
| LOW | laya/mcp/device.py | 29 | CODE | |
| 59 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | research/evals/test_act_head_eval.py | 185 | # malformed report can carry them into the harness. They are not measurements: ranking | COMMENT |
| MEDIUM | research/eval/test_laya_eval.py | 107 | # harness tested `conf > lo` for every bin until the divergence was found, which made it | COMMENT |
| MEDIUM | laya/evals.py | 1025 | # Not introspectable (a C-level or hand-rolled ``__call__``): keep the call this harness | COMMENT |
| MEDIUM | laya/evals.py | 1107 | # Same fallback as `_batch_form` (its comment records why): keep the call this harness | COMMENT |
| MEDIUM | laya/evals.py | 1228 | # ones. This is a harness-side grouping relaxation and it is looser than core, which never | COMMENT |
| MEDIUM | laya/evals.py | 1230 | # unconditionally. On the per-request path two key orderings that share one harness chunk | COMMENT |
| MEDIUM | laya/evals.py | 1262 | # did the harness issue", which is settled the moment the chunk is grouped, while the | COMMENT |
| MEDIUM | laya/evals.py | 1372 | # run with no batch form asked for something this harness cannot do. | COMMENT |
| MEDIUM | tests/test_doc_tables.py | 207 | # figures with an independently written harness and landed within 0.0003, which is the | COMMENT |
| MEDIUM | tests/test_doc_tables.py | 311 | # divergence interesting rather than a harness change), and the `laya-multilingual` column | COMMENT |
| MEDIUM | tests/test_evals_onnx.py | 187 | # apart from "the harness forgot to record it". | COMMENT |
| MEDIUM | tests/test_evals_onnx.py | 222 | # batching reaches the runner's predict_batch through the harness | COMMENT |
| MEDIUM | tests/test_evals_onnx.py | 229 | # report is the witness: `sort_by_length_sent` is what the harness put on the wire, not what | COMMENT |
| MEDIUM | tests/test_evals_api.py | 64 | # `evaluate` is the harness entry point callers extend from their own scripts, so its parameter | COMMENT |
| MEDIUM | tests/test_predict_long.py | 954 | _q_onnx = {"a": q_many(12)} # 100 options fills this tiny harness entirely | CODE |
| MEDIUM | tests/test_structured.py | 345 | # and the eval harness use. | COMMENT |
| LOW | tests/test_system_one_lang.py | 16 | # Mock predict_batch to just return the lang it was given so we can test the pass-through | COMMENT |
| MEDIUM | tests/test_evidence.py | 364 | # ... and on the artifact the research harness actually writes: identity at the document's top | COMMENT |
| MEDIUM | tests/test_crewai.py | 262 | # --------------------------------------------------------------- 3b. Guard probabilities are robust to a malformed answ | COMMENT |
| MEDIUM | tests/test_tools.py | 445 | # A well-formed object response must still route normally through the same harness. | COMMENT |
| MEDIUM | tests/test_evals.py | 1367 | # changing. `laya-evals run --batch-size` could bound a pass but not group one, so the harness that | COMMENT |
| MEDIUM | tests/test_evals.py | 1473 | # reads the same numbers at every threshold. What the harness forwards is the *claim* the | COMMENT |
| MEDIUM | tests/test_evals.py | 1477 | # thing this harness exists to be. | COMMENT |
| MEDIUM | tests/test_evals.py | 1980 | # Why the runner records it itself: the counters under test are the harness's own account, so | COMMENT |
| MEDIUM | .github/workflows/ci.yml | 153 | # The eval harness needs numpy and laya only, so it stays a separate, weight-free job: metric | COMMENT |
| MEDIUM | .github/workflows/ci.yml | 190 | # `test_presentation_checks.py` and `test_act_head_eval.py` guard the eval harness's own | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 88 | # `pip install laya[crewai]` adds the CrewAI multi-agent delegation router (laya.integrations). | COMMENT |
| MEDIUM | pyproject.toml | 93 | # `pip install laya[agno]` adds the Agno multi-agent team routing and guardrail integration (laya.integrations). | COMMENT |
| MEDIUM | README.md | 1217 | # 2. Inline prompt guardrails | COMMENT |
| MEDIUM | research/scripts/bench_apps.py | 189 | # ------------------------------------- 3 & 5. guardrails + moderation (toxic-chat, HELD OUT) | COMMENT |
| MEDIUM | research/scripts/bench_apps.py | 221 | # ---------------------------------------------------------- 4. RAG passage filter | COMMENT |
| MEDIUM | laya/mcp/server.py | 95 | # Shared usage guardrails for the decision tools. laya_status reports instead | COMMENT |
| MEDIUM | tests/test_llamaindex.py | 517 | # arguments since #530 / #532; this surface forwarded only `model`, so a RAG pipeline choosing | COMMENT |
| MEDIUM | tests/test_question_token_reuse.py | 78 | # The real undecorated method is the same orchestration without reuse. | COMMENT |
| MEDIUM | tests/test_batch.py | 67 | # --------------------------------------------------------------- orchestration (weight-free fake) | COMMENT |
| MEDIUM | tests/test_batch.py | 440 | # Fake CUDA device and autocast so this orchestration test also runs in CPU-only CI. | COMMENT |
| MEDIUM | tests/test_mcp.py | 3232 | # The guardrails constant is on the decision tools only; | COMMENT |
| MEDIUM | laya-dotnet/README.md | 618 | // Prompt guardrails | COMMENT |
| MEDIUM | laya-dotnet/README.md | 654 | ## Hosting: lifetime, threading and dependency injection | COMMENT |
| MEDIUM | laya-dotnet/src/Laya/LayaPresets.cs | 87 | /// <summary>Preset questions for real-time LLM input guardrails.</summary> | COMMENT |
| MEDIUM | docs/use-cases.md | 227 | ## 4. Air-Gapped Edge RAG Router | COMMENT |
| MEDIUM | docs/hooks/patterns.md | 11 | - [Guardrails](#guardrails) | CODE |
| MEDIUM⚡ | examples/llamaindex_quickstart.py | 62 | # 1. Sub-35ms Single-Choice RAG Selector (Replaces LLMSingleSelector) | COMMENT |
| MEDIUM | laya-go/presets/presets.go | 99 | // Guard is real-time guardrails on text going into a language model: | COMMENT |
| MEDIUM | laya-rust/README.md | 279 | // Prompt guardrails. | COMMENT |
| MEDIUM | laya-rust/src/laya_presets.rs | 160 | /// Preset questions for real-time LLM input guardrails. Ports `guard_questions()`. | COMMENT |
| MEDIUM | laya-java/README.md | 397 | ## A state longer than the context window | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | laya/common.py | 157 | CODE | |
| LOW | laya/agent.py | 2167 | CODE | |
| LOW | laya/agent.py | 536 | CODE | |
| LOW | laya/agent.py | 1470 | CODE | |
| LOW | laya/agent.py | 1664 | CODE | |
| LOW | laya/agent.py | 1961 | CODE | |
| LOW | laya/router.py | 696 | CODE | |
| LOW | laya/router.py | 1203 | CODE | |
| LOW | laya/router.py | 1340 | CODE | |
| LOW | laya/router.py | 1469 | CODE | |
| LOW | laya/router.py | 1672 | CODE | |
| LOW | laya/onnx_agent.py | 87 | CODE | |
| LOW | laya/onnx_agent.py | 298 | CODE | |
| LOW | laya/onnx_agent.py | 342 | CODE | |
| LOW | laya/onnx_agent.py | 450 | CODE | |
| LOW | laya/tl_kernels.py | 41 | CODE | |
| LOW | laya/mcp/server.py | 444 | CODE | |
| LOW | laya/mcp/server.py | 498 | CODE | |
| LOW | laya/mcp/remote.py | 178 | CODE | |
| LOW | laya/mcp/remote.py | 211 | CODE | |
| LOW | laya/mcp/tools.py | 409 | CODE | |
| LOW | laya/mcp/tools.py | 703 | CODE | |
| LOW | laya/mcp/tools.py | 888 | CODE | |
| LOW | laya/mcp/tools.py | 1122 | CODE | |
| LOW | laya/integrations/crewai.py | 149 | CODE | |
| LOW | laya/integrations/crewai.py | 246 | CODE | |
| LOW | laya/integrations/crewai.py | 293 | CODE | |
| LOW | laya/integrations/crewai.py | 498 | CODE | |
| LOW | laya/integrations/tools.py | 204 | CODE | |
| LOW | laya/integrations/tools.py | 247 | CODE | |
| LOW | laya/integrations/agno.py | 372 | CODE | |
| LOW | laya/integrations/agno.py | 455 | CODE | |
| LOW | laya/integrations/agno.py | 747 | CODE | |
| LOW | laya/integrations/llamaindex.py | 145 | CODE | |
| LOW | laya/integrations/llamaindex.py | 242 | CODE | |
| LOW | laya/integrations/llamaindex.py | 290 | CODE | |
| LOW | laya/integrations/llamaindex.py | 459 | CODE | |
| LOW | laya/integrations/llamaindex.py | 621 | CODE | |
| LOW | laya/integrations/langchain.py | 158 | CODE | |
| LOW | laya/integrations/langchain.py | 256 | CODE | |
| LOW | laya/integrations/langchain.py | 308 | CODE | |
| LOW | laya/integrations/langchain.py | 475 | CODE | |
| LOW | laya/integrations/langchain.py | 643 | CODE | |
| LOW | laya/integrations/langchain.py | 850 | CODE | |
| LOW | laya/integrations/langchain.py | 1000 | CODE | |
| LOW | laya/integrations/langchain.py | 1179 | CODE | |
| LOW | tests/test_mcp.py | 1929 | CODE | |
| LOW | sdk/python/src/laya_client/client.py | 53 | CODE | |
| LOW | sdk/python/src/laya_client/client.py | 66 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | laya-dotnet/tools/dump_differential_golden.py | 66 | IDENTIFIERS = ["os.path", "user@example.com", "https://example.com/a/b?c=d", "foo_bar", "my-var.name", | CODE |
| LOW | laya-dotnet/tools/dump_differential_golden.py | 514 | sender = pick([None, "", "user@example.com"]) | CODE |
| LOW | laya-dotnet/tools/routing_cases.py | 1025 | ("with_sender", "Refund request", "Please refund invoice 4411.", "user@example.com", True, {}), | CODE |
| LOW | laya-dotnet/tools/routing_cases.py | 1027 | ("extra_fields_kept_when_not_none", "Ticket", "Body text.", "user@example.com", True, {"priority": "high", "ticket_i | CODE |
| LOW⚡ | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 101 | var state = LayaEmail.State("Refund request", "Please refund invoice 4411.", sender: "user@example.com"); | CODE |
| LOW⚡ | laya-dotnet/tests/Laya.Tests/LayaEmailTests.cs | 102 | Assert.Equal("user@example.com", state["from"]); | CODE |
| LOW | …otnet/tests/Laya.Tests/golden/routing/email_probe.json | 1551 | "sender": "user@example.com", | CODE |
| LOW | …otnet/tests/Laya.Tests/golden/routing/email_probe.json | 1557 | "from": "user@example.com" | CODE |
| LOW | …otnet/tests/Laya.Tests/golden/routing/email_probe.json | 1576 | "sender": "user@example.com", | CODE |
| LOW | …otnet/tests/Laya.Tests/golden/routing/email_probe.json | 1585 | "from": "user@example.com", | CODE |
| LOW | laya-go/shortlist/shortlist_test.go | 137 | q := choiceOf(t, "placeholder", c.Must("criteria")) | CODE |
| LOW | laya-rust/tools/dump_differential_golden.py | 79 | IDENTIFIERS = ["os.path", "user@example.com", "https://example.com/a/b?c=d", "foo_bar", "my-var.name", | CODE |
| LOW | laya-rust/tools/dump_differential_golden.py | 550 | sender = pick([None, "", "user@example.com"]) | CODE |
| LOW | laya-rust/tools/routing_cases.py | 1055 | ("with_sender", "Refund request", "Please refund invoice 4411.", "user@example.com", True, {}), | CODE |
| LOW | laya-rust/tools/routing_cases.py | 1057 | ("extra_fields_kept_when_not_none", "Ticket", "Body text.", "user@example.com", True, {"priority": "high", "ticket_i | CODE |
| LOW | laya-rust/tests/golden/routing/email_probe.json | 1551 | "sender": "user@example.com", | CODE |
| LOW | laya-rust/tests/golden/routing/email_probe.json | 1557 | "from": "user@example.com" | CODE |
| LOW | laya-rust/tests/golden/routing/email_probe.json | 1576 | "sender": "user@example.com", | CODE |
| LOW | laya-rust/tests/golden/routing/email_probe.json | 1585 | "from": "user@example.com", | CODE |
| LOW | …est/java/com/convaiinnovations/laya/ShortlistTest.java | 195 | assertEquals(expectedOptions, Question.choice("placeholder", criteria).renderOptions(), | CODE |
| LOW | …rc/main/java/com/convaiinnovations/laya/Shortlist.java | 189 | List<String> optionTexts = Question.choice("placeholder", options).renderOptions(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | laya/router.py | 1477 | Route, then scan every window of the state instead of only its first one. `predict` scores a state from a singl | STRING |
| HIGH | laya/integrations/agno.py | 509 | Route *message* to the best-matching agent in ~33 ms. Args: message: A plain string, an Agno ``RunR | STRING |
| HIGH | laya/integrations/agno.py | 797 | Screen *message* against safety policies in ~33 ms. Args: message: A plain string, Agno ``RunRespon | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | laya-dotnet/MODELS.md | 27 | ### Step 1: Create a virtual environment and install | COMMENT |
| LOW | laya-dotnet/MODELS.md | 98 | ### Step 4: Export | COMMENT |
| LOW | laya-dotnet/MODELS.md | 136 | ### Step 5: Point the SDK at the export | COMMENT |
| LOW | laya-dotnet/MODELS.md | 176 | ### Step 6: Check it works | COMMENT |
| LOW | laya-rust/MODELS.md | 27 | ### Step 1: Create a virtual environment and install | COMMENT |
| LOW | laya-rust/MODELS.md | 98 | ### Step 4: Export | COMMENT |
| LOW | laya-rust/MODELS.md | 136 | ### Step 5: Point the SDK at the export | COMMENT |
| LOW | laya-rust/MODELS.md | 176 | ### Step 6: Check it works | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | compose.http.yaml | 12 | # This file is additive. `laya` in compose.yaml still runs the one-shot SDK quickstart and | COMMENT |
| MEDIUM | tests/test_onnx_export_batch.py | 113 | # This file is the only place in the repository that puts torch, onnxruntime and onnxruntime's | COMMENT |
| MEDIUM | tests/test_onnx_export_batch.py | 902 | # This file is the one place in the suite that puts torch, onnxruntime and onnxruntime's quantizer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | laya/hooks.py | 217 | def set_default_hooks(hooks=None, on_predict_start=None, on_predict_end=None) -> None: | CODE |
| LOW | laya/__init__.py | 100 | __all__ = [ | CODE |
| LOW | laya/structured.py | 473 | __all__ = [ | CODE |
| LOW | laya/backends/__init__.py | 113 | __all__ = ["Backend", "BackendUnavailable", "NAMES", "auto_policy", "bucket_shape", | CODE |
| LOW | laya/mcp/__init__.py | 16 | __all__ = ["device", "remote", "server", "tools"] | CODE |
| LOW | laya/integrations/tools.py | 55 | __all__ = [ | CODE |
| LOW | laya/integrations/__init__.py | 33 | __all__ = [ | CODE |
| LOW | sdk/python/src/laya_client/__init__.py | 8 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | laya-dotnet/tools/export_onnx.py | 613 | # Check if there is a safetensors file alongside the onnx output (for local-path exports). | COMMENT |
| LOW | laya-rust/tools/export_onnx.py | 549 | # Check if there is a safetensors file alongside the onnx output (for local-path exports). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | laya-ts/tests/state-script-fields.test.ts | 8 | const NOTE = "Please read the attached invoice carefully and let me know if you need anything else. ".repeat(20); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sdk/python/tests/_support.py | 38 | def handle_request(self): | CODE |