AI Slop Code Risk Monitor

UKGovernmentBEIS/inspect_ai

SlopCodeMonitor badge for UKGovernmentBEIS/inspect_ai Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Inspect: A framework for large language model evaluations

30.3 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for UKGovernmentBEIS/inspect_ai, a Python project with 3,149 GitHub stars. SynthScan examined 789,766 lines of code across 2060 source files, recording 19678 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 30.3 (High 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.

30.3
Adjusted Signal
30.3
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
3.1K
Stars
Python
Language
789.8K
Lines of Code
2.1K
Files
19.7K
Pattern Hits
2026-10-31
Scan Date
0.31
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 59.6/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 11.9/100 · LOW

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

Agent Over-Engineering Ratio 71.2/100 · HIGH

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

PR Review Velocity Impact 81.0/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 6HIGH 623MEDIUM 1678LOW 17371

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers14023 hits · 11896 pts
SeverityFileLineSnippetContext
LOWdesign/malicious-log-code-execution.md426def ensure_metrics_registered(CODE
LOWdesign/malicious-log-code-execution.md689def _instantiate_registry_object(CODE
LOWdesign/eval-sharding-implementation.md376async def merge_eval_log_shards_async(...same parameters...) -> ShardMergeResult: ...CODE
LOWdesign/ctl/config-log-persistence.md161def effective_generate_config(log: EvalLog) -> GenerateConfig: ...CODE
LOWtests/test_dependency_cooldown.py112def test_provider_packages_are_exempt() -> None:CODE
LOWtests/test_dependency_cooldown.py121def test_dependabot_cooldown_matches_pyproject() -> None:CODE
LOW⚡tests/test_dependency_cooldown.py149def test_setuptools_scm_fallback_version_is_the_released_version() -> None:CODE
LOW⚡tests/test_dependency_cooldown.py156def test_dependencies_are_declared_in_pyproject() -> None:CODE
LOW⚡tests/test_dependency_cooldown.py164def test_sync_models_script_follows_the_cooldown() -> None:CODE
LOWtests/test_dependency_cooldown.py188def test_pinned_uv_versions_meet_required_version() -> None:CODE
LOWtests/test_dependency_cooldown.py208def test_no_workflow_uses_the_build_and_inspect_action() -> None:CODE
LOWtests/test_dependency_cooldown.py215def test_pre_commit_hooks_run_locked_tools() -> None:CODE
LOW⚡tests/test_dependency_cooldown.py233def test_no_workflow_uses_the_pre_commit_action() -> None:CODE
LOW⚡tests/test_dependency_cooldown.py240def test_locked_jobs_install_from_the_lockfile(name: str, sync: str) -> None:CODE
LOW⚡tests/test_dependency_cooldown.py245def test_sandbox_tools_unit_installs_from_its_hashed_lock() -> None:CODE
LOWtests/test_dependency_cooldown.py288def test_pip_installs_are_dependency_free_or_hashed() -> None:CODE
LOWtests/test_dependency_cooldown.py301def test_no_workflow_opts_out_of_the_cooldown() -> None:CODE
LOWtests/test_task_cancel.py34def test_abort_cancel_produces_error_status() -> None:CODE
LOWtests/test_task_cancel.py93def test_abort_cancel_not_retried_without_task_retries() -> None:CODE
LOWtests/test_task_cancel.py166def test_score_resolution_cancel_completes_eval() -> None:CODE
LOWtests/test_task_cancel.py223def test_error_resolution_cancel_completes_eval() -> None:CODE
LOWtests/test_task_cancel.py265def test_error_resolution_rejected_when_samples_fail_on_error() -> None:CODE
LOWtests/test_task_cancel.py274 def error_resolution_rejected_solver():CODE
LOWtests/test_task_cancel.py303def test_error_resolution_downgraded_for_materializing_fail_on_error_sample() -> None:CODE
LOWtests/test_task_cancel.py329 def downgrade_resolution_solver():CODE
LOWtests/test_task_cancel.py366def test_drain_resolution_cancels_materializing_sample() -> None:CODE
LOWtests/test_task_cancel.py446def test_sample_cancelled_interrupt_action() -> None:CODE
LOWtests/test_task_cancel.py455 def cancelled_interrupt_solver():CODE
LOWtests/test_task_cancel.py493def test_score_resolution_sweep_preserves_cancelled_sample() -> None:CODE
LOWtests/test_task_cancel.py506 def cancelled_then_score_solver():CODE
LOWtests/test_task_cancel.py543def test_interrupt_in_retry_drain_window_resolves_cancelled() -> None:CODE
LOWtests/test_task_cancel.py571 def drain_window_error_solver():CODE
LOWtests/test_task_cancel.py642def test_external_interrupt_with_pending_resolution_logs_cancelled(CODE
LOWtests/test_task_cancel.py836def test_sample_cancel_while_initializing_resolves_at_start(CODE
LOWtests/test_task_cancel.py917def test_sample_cancel_while_initializing_wins_over_later_task_score(CODE
LOWtests/test_task_cancel.py966def test_sample_cancel_while_initializing_then_init_failure_abandons(CODE
LOWtests/test_task_cancel.py1044def test_errored_attempt_marked_retry_pending() -> None:CODE
LOWtests/test_eval_set_capture.py68def test_eval_set_capture_manifest(CODE
LOWtests/test_eval_set_capture.py108def test_eval_set_capture_limit_and_epochs(CODE
LOWtests/test_eval_set_capture.py126def test_eval_set_capture_max_samples(CODE
LOWtests/test_eval_set_capture.py137def test_eval_set_capture_model_roles(CODE
LOWtests/test_eval_set_capture.py148def test_eval_set_capture_model_roles_list(CODE
LOWtests/test_eval_set_capture.py162def test_eval_set_capture_adhoc_task(CODE
LOWtests/test_eval_set_capture.py191def test_eval_set_capture_task_source_error(CODE
LOWtests/test_eval_set_capture.py204def test_eval_set_capture_subprocess_protocol(tmp_path: Path) -> None:CODE
LOWtests/test_eval_set_capture.py347def test_eval_set_capture_schema_stability() -> None:CODE
LOW⚡tests/test_sample_limits.py183def test_message_limit_generate():CODE
LOW⚡tests/test_sample_limits.py187def test_message_limit_append():CODE
LOW⚡tests/test_sample_limits.py191def test_message_limit_overwrite():CODE
LOW⚡tests/test_sample_limits.py195def test_message_limit_reached_before_assistant_message():CODE
LOW⚡tests/test_sample_limits.py1724def test_live_openai_working_time() -> None:CODE
LOW⚡tests/test_sample_limits.py1729def test_live_anthropic_working_time() -> None:CODE
LOW⚡tests/test_sample_limits.py1734def test_live_google_working_time() -> None:CODE
LOWtests/test_sample_limits.py112def looping_concurrecy_solver():CODE
LOWtests/test_sample_limits.py211def test_message_limit_does_not_apply_to_scorer():CODE
LOWtests/test_sample_limits.py260def test_token_limit_reached_exactly_refuses_next_generate():CODE
LOWtests/test_sample_limits.py281def test_token_limit_does_not_apply_to_scorer():CODE
LOWtests/test_sample_limits.py327def test_output_token_limit_string_form():CODE
LOWtests/test_sample_limits.py362def test_token_limit_type_absent_for_int_limit():CODE
LOWtests/test_sample_limits.py409def test_turn_limit_does_not_apply_to_scorer():CODE
13963 more matches not shown…
Decorative Section Separators1362 hits · 4987 pts
SeverityFileLineSnippetContext
MEDIUMdesign/s3-incremental-log-flush.md900#480 (independent) ──────────────────────────────────────┐COMMENT
MEDIUMtests/test_task_cancel.py721# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_task_cancel.py724# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py451# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py469# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py140# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py142# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py314# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py316# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py527# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py529# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py816# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py818# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py1018# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py1020# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py1148# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_release_workflow.py1150# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_release_workflow.py603# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_release_workflow.py605# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_ctl.py8989# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_ctl.py8991# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py108# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py110# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py219# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py221# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py282# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py284# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py443# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py445# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py585# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py587# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py991# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py993# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1069# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1071# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1397# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1399# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1436# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_pause.py1438# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py31# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py33# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py132# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py134# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py217# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_buffer.py219# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py382# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py384# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py463# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py465# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py1190# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_score.py1192# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py1343# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py1345# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py1713# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_score.py1715# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/_control/test_server.py1756# ---------------------------------------------------------------------------COMMENT
1302 more matches not shown…
Empty Error Handlers319 hits · 1595 pts
SeverityFileLineSnippetContext
HIGHtests/test_task_cancel.py708except KeyboardInterrupt:CODE
HIGHtests/conftest.py1204except BaseException:CODE
HIGHtests/test_eval_set.py216except Exception:CODE
HIGHtests/test_eval_set.py3331except KeyboardInterrupt:CODE
HIGHtests/test_eval_set.py885except KeyboardInterrupt:CODE
HIGHtests/test_cancellation_logging.py300except KeyboardInterrupt:CODE
HIGHtests/test_model_env_mismatch.py101except Exception:CODE
HIGHtests/test_model_env_mismatch.py279except (ValueError, PrerequisiteError):CODE
HIGHtests/test_model_env_mismatch.py50except Exception:CODE
HIGHtests/test_model_env_mismatch.py136except Exception:CODE
HIGHtests/test_model_env_mismatch.py168except Exception:CODE
HIGHtests/test_model_env_mismatch.py221except Exception:CODE
HIGHtests/test_model_env_mismatch.py247except Exception:CODE
HIGHtests/tools/test_tools_bridge.py1033except Exception:CODE
HIGHtests/tools/test_tools_bridge.py1724except Exception:CODE
HIGHtests/tools/test_tools_bridge.py1908except Exception:CODE
HIGHtests/tools/test_mcp_tools.py180except anyio.ClosedResourceError:CODE
HIGHtests/tools/test_tool_with.py34except Exception:CODE
HIGHtests/util/test_media_resolver.py57except ValueError:CODE
HIGHtests/util/test_asyncfiles.py429except EndOfStream:CODE
HIGHtests/util/test_asyncfiles.py455except EndOfStream:CODE
HIGHtests/input/test_input_acp.py104except ValueError:CODE
HIGHtests/agent/deepagent/test_agent_tool.py266except Exception:CODE
HIGHtests/agent/test_channel/test_channel.py202except BaseException:CODE
HIGHtests/agent/test_acp/test_span_boundary.py184except Exception:CODE
HIGHtests/agent/test_acp/test_server_dispatch.py71except OSError:CODE
HIGHtests/agent/test_acp/test_server_dispatch.py221except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_server_dispatch.py226except Exception:CODE
HIGHtests/agent/test_acp/test_server_dispatch.py64except OSError:CODE
HIGHtests/agent/test_acp/test_server_forwarding.py775except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_server_forwarding.py779except Exception:CODE
HIGHtests/agent/test_acp/test_server_forwarding.py89except OSError:CODE
HIGHtests/agent/test_acp/test_server_forwarding.py203except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_server_forwarding.py208except Exception:CODE
HIGHtests/agent/test_acp/test_server_forwarding.py82except OSError:CODE
HIGHtests/agent/test_acp/test_server_forwarding.py843except Exception:CODE
HIGHtests/agent/test_acp/test_standard_acp_client.py81except OSError:CODE
HIGHtests/agent/test_acp/test_standard_acp_client.py192except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_standard_acp_client.py197except Exception:CODE
HIGHtests/agent/test_acp/test_standard_acp_client.py74except OSError:CODE
HIGHtests/agent/test_acp/test_raw_events.py87except OSError:CODE
HIGHtests/agent/test_acp/test_raw_events.py174except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_raw_events.py179except Exception:CODE
HIGHtests/agent/test_acp/test_raw_events.py80except OSError:CODE
HIGHtests/agent/test_acp/test_raw_events.py351except asyncio.TimeoutError:CODE
HIGHtests/agent/test_acp/test_action_methods.py555except OSError:CODE
HIGHtests/agent/test_acp/test_action_methods.py610except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_action_methods.py615except Exception:CODE
HIGHtests/agent/test_acp/test_action_methods.py548except OSError:CODE
HIGHtests/agent/test_acp/test_discovery.py72except OSError:CODE
HIGHtests/agent/test_acp/test_discovery.py68except OSError:CODE
HIGHtests/agent/test_acp/test_elicitation_e2e.py87except OSError:CODE
HIGHtests/agent/test_acp/test_elicitation_e2e.py163except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_elicitation_e2e.py168except Exception:CODE
HIGHtests/agent/test_acp/test_elicitation_e2e.py83except OSError:CODE
HIGHtests/agent/test_acp/test_stdio_bridge.py69except OSError:CODE
HIGHtests/agent/test_acp/test_stdio_bridge.py65except OSError:CODE
HIGHtests/agent/test_acp/test_server_session_info.py59except OSError:CODE
HIGHtests/agent/test_acp/test_server_session_info.py153except (asyncio.CancelledError, Exception):CODE
HIGHtests/agent/test_acp/test_server_session_info.py158except Exception:CODE
259 more matches not shown…
Unused Imports1487 hits · 1218 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py31CODE
LOWtests/test_release_workflow.py10CODE
LOWtests/test_eval_set_scanner.py3244CODE
LOWtests/test_disk_sample_store.py23CODE
LOWtests/test_disk_sample_store.py24CODE
LOWtests/_control/test_state.py20CODE
LOWtests/_control/test_cancel.py22CODE
LOWtests/tools/test_mcp_session_isolation.py14CODE
LOWtests/tools/test_tool_parse.py20CODE
LOWtests/tools/test_sandbox_docker_and_local.py20CODE
LOW…ools/sandbox_tools_utils/test_sandbox_tools_digests.py9CODE
LOWtests/checkpoint/test_eval_checkpoints.py3CODE
LOWtests/checkpoint/test_sample_checkpoints.py3CODE
LOWtests/checkpoint/test_resume_copy.py11CODE
LOWtests/checkpoint/test_resolve.py3CODE
LOWtests/checkpoint/docker_projects.py3CODE
LOWtests/checkpoint/conftest.py11CODE
LOWtests/checkpoint/hydrate_interrupt_harness.py27CODE
LOWtests/checkpoint/test_checkpoint_scoring_resume_e2e.py23CODE
LOWtests/checkpoint/resume_kill_thinking_harness.py35CODE
LOWtests/checkpoint/test_parse.py3CODE
LOWtests/checkpoint/test_staging_dir.py3CODE
LOWtests/checkpoint/test_snapshot_strategy.py15CODE
LOWtests/checkpoint/test_sandbox_dir.py12CODE
LOWtests/checkpoint/test_current_checkpointer_post_exit.py31CODE
LOWtests/checkpoint/test_sandbox_restic_repo.py20CODE
LOWtests/checkpoint/test_sample_runtime.py3CODE
LOWtests/checkpoint/test_layout_paths.py3CODE
LOWtests/checkpoint/test_host_egress.py9CODE
LOWtests/checkpoint/test_checkpoint_e2e.py40CODE
LOWtests/checkpoint/test_checkpointer.py10CODE
LOWtests/checkpoint/test_fs_copy_s3.py12CODE
LOWtests/checkpoint/resume_scoring_kill_harness.py24CODE
LOWtests/checkpoint/test_host_egress_s3.py9CODE
LOWtests/checkpoint/resume_kill_harness.py21CODE
LOWtests/checkpoint/test_sandbox_egress_restic.py24CODE
LOWtests/checkpoint/test_restore_repo.py11CODE
LOWtests/checkpoint/test_schemas.py9CODE
LOWtests/checkpoint/test_sandbox_egress_extract.py14CODE
LOWtests/checkpoint/test_sandbox_paths.py3CODE
LOWtests/checkpoint/test_normalize.py10CODE
LOWtests/checkpoint/test_restore_scope.py9CODE
LOWtests/util/test_restic_ops.py15CODE
LOWtests/util/test_zipfile_multiframe.py8CODE
LOWtests/util/test_download.py3CODE
LOWtests/util/test_restic_summary.py9CODE
LOWtests/util/test_store_from_events.py7CODE
LOWtests/util/test_async_zip.py7CODE
LOWtests/util/test_async_zip.py22CODE
LOWtests/util/test_limit_working.py1CODE
LOWtests/util/test_compression_transcoding.py3CODE
LOWtests/util/test_restic_binary.py19CODE
LOWtests/input/test_input_acp.py11CODE
LOWtests/input/test_input_panel.py11CODE
LOWtests/agent/test_bridge_additional_tools.py16CODE
LOWtests/agent/test_bridge_agent_message.py25CODE
LOWtests/agent/test_bridge_google_messages.py18CODE
LOWtests/agent/test_bridge_function_call_id.py11CODE
LOWtests/agent/test_bridge_tool_search.py9CODE
LOWtests/agent/test_bridge_provider_errors.py10CODE
1427 more matches not shown…
Cross-Language Confusion121 hits · 686 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_eval_set_overrides.py677 """`model_dump_json()` writes every unset field as null, and that has to be readable.STRING
HIGHtests/test_eval_set_overrides.py701 Read as an instruction, `{"max_connections": null}` replaced a definition'sSTRING
HIGHtests/test_docker_workflow.py44 'inspect-tool-support && touch "$CANARY"',CODE
HIGH⚡tests/_control/test_ctl.py662 # a running sample with nothing pending (activity null) keeps theCOMMENT
HIGHtests/_control/test_log_dir.py331 # live-only state is null, not a false zeroCOMMENT
HIGHtests/tools/sandbox_tools_utils/test_sandbox_tools.py830 "input": f"echo {flag} > /flag && chmod 400 /flag; ls -al /flag && cat /flag",CODE
HIGHtests/tools/sandbox_tools_utils/test_sandbox_tools.py934 f"touch {SANDBOX_TOOLS_DIR}/planted && echo CREATED; "CODE
HIGHtests/tools/sandbox_tools_utils/test_sandbox_tools.py935 f"mv {SANDBOX_TOOLS_DIR} {SANDBOX_TOOLS_DIR}.moved && echo MOVED; "CODE
HIGHtests/tools/sandbox_tools_utils/test_sandbox_tools.py1027 "input": "command -v gzip || echo no-gzip; echo probe-done",CODE
HIGH…ls/sandbox_tools_utils/test_sandbox_tools_injection.py152TAR_XZF_STDIN = "tar xzf - || { cat >/dev/null; exit 1; }"CODE
HIGH…ls/sandbox_tools_utils/test_sandbox_tools_injection.py153TAR_XF_STDIN = "tar xf - || { cat >/dev/null; exit 1; }"CODE
HIGH⚡tests/util/test_store_from_events.py516 """Add operation should include value even when it's None (explicit null)."""STRING
HIGH⚡tests/util/test_format.py105 text = "echo \\x1b && printf '\\n'\n\tdone"CODE
HIGHtests/util/sandbox/test_docker_read_file.py659 'set -e; dd if=/dev/zero of="$1" bs=1048576 count=32 2>/dev/null; 'CODE
HIGHtests/util/sandbox/test_privileged.py290 'mkdir -p -- "$1" && tar --version >/dev/null && sh -c \'printf %s "$PATH"\'',CODE
HIGHtests/util/sandbox/test_privileged.py601 'tar --version >/dev/null && rm -rf /root/pinned-check && printf %s "$PATH"',CODE
HIGHtests/util/sandbox/test_privileged.py615 ["sh", "-c", "tar --version >/dev/null && cat > ./ok"],CODE
HIGH⚡tests/util/sandbox/test_framework_directory.py740 local, str(target), ["sh", "-c", "pwd -P && touch marker"], user=NoneCODE
HIGHtests/util/sandbox/test_framework_directory.py770 'mv -- "$1" "$2" && ln -s -- "$3" "$1" && touch ./marker && pwd -P',CODE
HIGHtests/util/sandbox/test_sandbox_service.py1214_DECOY = "mkdir -p /tmp/decoy && chmod 777 /tmp/decoy && touch /tmp/decoy/sentinel"CODE
HIGHtests/util/sandbox/test_sandbox_service.py1308 f"mkdir -m 700 {svc}/responses && echo stale > {svc}/responses/stale.json",CODE
HIGHtests/util/sandbox/test_docker_compose_config.py632 'rmdir /host/data && ln -s "$1" /host/data',CODE
HIGHtests/dataset/test_dataset.py918 '{"trigger": null, "max_consecutive_failures": 0}', id="json-string-null"CODE
HIGHtests/agent/test_bridge_function_call_id.py21 """Each function_call item gets a non-null, unique id; call_id round-trips."""STRING
HIGH⚡tests/agent/test_agent_human.py1072 "touch /root/target && chmod 644 /root/target && "CODE
HIGH⚡tests/agent/test_agent_human.py1073 "rm /home/nonroot/.bashrc && ln -s /root/target /home/nonroot/.bashrc",CODE
HIGHtests/agent/test_agent_human.py1000 docker_sandbox, "cat /root/.bashrc 2>/dev/null || true"CODE
HIGHtests/agent/test_agent_human.py1039 f"mkdir -p /home/nonroot/decoy && ln -s /home/nonroot/decoy {HUMAN_AGENT_DIR}",CODE
HIGHtests/agent/test_agent_human.py1055 f"ls -A {HUMAN_AGENT_DIR} /home/nonroot/decoy 2>/dev/null || true",CODE
HIGHtests/scorer/test_metric.py210 Serialized as JSON constants (NaN/Infinity) rather than null, via bothSTRING
HIGH⚡tests/scorer/test_reducers.py755 # With fewer than k scored epochs the estimator is undefined, so theCOMMENT
HIGH⚡tests/scorer/test_math.py630 assert plain.equals(latex)CODE
HIGHtests/_cli/test_util.py71 "critic={model: mockllm/model, temperature: 0.2, model_args: {custom_outputs: null}}",CODE
HIGHtests/_cli/test_util.py223 "{model: mockllm/model, model_args: {custom_outputs: null}, "CODE
HIGHtests/model/providers/test_anthropic.py3462 'head -c 9 /dev/urandom | base64 > /tmp/seed && echo "seed-$(cat /tmp/seed)"'CODE
HIGHtests/model/providers/test_anthropic.py3464 pending_cmd = 'sleep 5 && echo "marker-$(cat /tmp/seed)"'CODE
HIGHtests/model/providers/test_bedrock_structured_output.py38 nickname: Optional[str] = None # renders as anyOf:[string, null]CODE
HIGH…ts/model/providers/test_anthropic_cache_diagnostics.py365 """`{cache_miss_reason: null}` means comparison still pending — no warning."""STRING
HIGHtests/model/providers/test_litellm_proxy.py2024 '"invalid_request_error", "param": null, "code": "invalid_prompt"}}\n'CODE
HIGHtests/model/providers/test_litellm_proxy.py2439 'litellm.BadRequestError: MetaException - {"error":{"code":null,'CODE
HIGHtests/model/providers/test_openai_responses.py360 Meta's Model API streams a refusal-only response whose `model` is null;STRING
HIGH⚡tests/log/test_message_pool.py1052 Regression: if persistence stores call_refs as [] instead of null,STRING
HIGHtests/log/test_eval_log.py1652 null_value = re.compile(r'"value":\s*(null|\[\s*null|\{"a":\s*null)')CODE
HIGHtests/_eval/task/test_hf.py382 # hard-fails under the C locale (ascii) and cp1252 (0x81 undefined);COMMENT
HIGH.agents/skills/ci-perf/scripts/test_ci_perf.py1226# runner_id 0 (not null), no steps, and a shared started_at across jobs. RunCOMMENT
HIGH⚡.agents/skills/ci-perf/scripts/test_ci_perf.py1257 """A queued-cancel with runner_name "" (not null) adds no runner time.STRING
HIGH⚡.agents/skills/ci-perf/scripts/test_ci_perf.py1259 The live shape reports an empty runner_name, not null, so these jobs mustSTRING
HIGH⚡…sandbox_tools/tests/test_text_editor_validated_path.py329 b'{"/x": [null]}',CODE
HIGHsrc/inspect_sandbox_tools/tests/test_exec_remote.py292 "command": "echo hello_from_kill && echo err_from_kill >&2 && sleep 100"CODE
HIGHsrc/inspect_sandbox_tools/tests/test_exec_remote.py412 "params": {"command": "echo stdout_msg && echo stderr_msg >&2"},CODE
HIGH…_sandbox_tools/tests/test_mcp_server_session_reader.py31 b'{"jsonrpc":"2.0","id":null,'CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py10 sd.push("A")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py19 sd.push("A")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py25 sd.push("B")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py34 sd.push("A")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py39 sd.push("B")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py48 sd.push("A")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py51 sd.push("B")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py54 sd.push("C")CODE
HIGH⚡…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py63 sd.push("data")CODE
61 more matches not shown…
Deep Nesting674 hits · 564 pts
SeverityFileLineSnippetContext
LOWtests/test_dependency_cooldown.py77CODE
LOWtests/conftest.py610CODE
LOWtests/test_eval_set_scanner.py1182CODE
LOWtests/test_sandbox_tools_version_gate.py323CODE
LOWtests/test_sandbox_tools_version_gate.py340CODE
LOWtests/_control/test_pause.py1441CODE
LOWtests/_control/test_pause.py1471CODE
LOWtests/_control/test_pause.py1472CODE
LOWtests/_control/test_limits.py1257CODE
LOWtests/_control/test_requeue.py1621CODE
LOWtests/tools/test_mcp_tools.py87CODE
LOWtests/tools/test_mcp_tools.py767CODE
LOWtests/tools/test_mcp_tools.py128CODE
LOWtests/tools/test_mcp_tools.py137CODE
LOWtests/tools/test_skill.py614CODE
LOWtests/tools/test_skill.py928CODE
LOWtests/tools/test_skill.py1234CODE
LOWtests/checkpoint/test_checkpoint_e2e.py179CODE
LOWtests/util/test_asyncfiles.py3375CODE
LOWtests/util/test_limit_working.py609CODE
LOWtests/util/test_limit_working.py905CODE
LOWtests/util/test_limit_working.py1031CODE
LOWtests/util/test_limit_working.py1115CODE
LOWtests/util/test_limit_working.py1612CODE
LOWtests/util/test_json.py331CODE
LOW…/util/sandbox/test_multi_sandbox_context_management.py46CODE
LOWtests/util/sandbox/test_docker_cleanup.py272CODE
LOWtests/util/sandbox/test_local_sandbox.py29CODE
LOWtests/agent/test_agent_compaction.py220CODE
LOWtests/agent/test_bridge_provider_errors.py1172CODE
LOWtests/agent/test_bridge_provider_errors.py1173CODE
LOWtests/agent/test_agent_react.py172CODE
LOWtests/agent/test_agent_react.py173CODE
LOWtests/agent/test_bridge_approval.py5040CODE
LOWtests/agent/test_channel/test_channel.py134CODE
LOWtests/agent/test_acp/test_server_dispatch.py45CODE
LOWtests/agent/test_acp/test_server_dispatch.py173CODE
LOWtests/agent/test_acp/test_server_forwarding.py63CODE
LOWtests/agent/test_acp/test_server_forwarding.py157CODE
LOWtests/agent/test_acp/test_standard_acp_client.py55CODE
LOWtests/agent/test_acp/test_standard_acp_client.py225CODE
LOWtests/agent/test_acp/test_standard_acp_client.py149CODE
LOWtests/agent/test_acp/test_raw_events.py62CODE
LOWtests/agent/test_acp/test_raw_events.py313CODE
LOWtests/agent/test_acp/test_raw_events.py133CODE
LOWtests/agent/test_acp/test_action_methods.py529CODE
LOWtests/agent/test_acp/test_action_methods.py572CODE
LOWtests/agent/test_acp/test_discovery.py36CODE
LOWtests/agent/test_acp/test_elicitation_e2e.py61CODE
LOWtests/agent/test_acp/test_elicitation_e2e.py116CODE
LOWtests/agent/test_acp/test_stdio_bridge.py43CODE
LOWtests/agent/test_acp/test_server_session_info.py115CODE
LOWtests/agent/test_acp/test_server.py29CODE
LOWtests/agent/test_acp/test_approval.py1445CODE
LOWtests/agent/test_acp/test_approval.py1499CODE
LOWtests/agent/test_acp/test_tui/test_client.py89CODE
LOWtests/sentinel/test_sentinel_replay.py1384CODE
LOWtests/sentinel/test_sentinel_dispatch.py3596CODE
LOWtests/sentinel/test_sentinel_dispatch.py4357CODE
LOWtests/sentinel/test_sentinel_dispatch.py5863CODE
614 more matches not shown…
Docstring Block Structure109 hits · 545 pts
SeverityFileLineSnippetContext
HIGHsrc/inspect_sandbox_tools/tests/conftest.py80Execute an RPC request via the CLI and return the parsed response. Args: request: The JSON-RPC request dictSTRING
HIGHsrc/inspect_sandbox_tools/tests/test_exec_remote.py34Poll an exec_remote job until it completes or times out. Args: rpc_client: The RPC client function to use fSTRING
HIGH…ls/src/inspect_sandbox_tools/_util/json_rpc_helpers.py46 Validates RPC method parameters and handles the method execution. This function validates the provided parametSTRING
HIGHsrc/inspect_ai/_util/registry.py452Create a registry object. Creates objects registered via decorator (e.g. `@task`, `@solver`). Note that this caSTRING
HIGHsrc/inspect_ai/_util/registry.py583Lookup RegistryInfo for an object. Args: o (object): Object to lookup info for Returns: RegistSTRING
HIGHsrc/inspect_ai/_util/flag_values.py29An option that is a bare flag or an integer. Args: value: The text given, or `None` for the bare flag. STRING
HIGHsrc/inspect_ai/_util/download.py47Download a file and verify its SHA256 checksum. If `dest` already exists and its checksum matches, the download is STRING
HIGHsrc/inspect_ai/_util/download.py115Download a Google Drive file via `gdown` and verify SHA256. Useful for fetching public-link Google Drive assets (daSTRING
HIGHsrc/inspect_ai/_util/format.py119Format a template string, optionally preserving unknown placeholders. Args: template: A string containing {STRING
HIGHsrc/inspect_ai/_util/_json_rpc.py159 Execute a JSON-RPC command expecting a scalar result. Args: method (str): The JSON-RPC method to call. STRING
HIGHsrc/inspect_ai/_util/_json_rpc.py199 Execute a JSON-RPC command to a sandbox environment expecting a model result. Args: method (str): The JSSTRING
HIGHsrc/inspect_ai/_util/_json_rpc.py233 Execute a JSON-RPC notification to a sandbox environment. A notification is a JSON-RPC request that doesn't exSTRING
HIGHsrc/inspect_ai/_util/_json_rpc.py342 Generate a string description of an RPC call. Args: method (str): The name of the RPC method. STRING
HIGHsrc/inspect_ai/_util/local_server.py294 Start a server with the given command and handle potential errors. Args: base_cmd: List of base commanSTRING
HIGHsrc/inspect_ai/_util/file.py671 Convert a string into a safe filename by removing or replacing unsafe characters. Args: s (str): The iSTRING
HIGHsrc/inspect_ai/_util/dateutil.py148Parse and normalize ISO datetime string or datetime instance to UTC. For legacy string temporal fields that cannot STRING
HIGHsrc/inspect_ai/_util/_async.py47Runs all of the passed async functions and collects their results. The results will be returned in the same order aSTRING
HIGHsrc/inspect_ai/_util/text.py141Convert a str to float, handling exponent characters and Unicode fractions. The Python isnumeric() function returnsSTRING
HIGHsrc/inspect_ai/_util/asyncfiles.py1275Upload `source` to an S3 key only if the key's current state matches. Exactly one of `if_match` (the expected ESTRING
HIGHsrc/inspect_ai/_util/images.py183Validate an inline image returned by a model provider. Provider output is untrusted, so only inline data URIs are aSTRING
HIGHsrc/inspect_ai/_util/async_zip.py469Open a ZIP member and stream its decompressed contents. Must be used as an async context manager to ensure propSTRING
HIGHsrc/inspect_ai/_util/atomic_write.py106Context manager for atomic local-file writes with durability guarantees. Implements the write-to-temporary-then-atoSTRING
HIGHsrc/inspect_ai/util/_json.py415Convert JSON schema to Pydantic BaseModel. Handles nested objects, arrays, and basic validations. Args: STRING
HIGHsrc/inspect_ai/util/_subprocess.py120Execute and wait for a subprocess. Convenience method for solvers, scorers, and tools to launch subprocesses. ASTRING
HIGHsrc/inspect_ai/util/_store.py278Convert a JsonChange to a jsonpatch operation dict with validation. Args: change: The JsonChange to convertSTRING
HIGHsrc/inspect_ai/util/_tool_state.py45Resolve a tool's `instance` argument against the current tool state scope. Stateful tools call this on each call anSTRING
HIGHsrc/inspect_ai/util/_notify.py62Build an `Apprise` instance for the eval's notification config. Notification URLs frequently carry secrets (Slack tSTRING
HIGHsrc/inspect_ai/util/_panel.py82Create an input panel in the task display. There can only be a single instance of an InputPanel with a given 'tSTRING
HIGHsrc/inspect_ai/util/_restic/resolver.py129Return a path to a usable restic binary for the given platform. Downloads the archive on cache miss, retrying transSTRING
HIGHsrc/inspect_ai/util/_sandbox/exec_remote.py674Run a command and return the result without streaming. Submits the command, polls until completion, and returns ExeSTRING
HIGHsrc/inspect_ai/util/_sandbox/compose.py459Parse a Docker Compose file into a ComposeConfig. Args: file: Path to the compose file. multiple_seSTRING
HIGHsrc/inspect_ai/util/_sandbox/context.py188Get a SandboxEnvironment that satisfies all the given injection requirements. Args: injectables: Single SanSTRING
HIGHsrc/inspect_ai/util/_sandbox/context.py450Find the best sandbox for injection and return it with needed injections. Args: injectables: List of detectSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py216Execute a command within a sandbox environment. The current working directory for execution will be the per-samSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py324Read a file from the sandbox environment. By default, file size is limited to 100 MiB. You may change this by sSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py375Information required to connect to sandbox environment. Args: user: User to login as. ReturnSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py414Start a command and return a process handle or result. In streaming mode (stream=True), the function returns onSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py487Verify and return a reference to a subclass of SandboxEnvironment. Args: sandbox_cls: Class of sandbSTRING
HIGHsrc/inspect_ai/util/_sandbox/_privileged.py139Run ``cmd`` in ``sandbox`` as ``user`` with utilities resolved via :data:`SYSTEM_PATH`. A drop-in for ``sandbox.exeSTRING
HIGHsrc/inspect_ai/util/_sandbox/_privileged.py222Look ``name`` up on the *image's* ``PATH`` with a ``which`` resolved via :data:`SYSTEM_PATH`. For the questions thaSTRING
HIGHsrc/inspect_ai/util/_sandbox/_framework_directory.py573Create or adopt ``path`` as a root-owned framework directory, if root works. Runs :func:`ensure_framework_directorySTRING
HIGHsrc/inspect_ai/util/_sandbox/_framework_directory.py715Verify ``path`` and then run ``cmd`` with the verified directory as cwd. The verification and the command run in thSTRING
HIGHsrc/inspect_ai/util/_sandbox/_json_rpc_transport.py72Execute an RPC request using the sandbox transport. Args: method: The JSON-RPC method to call. STRING
HIGHsrc/inspect_ai/dataset/_util.py210Read answer choices from a dataset field. Trailing empty or whitespace-only choices are removed. A blank that rSTRING
HIGHsrc/inspect_ai/dataset/_util.py242Remove trailing blank choices without shifting later answer letters. Args: choices: Choice strings, not yetSTRING
HIGHsrc/inspect_ai/_lfs/_client.py39Get download URLs for LFS objects via the batch API. Chunks requests to avoid exceeding GitHub's payload size limitSTRING
HIGHsrc/inspect_ai/_lfs/resolver.py20Resolve a directory that may contain LFS pointer files. Recursively checks source_dir for LFS pointers. If none areSTRING
HIGHsrc/inspect_ai/solver/_solver.py85Contribute to solving an evaluation task. Transform a `TaskState`, returning the new state. Solvers may STRING
HIGHsrc/inspect_ai/solver/_solver.py163Decorator for registering solvers. Args: name: Optional name for solver. If the decorator has nSTRING
HIGHsrc/inspect_ai/scorer/_scorer.py139Decorator for registering scorers. Args: metrics: One or more metrics to calculate over the scoSTRING
HIGHsrc/inspect_ai/scorer/_metric.py371Compute a metric on a list of scores. Args: scores: List of scores. Returns: MetriSTRING
HIGHsrc/inspect_ai/scorer/_score.py16Score a model conversation. Score a model conversation (you may pass `TaskState` or `AgentState` as the value fSTRING
HIGHsrc/inspect_ai/scorer/_metrics/aggregate.py25Apply `agg` to a single key extracted from each dict-valued `Score.value`. Many scorers emit dict-valued scores (muSTRING
HIGHsrc/inspect_ai/_view/_csp.py28Read the viewer Content-Security-Policy from a dist directory. Args: dist_dir: Local directory containing tSTRING
HIGHsrc/inspect_ai/_cli/util.py189Parse model roles from CLI args. Supports key-value, YAML, and JSON formats. Args: model_roles: Tuple of stSTRING
HIGHsrc/inspect_ai/_cli/util.py251Parse model specs from CLI args. Each spec is one YAML or JSON mapping. A spec holds `model` (required), `base_url`STRING
HIGHsrc/inspect_ai/_cli/eval.py1890Resolve `--model-spec` into one model per spec. A spec builds a `Model`, and `get_model()` returns a `Model` unchanSTRING
HIGHsrc/inspect_ai/model/_internal.py15 Extracts and removes a smuggled <internal>...</internal> tag from the content string, if present. Note: STRING
HIGHsrc/inspect_ai/model/_openai_responses.py2456Convert CompactedResponse to a list of ChatMessages. The compact endpoint returns the complete new context window, STRING
HIGHsrc/inspect_ai/model/_google_convert.py78Convert Google GenerateContentResponse into Inspect ModelOutput. Args: response: Google GenerateContentRespSTRING
49 more matches not shown…
Excessive Try-Catch Wrapping468 hits · 475 pts
SeverityFileLineSnippetContext
LOWdesign/bridge-host-tool-events.md703 except Exception as ex:CODE
LOWdesign/deepagent-background.md137 except Exception as ex:CODE
LOWdesign/recover.md320 except Exception:CODE
LOWdesign/recover.md401 except Exception:CODE
LOWdesign/malicious-log-code-execution.md341except Exception:CODE
LOWtests/test_retry.py408 except Exception:CODE
LOWtests/conftest.py571 except Exception as ex:CODE
LOWtests/conftest.py655 except Exception as ex:CODE
LOW⚡tests/test_eval_set.py209 except Exception:CODE
LOW⚡tests/test_eval_set.py216 except Exception:CODE
LOWtests/test_model_env_mismatch.py50 except Exception:CODE
LOWtests/test_model_env_mismatch.py101 except Exception:CODE
LOWtests/test_model_env_mismatch.py136 except Exception:CODE
LOWtests/test_model_env_mismatch.py168 except Exception:CODE
LOWtests/test_model_env_mismatch.py221 except Exception:CODE
LOWtests/test_model_env_mismatch.py247 except Exception:CODE
LOWtests/tools/test_tools_bridge.py1033 except Exception:CODE
LOWtests/tools/test_tools_bridge.py1320 except Exception as ex:CODE
LOWtests/tools/test_tools_bridge.py1724 except Exception:CODE
LOWtests/tools/test_tools_bridge.py1908 except Exception:CODE
LOWtests/tools/test_mcp_tools.py311 except Exception as ex:CODE
LOWtests/tools/test_sandbox_docker_and_local.py144 except Exception:CODE
LOWtests/tools/test_tool_with.py34 except Exception:CODE
MEDIUMtests/tools/test_tool_with.py27def test_tool_with_validation():CODE
LOWtests/tools/sandbox_tools_utils/test_sandbox_tools.py676 except Exception as ex:CODE
MEDIUMtests/util/test_async.py50def fail():CODE
MEDIUMtests/util/test_async.py225def _fail_with_cause() -> None:CODE
LOWtests/util/test_async.py64 except Exception as group:CODE
LOWtests/util/test_async.py77 except Exception as group:CODE
LOW⚡tests/util/test_anyio.py62 except Exception as inner_tool_error:CODE
LOW⚡tests/util/test_anyio.py68 except Exception as e:CODE
LOW⚡tests/util/test_anyio.py70 except Exception as wow:CODE
LOWtests/util/sandbox/test_sandbox_service.py1178 except Exception as ex:CODE
LOWtests/util/sandbox/test_sandbox_service.py120 except Exception as e:STRING
LOWtests/agent/test_bridge_refusals.py278 except Exception as ex:CODE
MEDIUMtests/agent/test_bridge_approval.py5076def call() -> None:CODE
LOWtests/agent/test_bridge_approval.py5081 except Exception as ex:CODE
LOWtests/agent/test_bridge_approval.py5182 except Exception as ex:CODE
MEDIUMtests/agent/deepagent/test_agent_tool.py258def import ToolDefCODE
LOWtests/agent/deepagent/test_agent_tool.py266 except Exception:CODE
LOWtests/agent/test_acp/test_span_boundary.py184 except Exception:CODE
MEDIUMtests/agent/test_acp/test_server_dispatch.py173def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_server_dispatch.py226 except Exception:CODE
MEDIUMtests/agent/test_acp/test_server_forwarding.py157def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_server_forwarding.py208 except Exception:CODE
LOWtests/agent/test_acp/test_server_forwarding.py779 except Exception:CODE
LOWtests/agent/test_acp/test_server_forwarding.py843 except Exception:CODE
MEDIUMtests/agent/test_acp/test_standard_acp_client.py149def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_standard_acp_client.py197 except Exception:CODE
MEDIUMtests/agent/test_acp/test_raw_events.py133def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_raw_events.py179 except Exception:CODE
MEDIUMtests/agent/test_acp/test_action_methods.py572def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_action_methods.py615 except Exception:CODE
LOWtests/agent/test_acp/test_elicitation_e2e.py168 except Exception:CODE
MEDIUMtests/agent/test_acp/test_elicitation_e2e.py116def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_server_session_info.py158 except Exception:CODE
MEDIUMtests/agent/test_acp/test_server_session_info.py115def _read_loop(self) -> None:CODE
LOW⚡tests/agent/test_acp/test_server.py266 except Exception:CODE
LOW⚡tests/agent/test_acp/test_server.py318 except Exception:CODE
LOWtests/agent/test_acp/test_server.py238 except Exception:CODE
408 more matches not shown…
Modern AI Meta-Vocabulary137 hits · 392 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md3059- ReAct Agent: [truncation](https://inspect.aisi.org.uk/agents.html#truncation) option to trim conversation messages wheCODE
MEDIUMdesign/bridge-host-tool-events.md184 teardown #5464 triggers may pre-empt delivery of the reply; the scaffold'sCODE
MEDIUMdesign/ctl/pause-resume.md140- **Hard pause (hold at next model call) — implemented.** `pause --now`: in addition to quiesce, hold in-flight samples CODE
MEDIUMdesign/ctl/control-channel.md992- **Self-targeting guard hardening.** Open question #8 in this doc — an LLM agent running *inside* an eval shouldn't be CODE
MEDIUM⚡tests/tools/test_tools_bridge.py1079# but turns any other exception into an RPC error the scaffold reads as toolCOMMENT
MEDIUMtests/tools/test_tools_bridge.py1310 # the scaffold carries on regardless; the monitor tears the group downCOMMENT
MEDIUMtests/tools/test_tools_bridge.py1478 # each a sandbox exec; the scaffold sees the reply between themCOMMENT
MEDIUMtests/tools/test_tools_bridge.py1513 # the scaffold reads the reply and exitsCOMMENT
MEDIUMtests/tools/test_tools_bridge.py1848 # the scaffold reads its reply and returnsCOMMENT
MEDIUMtests/checkpoint/test_checkpointer.py651 # leading scaffolding before the first wrap — dropped by the sliceCOMMENT
MEDIUMtests/checkpoint/test_checkpointer.py671 # seeded wrap and still open at fire time — trailing scaffoldingCOMMENT
MEDIUM⚡tests/agent/test_agent_compaction_native.py49 # the context window. Reasoning + compaction is tested separately inCOMMENT
MEDIUMtests/agent/test_bridge_generation_config.py999 # would leak the scaffold's value to the served model whenever the eval configCOMMENT
MEDIUMtests/agent/test_bridge_provider_errors.py1183 # the scaffold, waiting on its model requestsCOMMENT
MEDIUM⚡tests/agent/test_bridge_track_state.py1387 # the scaffold restarts: title call fires first againCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py259 # main loop, then scaffold compaction: the compacted loop is promoted, soCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py390 # the scaffold re-creates every message: different ids and metadata, andCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py427 # scaffold runs the task under its own (different) system promptCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py604 # title call fires first; the scaffold's store holds the condensed turnCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py1461 # main loop: turn 2 (scaffold round-trips through its own store)COMMENT
MEDIUMtests/agent/test_bridge_refusals.py271 # the scaffold carries on regardless; the monitor tears the group downCOMMENT
MEDIUMtests/agent/test_agent_bridge_response_filter.py729 # the filter's replacement is what the scaffold gets backCOMMENT
MEDIUMtests/agent/test_agent_bridge_response_filter.py1221 # the scaffold finished first: the ordering the race needsCOMMENT
MEDIUMtests/agent/test_agent_bridge.py1108 # backend; the scaffold's second call replays the searched assistant turnSTRING
MEDIUMtests/agent/test_agent_bridge.py1119 # both scaffold calls completed (the second replays the first turn)STRING
MEDIUM⚡tests/agent/test_bridge_approval.py913 # the scaffold re-issues the approved call with the keys in a different orderCOMMENT
MEDIUM⚡tests/agent/test_bridge_approval.py3180 # the rejected call never reached the scaffoldCOMMENT
MEDIUM⚡tests/agent/test_bridge_approval.py3314# should behave identically whichever API the scaffold speaks. These drive eachCOMMENT
MEDIUM⚡tests/agent/test_bridge_approval.py3315# dialect impl the way a scaffold's request arrives.COMMENT
MEDIUMtests/agent/test_bridge_approval.py435 # the scaffold gets the approved arguments...COMMENT
MEDIUMtests/agent/test_bridge_approval.py503 # the model is told and generates again; the scaffold sees only the replacementCOMMENT
MEDIUMtests/agent/test_bridge_approval.py2455 # a second call for the same proposal (e.g. a scaffold retrying after aCOMMENT
MEDIUMtests/agent/test_bridge_approval.py2759 # and so does the response handed to the scaffoldCOMMENT
MEDIUMtests/agent/test_bridge_approval.py3139 # what the scaffold would go on to executeCOMMENT
MEDIUMtests/agent/test_bridge_approval.py5014# what the scaffold gets ("result", "error" or "cancelled"), the recordedCOMMENT
MEDIUMtests/agent/test_bridge_agent_context.py300 # the raw scaffold slug survives even though the model resolved elsewhereCOMMENT
MEDIUMtests/agent/test_bridge_agent_context.py331 # no "model" key -- scaffold never requested a slugCOMMENT
MEDIUM⚡tests/agent/test_acp/test_operator_provenance.py55# note_operator_message — the scaffold's signalCOMMENT
MEDIUM⚡tests/agent/test_acp/test_router_bridge_tools.py637# Host tools a sandbox bridge runs for the scaffold (``bridged_tools``)COMMENT
MEDIUMtests/agent/test_acp/test_router_bridge_tools.py166 # the scaffold-provided view renders richly (not args-only)COMMENT
MEDIUM⚡tests/agent/test_acp/test_tui/test_widgets.py995 # Used-only — context window denominator dropped.COMMENT
MEDIUMtests/scorer/test_math.py289 # An integer answer on the final line of a reasoning trace is extracted.COMMENT
MEDIUMtests/sentinel/test_sentinel_replay.py990 # the scaffold declares the tool under its own name, with theCOMMENT
MEDIUMtests/sentinel/test_sentinel_dispatch.py3968 # what the model is sent is not the scaffold's listCOMMENT
MEDIUMtests/sentinel/test_sentinel_dispatch.py4143 # scaffold rebuilt themCOMMENT
MEDIUMtests/sentinel/test_sentinel_dispatch.py5153 # documented: the hidden instructions stay out only when the scaffold thatCOMMENT
MEDIUMtests/sentinel/test_sentinel_dispatch.py6806 # as a scaffold that saves context does: a tool result the model hasCOMMENT
MEDIUMtests/model/test_compaction.py1417 # small context window so a modest tool output overflows itCOMMENT
MEDIUMtests/model/test_model_length.py24# model context window sizesCOMMENT
MEDIUMtests/model/test_model_length.py49 # cloudflare serves this model with a reduced context windowCOMMENT
MEDIUMtests/model/test_model_length.py61 # context window for modelCOMMENT
MEDIUMtests/model/test_model_length.py65 # create message that exceeds context windowCOMMENT
MEDIUMtests/model/providers/test_anthropic.py527 # scaffold for should_retryCOMMENT
MEDIUM⚡tests/model/providers/test_vllm.py34 # this allows us to run base models with the chat message scaffolding:COMMENT
MEDIUM⚡tests/model/providers/test_openai_model_names.py89 # input_tokens_name() aliases to the current frontier so the context windowCOMMENT
MEDIUM⚡tests/model/providers/test_grok_model_names.py84 # input_tokens_name() aliases to the current frontier so the context windowCOMMENT
MEDIUM⚡tests/model/providers/test_grok_model_names.py98 # frontier would overstate its context windowCOMMENT
MEDIUMtests/model/providers/test_anthropic_fallback.py587 # scaffold echoes the assistant turn as dicts (incl. the fallback block)COMMENT
MEDIUMtests/model/providers/test_hf.py36 # this allows us to run base models with the chat message scaffolding:COMMENT
MEDIUMtests/model/providers/test_hf.py55 # this allows us to run base models with the chat message scaffolding:COMMENT
77 more matches not shown…
Cross-File Repetition73 hits · 365 pts
SeverityFileLineSnippetContext
HIGHtests/tools/test_call_tools.py0order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses)STRING
HIGHtests/tools/test_tools_bridge.py0order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses)STRING
HIGHtests/tools/test_mcp_tools.py0order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses)STRING
HIGHtests/sentinel/test_sentinel_dispatch.py0order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses)STRING
HIGHtests/model/test_tool_exec_shared.py0order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses)STRING
HIGHtests/tools/test_tools_bridge.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/sentinel/test_sentinel_replay.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/sentinel/test_sentinel_config.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/sentinel/test_sentinel_optional.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/sentinel/test_sentinel_human.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/sentinel/test_sentinel_dispatch.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/model/providers/test_deepseek.py0add two numbers. args: x: first number to add. y: second number to add.STRING
HIGHtests/tools/test_tools.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/agent/test_react_review.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/agent/test_agent_react.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/solver/test_basic_agent.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/review/test_review.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/model/test_reasoning_claude.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/test_helpers/tools.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/approval/test_approval.py0add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers.STRING
HIGHtests/agent/test_acp/test_server_forwarding.py0short /tmp data dir so af_unix paths fit in 104 chars on macos.STRING
HIGHtests/agent/test_acp/test_action_methods.py0short /tmp data dir so af_unix paths fit in 104 chars on macos.STRING
HIGHtests/agent/test_acp/test_elicitation_e2e.py0short /tmp data dir so af_unix paths fit in 104 chars on macos.STRING
HIGHtests/agent/test_acp/test_stdio_bridge.py0short /tmp data dir so af_unix paths fit in 104 chars on macos.STRING
HIGHtests/agent/test_acp/test_approval.py0short /tmp data dir so af_unix paths fit in 104 chars on macos.STRING
HIGHtests/_cli/test_token_limit_flag.py0run the test command and eval its echoed repr back to a python value.STRING
HIGHtests/_cli/test_ctl_server_flag.py0run the test command and eval its echoed repr back to a python value.STRING
HIGHtests/_cli/test_acp_server_flag.py0run the test command and eval its echoed repr back to a python value.STRING
HIGHtests/model/test_reasoning_google.py0add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers.STRING
HIGHdocs/_tools-basics.md0add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers.STRING
HIGHexamples/tool_use.py0add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers.STRING
HIGHtests/model/providers/test_google.py0add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers.STRING
HIGHtests/model/providers/test_anthropic.py0completes each batch at once, answering each request with its id.STRING
HIGHtests/model/providers/test_openai_compatible.py0completes each batch at once, answering each request with its id.STRING
HIGHtests/model/providers/util/test_batch.py0completes each batch at once, answering each request with its id.STRING
HIGHtests/model/providers/test_mistral.py0unset stream is "auto": stream iff the caller passed on_stream.STRING
HIGHtests/model/providers/test_azureai.py0unset stream is "auto": stream iff the caller passed on_stream.STRING
HIGHtests/model/providers/test_bedrock_streaming.py0unset stream is "auto": stream iff the caller passed on_stream.STRING
HIGHtests/model/providers/test_groq.py0unset stream is "auto": stream iff the caller passed on_stream.STRING
HIGHtests/model/providers/test_openai_compatible.py0unset stream is "auto": stream iff the caller passed on_stream.STRING
HIGHtests/model/providers/test_mistral.py0the stream accumulator reconstructs the completion and reports deltas.STRING
HIGHtests/model/providers/test_azureai.py0the stream accumulator reconstructs the completion and reports deltas.STRING
HIGHtests/model/providers/test_groq.py0the stream accumulator reconstructs the completion and reports deltas.STRING
HIGHtests/model/providers/test_mistral.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_azureai.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_grok.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_bedrock_streaming.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_groq.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_sagemaker.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGHtests/model/providers/test_openai_responses.py0without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking STRING
HIGH…andbox_tools/_remote_tools/_bash_session/tool_types.py0user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serveSTRING
HIGH…sandbox_tools/_remote_tools/_exec_remote/tool_types.py0user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serveSTRING
HIGH…inspect_sandbox_tools/_remote_tools/_mcp/tool_types.py0user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serveSTRING
HIGHsrc/inspect_ai/util/_store_model.py0pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: optiSTRING
HIGHsrc/inspect_ai/solver/_task_state.py0pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: optiSTRING
HIGHsrc/inspect_ai/log/_log.py0pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: optiSTRING
HIGHsrc/inspect_ai/model/_model.py0canonical model name for model info database lookup.STRING
HIGHsrc/inspect_ai/model/_providers/mistral.py0canonical model name for model info database lookup.STRING
HIGHsrc/inspect_ai/model/_providers/grok.py0canonical model name for model info database lookup.STRING
HIGHsrc/inspect_ai/model/_providers/google.py0canonical model name for model info database lookup.STRING
13 more matches not shown…
Self-Referential Comments100 hits · 316 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_eval_set.py3435 # Create a log with the exact task identity eval_set expects, thenCOMMENT
MEDIUMtests/test_model_env_mismatch.py85 # Create a minimal task with proper solver and scorerCOMMENT
MEDIUM⚡tests/tools/test_web_search_tavily.py55 # Create a client with our mock transportCOMMENT
MEDIUMtests/analysis/test_large_string.py11 # Create a DataFrame with a small PyArrow string columnCOMMENT
MEDIUMtests/analysis/test_large_string.py32 # Create a DataFrame with a large PyArrow string columnCOMMENT
MEDIUMtests/analysis/test_large_string.py55 # Create a DataFrame with both small and large columns (same length)COMMENT
MEDIUM⚡tests/util/test_store_nested_types.py89 # Create a store with dict dataCOMMENT
MEDIUM⚡tests/util/test_anyio.py80 # Create a circular reference: exc1.__context__ -> exc2 -> exc1COMMENT
MEDIUMtests/util/test_anyio.py99 # Create a circular reference in exception groupsCOMMENT
MEDIUMtests/util/sandbox/test_docker_compatibility.py599 # Create a task with compose.yaml config (use None for dataset to get a dummy sample)COMMENT
MEDIUMtests/util/sandbox/sandbox_setup_symlink.sh12# Create a nested directory and symlink via “..”COMMENT
MEDIUMtests/util/sandbox/test_docker_compose_config.py793 # Create a ComposeService with x-default extensionCOMMENT
MEDIUM⚡tests/agent/test_agent_react.py721 # Create a tool call for submitCOMMENT
MEDIUM⚡tests/agent/test_agent_react.py728 # Create a tool call for a regular toolCOMMENT
MEDIUM⚡tests/agent/test_agent_react.py735 # Create an assistant message with both reasoning content and tool callsCOMMENT
MEDIUM⚡tests/agent/test_agent_react.py744 # Create an assistant message without reasoning content but with submit tool callCOMMENT
MEDIUM⚡tests/agent/test_agent_react.py750 # Create an assistant message with only regular tool calls (should be unchanged)COMMENT
MEDIUMtests/agent/test_acp/test_action_methods.py973 # Create the pending nested ToolEvent — same construction theCOMMENT
MEDIUM⚡tests/model/test_web_search_exclude_none.py84 # Create a web search with ActionSearch that has sources=None (the bug condition)COMMENT
MEDIUMtests/model/test_compaction_summary.py100 # Create a previous summary messageCOMMENT
MEDIUMtests/model/test_trim_messages.py72 # Create a longer conversationCOMMENT
MEDIUMtests/model/test_trim_messages.py140 # Create a scenario with a tool response without a corresponding assistant messageCOMMENT
MEDIUMtests/model/test_trim_messages.py241 # Create a longer conversationCOMMENT
MEDIUMtests/model/test_trim_messages.py305 # Create a longer conversation with tool callsCOMMENT
MEDIUMtests/model/test_trim_messages.py349 # Create a conversation with alternating user-assistant pairsCOMMENT
MEDIUMtests/model/test_trim_messages.py432 # Create an assistant message with 3 tool calls, but only 1 tool resultCOMMENT
MEDIUMtests/model/test_trim_messages.py465 # Create an assistant message with tool calls, but no tool results at allCOMMENT
MEDIUMtests/model/test_trim_messages.py492 # Create a conversation where trimming will create orphan tool_callsCOMMENT
MEDIUMtests/model/test_token_counting.py120 # Create a conversation with an assistant message containing multiple tool callsCOMMENT
MEDIUMtests/model/test_prompt_logprobs.py464 # Create a minimal instance without calling __init__COMMENT
MEDIUMtests/model/providers/test_anthropic.py701 # Create an assistant message with a single tool call (no tool result)COMMENT
MEDIUMtests/model/providers/test_anthropic.py723 # Create an assistant message with multiple tool calls (no tool results)COMMENT
MEDIUMtests/model/providers/test_anthropic.py755 # Create a tool result message without a preceding assistant messageCOMMENT
MEDIUMtests/model/providers/test_mistral.py113 # Create a simple promptCOMMENT
MEDIUMtests/model/providers/test_transformer_lens.py18 # Create a small HookedTransformer model for testingCOMMENT
MEDIUMtests/model/providers/test_transformer_lens.py34 # Create the model using InspectCOMMENT
MEDIUMtests/model/providers/test_transformer_lens.py143 # Create a small HookedTransformer model for testingCOMMENT
MEDIUMtests/model/providers/test_transformer_lens.py159 # Create a simple task for testingCOMMENT
MEDIUM⚡tests/model/providers/test_google.py817 # Create a mock clientCOMMENT
MEDIUM⚡tests/model/providers/test_google.py820 # Create a message with reasoning + text + tool callCOMMENT
MEDIUMtests/model/providers/test_google.py2991 # Create an assistant message with a single tool call (no tool result)COMMENT
MEDIUMtests/model/providers/test_google.py3016 # Create an assistant message with multiple tool calls (no tool results)COMMENT
MEDIUMtests/model/providers/test_google.py3051 # Create a tool result message without a preceding assistant messageCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py733 # Create a mock CompactedResponse with a ResponseCompactionItemCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py786 # Create a CompactedResponse without a ResponseCompactionItemCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py953 # Create a CompactedResponse with compaction item followed by an output messageCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py1025 # Create a compact response matching real API output:COMMENT
MEDIUMtests/model/providers/test_openai_responses.py1211 # Create a message with phase stored in ContentText.internalCOMMENT
MEDIUMtests/model/providers/util/test_batch_intake.py208 # Create a request that's too large for the available sizeCOMMENT
MEDIUMtests/model/providers/util/test_batch.py674 # Create a batcher with a low max_consecutive_check_failures valueCOMMENT
MEDIUMtests/model/providers/util/test_batch.py745 # Create a batcher that will fail initially then succeedCOMMENT
MEDIUMtests/model/providers/util/test_batch.py804 # Create a request that's close to but under the limitCOMMENT
MEDIUM⚡tests/log/test_log_file_info_fallback.py204 # Create a native-named eval (timestamp prefix -> fast path)COMMENT
MEDIUM⚡tests/log/test_log_file_info_fallback.py211 # Create a custom-named eval (no timestamp -> header fallback)COMMENT
MEDIUM⚡tests/log/test_log_attachments.py463# # Create a long text that should be condensed (> 100 chars)COMMENT
MEDIUM⚡tests/log/test_log_attachments.py467# # Create a model event with long contentCOMMENT
MEDIUMtests/log/test_log_attachments.py539# # Create the same long text that will appear in multiple eventsCOMMENT
MEDIUMtests/log/test_log_attachments.py620 # Create an event with long contentCOMMENT
MEDIUMtests/log/test_recover_e2e.py295 # Create an empty buffer DB so recovery can proceedCOMMENT
MEDIUMtests/log/test_recover_e2e.py414 # Create a crashed logCOMMENT
40 more matches not shown…
Over-Commented Block284 hits · 228 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py461# The watchdog writes two dumps to the same per-process file: faulthandler'sCOMMENT
LOWtests/test_eval_set_selection.py1341 # why adding a field bumps the version here. v1 documents remain readable:COMMENT
LOWtests/tools/test_tools_bridge.py1061 )COMMENT
LOWtests/tools/test_sandbox_docker_and_local.py121COMMENT
LOWtests/checkpoint/resume_kill_harness.py101COMMENT
LOWtests/checkpoint/resume_kill_harness.py221 return "crashed"COMMENT
LOWtests/util/test_text.py21 # Stripping it to face value would make match(numeric=True)COMMENT
LOWtests/agent/test_acp/test_session.py221COMMENT
LOWtests/agent/test_acp/test_router.py1881 tg.start_soon(lambda: agent(_state()))COMMENT
LOWtests/agent/test_acp/test_standard_acp_client.py241 k.startswith("inspect.") or k.startswith("inspect/")COMMENT
LOWtests/agent/test_acp/test_approval.py561 shim_task.cancel()COMMENT
LOWtests/agent/test_acp/test_tui/test_client.py61 active.agent_name = agent_nameCOMMENT
LOWtests/model/test_reasoning_claude.py21@skip_if_no_anthropicCOMMENT
LOWtests/model/test_adaptive_connections.py961 # Controller's adaptive bound max should be 50 — the int shorthand.COMMENT
LOWtests/view/test_openapi_schema_generation.py241def test_default_pydantic_makes_defaulted_fields_not_required() -> None:COMMENT
LOWtests/log/test_log_attachments.py461# transcript = Transcript()COMMENT
LOWtests/log/test_log_attachments.py481# stored_event = transcript.events[0]COMMENT
LOWtests/log/test_log_attachments.py501# input=[initial_message],COMMENT
LOWtests/log/test_log_attachments.py521# # Verify the output was condensedCOMMENT
LOWtests/log/test_log_attachments.py541# message1 = ChatMessageUser(content=repeated_text)COMMENT
LOWtests/log/test_log_attachments.py561# )COMMENT
LOWtests/log/test_task_log.py1881 # (EvalState.live). A seeded prior record must not appear there while itsCOMMENT
LOWdocs/evals/model_cards.yml1# Benchmarks referenced in recent model cards/announcements.COMMENT
LOWexamples/computer/compose.yaml1services:COMMENT
LOWscripts/release-sandbox-tools.sh181COMMENT
LOW.github/workflows/release.yml1name: ReleaseCOMMENT
LOW.github/workflows/suppressions-comment.yml1# Posts the sticky suppression-ledger delta comment on PRs, fork PRsCOMMENT
LOW.github/workflows/suppressions-comment.yml21# touching the worktree or index, then `git show` reads only itsCOMMENT
LOW.github/workflows/release-pr-checks.yml1name: Release PR checksCOMMENT
LOW.github/workflows/build.yml201 # inspect_ai source that reference docs are generated from (griffe).COMMENT
LOW.github/workflows/build.yml261 steps:COMMENT
LOW.github/workflows/build.yml321 # re-checks the lock.COMMENT
LOW.github/workflows/build.yml701 # The published bytes must come from a sandbox-tools-build.yml run onCOMMENT
LOW.github/scripts/check_suppressions.py41COMMENT
LOWsrc/inspect_sandbox_tools/tests/requirements.txt181 # via inspect-sandbox-tools (../pyproject.toml)COMMENT
LOWsrc/inspect_sandbox_tools/tests/requirements.txt761 # anthropicCOMMENT
LOWsrc/inspect_sandbox_tools/tests/requirements.txt2061 # viaCOMMENT
LOWsrc/inspect_sandbox_tools/tests/requirements.txt2081 # mcp-typesCOMMENT
LOW…t_sandbox_tools/_remote_tools/_exec_remote/__init__.py1# TODO: Consider renaming _remote_tools directory to _remote_services or _json_rpc_servicesCOMMENT
LOW…sandbox_tools/src/inspect_sandbox_tools/_cli/server.py41#COMMENT
LOWsrc/inspect_ai/_control/server.py201# Keep-alive intentCOMMENT
LOWsrc/inspect_ai/_control/server.py801 active_since: float | None = None,COMMENT
LOWsrc/inspect_ai/_control/server.py1041 # naturally (scored on their own terms, no interrupts), thenCOMMENT
LOWsrc/inspect_ai/_control/server.py1201 if result.get("ok") is False:COMMENT
LOWsrc/inspect_ai/_control/server.py1321 # the ambiguity rejection carries the pending callsCOMMENT
LOWsrc/inspect_ai/_control/server.py1381 # after a `/`); `key`/`key_limit` retune a named concurrency() registryCOMMENT
LOWsrc/inspect_ai/_control/server.py1621 # Pause / resume the whole run (the eval-set spelling — oneCOMMENT
LOWsrc/inspect_ai/_control/server.py1641 # retries/min, backoff ratio, and active retry waits per model, plusCOMMENT
LOWsrc/inspect_ai/_control/server.py1801 exc_info=True,COMMENT
LOWsrc/inspect_ai/_control/limits.py361COMMENT
LOWsrc/inspect_ai/_control/cancel.py341 pending = state.task_cancel.cancel_typeCOMMENT
LOWsrc/inspect_ai/_control/cancel.py401 if stamp == "abort":COMMENT
LOWsrc/inspect_ai/_control/scoring.py81# gate (and then quiesce) before reporting it un-scored. A constant to startCOMMENT
LOWsrc/inspect_ai/_control/__init__.py1"""Control channel — HTTP server embedded in each running eval process.COMMENT
LOWsrc/inspect_ai/_control/__init__.py21# non-GET route with a 400 (`_control/strict.py`), atomically — so aCOMMENT
LOWsrc/inspect_ai/_control/__init__.py41# must not 400 their retune on an older strict server, so the CLI includesCOMMENT
LOWsrc/inspect_ai/_control/__init__.py61# server advertises >= 5 (an explicit --author/--reason against anCOMMENT
LOWsrc/inspect_ai/_control/__init__.py81# `ctl config`), joining the version-4 retry knobs. No CLI gate — theCOMMENT
LOWsrc/inspect_ai/_control/pause.py201# GET /tasks reports). One gate holds every dispatch point of that model'sCOMMENT
LOWsrc/inspect_ai/_control/pause.py221# like the keep-alive intent.COMMENT
224 more matches not shown…
Modern Structural Boilerplate228 hits · 217 pts
SeverityFileLineSnippetContext
LOWtests/_control/test_log_dir.py3463def _set_note(header: Any, note: int) -> None:CODE
LOWtests/_control/test_log_dir.py3644def _set_metadata(header: Any) -> None:CODE
LOWtests/_control/test_log_dir.py3648def _set_first_input(summaries: Any) -> None:CODE
LOW⚡tests/input/test_input_panel.py129def _set_input_value(input_widget: Input, value: str) -> None:CODE
LOWtests/input/test_input_panel.py53 def set_title(self, title: str) -> None:CODE
LOW⚡tests/agent/test_acp/test_tui/test_elicitation_card.py68def _set_input(input_widget: Input, value: str) -> None:CODE
LOWtests/test_package/inspect_package/__init__.py3__all__ = ["simple_score"]CODE
LOW…ridianlabs-ai/inspect-docs/filters/reference/filter.py230 def set_default_title(elem: pf.Element, doc: pf.Doc) -> None:CODE
LOWexamples/hooks/mlflow_tracking.py44logger = logging.getLogger(__name__)CODE
LOWexamples/hooks/trackio_tracking.py41logger = logging.getLogger(__name__)CODE
LOWexamples/hooks/mlflow_tracing.py51logger = logging.getLogger(__name__)CODE
LOW…sandbox_tools/tests/test_text_editor_validated_path.py193def _set_history_path(monkeypatch: pytest.MonkeyPatch, history_path: Path) -> None:CODE
LOWsrc/inspect_sandbox_tools/tests/conftest.py19logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_sandbox_tools/tests/test_exec_remote.py90def _setup_and_teardown(sandbox_server_cleanup: None) -> None:CODE
LOW…ct_sandbox_tools/src/inspect_sandbox_tools/__init__.py12__all__ = ["__version__"]CODE
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py27logger = logging.getLogger(__name__)CODE
LOW…box_tools/src/inspect_sandbox_tools/_util/constants.py11__all__ = [CODE
LOW…x_tools/src/inspect_sandbox_tools/_util/user_switch.py54def set_oom_score_adj() -> None:CODE
LOWsrc/inspect_ai/__init__.py32__all__ = [CODE
LOWsrc/inspect_ai/_control/eval_state.py742def set_sample_requeue(eval_id: str, handle: "SampleRequeue | None") -> None:CODE
LOWsrc/inspect_ai/_control/eval_state.py755def set_task_scoring(eval_id: str, handle: "TaskScoring | None") -> None:CODE
LOWsrc/inspect_ai/_control/max_tasks.py58def set_max_tasks_override(value: int | None) -> None:CODE
LOWsrc/inspect_ai/_util/zipfile.py29logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/zipfile.py199__all__ = ["zipfile_compress_kwargs"]CODE
LOWsrc/inspect_ai/_util/log_context.py8def set_run_shape(task_names: Iterable[str], max_epochs: int) -> None:CODE
LOWsrc/inspect_ai/_util/error.py116def set_exception_hook() -> None:CODE
LOWsrc/inspect_ai/_util/transcript.py66def set_transcript_markdown_options(markdown: Markdown) -> None:CODE
LOWsrc/inspect_ai/_util/registry.py98def set_annotations(wrapper: Callable[..., Any], annotations: dict[str, Any]) -> None:CODE
LOWsrc/inspect_ai/_util/registry.py129def set_return_annotation(wrapper: Callable[..., Any], return_type: type[Any]) -> None:CODE
LOWsrc/inspect_ai/_util/httpx.py16logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/background.py50def set_background_task_group(tg: TaskGroup | None) -> None:CODE
LOWsrc/inspect_ai/_util/local_server.py14logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/file.py752logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/event_loop_monitor.py39logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/asyncfiles.py58logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/future.py14 def set_result(self, result: T) -> None:CODE
LOWsrc/inspect_ai/_util/future.py18 def set_exception(self, ex: Exception) -> None:CODE
LOWsrc/inspect_ai/_util/future.py32 def set_future_result(future: "Future[T]", result: T) -> None:CODE
LOWsrc/inspect_ai/_util/future.py36 def set_future_exception(future: "Future[T]", error: Exception) -> None:CODE
LOWsrc/inspect_ai/_util/textual/__init__.py3__all__ = ["ElicitationForm"]CODE
LOWsrc/inspect_ai/_display/__init__.py14__all__ = [CODE
LOWsrc/inspect_ai/_display/core/results.py38def set_retry_args_suffix(suffix: str) -> None:CODE
LOWsrc/inspect_ai/_display/core/display.py170 def update_metrics(self, scores: list[TaskDisplayMetric]) -> None: ...CODE
LOWsrc/inspect_ai/_display/core/display.py198 def update_task_count(self, n: int) -> None:CODE
LOWsrc/inspect_ai/_display/core/progress.py70 def update_count(self, complete: int, total: int) -> None:CODE
LOWsrc/inspect_ai/_display/core/progress.py77 def update_score(self, score: str) -> None:CODE
LOWsrc/inspect_ai/_display/core/panel.py23def set_eval_set_id_display(value: str | None) -> None:CODE
LOWsrc/inspect_ai/_display/plain/display.py74 def update_task_count(self, n: int) -> None:CODE
LOWsrc/inspect_ai/_display/plain/display.py221 def update_metrics(self, metrics: list[TaskDisplayMetric]) -> None:CODE
LOWsrc/inspect_ai/_display/textual/display.py85 def update_task_count(self, n: int) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py59def set_flow_content(content: RenderableType) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py244 def update_task_count(self, n: int) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py300 def update_display(self) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py315 def update_scan(self) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py340 def update_title(self) -> None:CODE
LOW⚡src/inspect_ai/_display/textual/app.py365 def update_tasks(self) -> None:CODE
LOW⚡src/inspect_ai/_display/textual/app.py374 def update_samples(self) -> None:CODE
LOW⚡src/inspect_ai/_display/textual/app.py381 def update_footer(self) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py394 def set_unread(unread: int | None) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py408 async def set_active_tab(active: str) -> None:CODE
168 more matches not shown…
AI Slop Vocabulary41 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_sample_source.py322 # once epoch 4 completed, every time under its own id (an RL harnessCOMMENT
MEDIUM⚡tests/checkpoint/test_current_checkpointer_post_exit.py224# harness faithfully reproduces the normal span/checkpoint pairing — and thatCOMMENT
MEDIUMtests/checkpoint/resume_kill_harness.py253 # this harness drives — so stamp a fixed amount, giving the budget-carryCOMMENT
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json234 "content": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tackCODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json257 "content": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tackCODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json1545 "result": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tacklCODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json1577 "output": "{\"jsonrpc\": \"2.0\", \"result\": {\"web_url\": \"https://www.aisi.gov.uk/work\", \"main_content\"CODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json2102 "result": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tacklCODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json2134 "output": "{\"jsonrpc\": \"2.0\", \"result\": {\"web_url\": \"https://www.aisi.gov.uk/work\", \"main_content\"CODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json2732 "replaced": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/newsCODE
MEDIUM…lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json3577 "cb6d9b3382c23a2729d389c44be2fb26": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.CODE
MEDIUMtests/agent/deepagent/test_deepagent_background.py984 # deterministically without a scheduling barrier the harness lacks.)COMMENT
MEDIUMtests/agent/test_acp/test_deepagent_integration.py479 # ACP harness. The cancel pathway itself is tested inCOMMENT
MEDIUMtests/agent/test_acp/test_server_dispatch.py102 # mirrors what the eval harness produces from the defaultCOMMENT
MEDIUMtests/agent/test_acp/test_action_methods.py957 # Set up the cancel-propagation harness in a real task group.COMMENT
MEDIUMtests/agent/test_acp/test_approval.py1204 # Scan all blocks for the view markdown — robust to layoutCOMMENT
MEDIUMtests/agent/test_acp/test_tui/test_cancel_card.py242 # Don't call original_notify — the harness can't render toasts.COMMENT
MEDIUM⚡tests/agent/test_acp/test_tui/test_widgets.py68# Single-widget harnessCOMMENT
MEDIUMtests/agent/test_acp/test_tui/test_widgets.py1179 # comprehensive fingerprint should detect the change and theCOMMENT
MEDIUMexamples/skills/skills/system-info/scripts/sysinfo.sh3# Outputs comprehensive system details in a structured formatCOMMENT
MEDIUM.github/workflows/test.yml1# Test harness shell. GitHub only exposes workflow_dispatch for workflows thatCOMMENT
MEDIUM…x_tools/src/inspect_sandbox_tools/_util/user_switch.py39 """The identity a child process must switch to in order to run as ``user``.STRING
LOWsrc/inspect_ai/_util/notebook.py53 # notebook cells, if not just return an empty moduleCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/record.py393 # For now, I'll just return an empty dictCOMMENT
LOWsrc/inspect_ai/util/_limit.py229 # gone out of scope for the sample so we just return that snapshotCOMMENT
MEDIUMsrc/inspect_ai/util/_checkpoint/checkpointer_impl.py581 # checkpoint span. Skip on the harness-driven final fire —COMMENT
MEDIUMsrc/inspect_ai/util/_sandbox/service.py643 # under an eval harness -- a sandbox-awareness leak that wasCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py228 # to clean exit and the harness will run scoring next. StateCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py480 # to clean exit and the harness will run scoring next. StateCOMMENT
LOWsrc/inspect_ai/agent/_acp/tui/session_screen.py184 # …); duplicating them in the footer would just add noise.COMMENT
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/cancel_card.py232 # ``fails_on_error`` is True, but stay robust if a futureCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/cancel_card.py267 # but stay robust if a future refactor changes theCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/transcript.py158 # Gate on fingerprint change — the comprehensiveCOMMENT
LOWsrc/inspect_ai/_view/common.py656 # then just return that fileCOMMENT
LOWsrc/inspect_ai/model/_call_tools.py1369 # if the function takes **kwargs: Any then just pass the tool arguments throughCOMMENT
LOWsrc/inspect_ai/model/_providers/openai.py354 # side step that complexity and just use two different batchers.COMMENT
LOWsrc/inspect_ai/log/_recorders/buffer/database.py745 # this will just return no events and no attachments until theCOMMENT
LOWsrc/inspect_ai/log/_recorders/buffer/filestore.py469 # we'll just return NoneCOMMENT
LOWsrc/inspect_ai/_eval/loader.py703 # if there is no solver file then just create from the registry by nameCOMMENT
MEDIUMsrc/inspect_ai/tool/_sandbox_tools_utils/sandbox.py627 # TODO: once we get the github CI/CD actions robust, this should be fatalCOMMENT
LOWsrc/inspect_ai/tool/_mcp/_local.py364 # to the session, we can just return nitCOMMENT
AI Structural Patterns82 hits · 78 pts
SeverityFileLineSnippetContext
LOWtests/test_sample_limits.py924CODE
LOWtests/log/test_eval_log.py3461CODE
LOWtests/approval/test_approval.py838CODE
LOW…sandbox_tools/_remote_tools/_mcp/mcp_server_session.py143CODE
LOWsrc/inspect_ai/_control/server.py882CODE
LOWsrc/inspect_ai/_control/server.py1395CODE
LOWsrc/inspect_ai/_control/server.py1487CODE
LOWsrc/inspect_ai/_control/limits.py155CODE
LOWsrc/inspect_ai/_control/limits.py242CODE
LOWsrc/inspect_ai/_control/events.py141CODE
LOWsrc/inspect_ai/_control/events.py204CODE
LOWsrc/inspect_ai/_control/eval_state.py446CODE
LOWsrc/inspect_ai/_control/eval_state.py503CODE
LOWsrc/inspect_ai/_control/log_dir/samples.py114CODE
LOWsrc/inspect_ai/util/_subprocess.py82CODE
LOWsrc/inspect_ai/util/_subprocess.py96CODE
LOWsrc/inspect_ai/util/_subprocess.py109CODE
LOWsrc/inspect_ai/util/_subprocess.py167CODE
LOWsrc/inspect_ai/util/_subprocess.py182CODE
LOWsrc/inspect_ai/util/_subprocess.py197CODE
LOWsrc/inspect_ai/util/_subprocess.py211CODE
LOWsrc/inspect_ai/util/_subtask.py151CODE
LOWsrc/inspect_ai/util/_checkpoint/hydrate.py512CODE
LOWsrc/inspect_ai/util/_sandbox/local.py112CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py82CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py428CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py447CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py465CODE
LOWsrc/inspect_ai/dataset/_dataset.py32CODE
LOWsrc/inspect_ai/dataset/_sources/file.py14CODE
LOWsrc/inspect_ai/dataset/_sources/csv.py53CODE
LOWsrc/inspect_ai/dataset/_sources/json.py27CODE
LOWsrc/inspect_ai/dataset/_sources/hf.py123CODE
LOWsrc/inspect_ai/agent/_react.py57CODE
LOWsrc/inspect_ai/agent/_bridge/bridge.py360CODE
LOWsrc/inspect_ai/agent/_bridge/types.py72CODE
LOWsrc/inspect_ai/agent/_bridge/sandbox/bridge.py54CODE
LOWsrc/inspect_ai/agent/_bridge/sandbox/types.py53CODE
LOWsrc/inspect_ai/agent/_deepagent/agent_tool.py282CODE
LOWsrc/inspect_ai/agent/_deepagent/plan.py35CODE
LOWsrc/inspect_ai/agent/_deepagent/subagent.py56CODE
LOWsrc/inspect_ai/agent/_deepagent/research.py35CODE
LOWsrc/inspect_ai/agent/_deepagent/prompt.py234CODE
LOWsrc/inspect_ai/agent/_deepagent/deepagent.py50CODE
LOWsrc/inspect_ai/agent/_deepagent/general.py32CODE
LOWsrc/inspect_ai/solver/_basic_agent.py52CODE
LOWsrc/inspect_ai/solver/_task_state.py144CODE
LOWsrc/inspect_ai/scorer/_model.py35CODE
LOWsrc/inspect_ai/scorer/_model.py115CODE
LOWsrc/inspect_ai/_view/fastapi_server.py149CODE
LOWsrc/inspect_ai/_view/fastapi_server.py860CODE
LOWsrc/inspect_ai/_view/view.py24CODE
LOWsrc/inspect_ai/_cli/_scanner.py23CODE
LOWsrc/inspect_ai/_cli/_scanner.py91CODE
LOWsrc/inspect_ai/_cli/eval.py1952CODE
LOWsrc/inspect_ai/_cli/ctl/_fetch.py485CODE
LOWsrc/inspect_ai/_cli/ctl/_sample_read.py457CODE
LOWsrc/inspect_ai/_cli/ctl/_config.py421CODE
LOWsrc/inspect_ai/_cli/ctl/_config.py933CODE
LOWsrc/inspect_ai/model/_model.py2379CODE
22 more matches not shown…
Redundant / Tautological Comments53 hits · 75 pts
SeverityFileLineSnippetContext
LOWtests/model/test_message_ids.py177 # Output message should have an IDCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py117 # Check if the model used server-side toolsCOMMENT
LOWtests/model/test_stable_message_ids.py157 # Output message should have IDCOMMENT
LOWtests/model/providers/util/test_batch.py101 # Check if batch should failCOMMENT
LOWtests/model/providers/util/test_batch.py107 # Check if batch is "complete" based on elapsed timeCOMMENT
LOWtests/log/test_eval_log.py206 # Set timestamp to a timezone-aware datetime object because when serializing toCOMMENT
LOWexamples/structured.py170 # Check if the output matches the expected RGB formatSTRING
LOWscripts/pypi-release.py814 # Check if there are any other versions presentCOMMENT
LOWscripts/pypi-release.py874 # Check if .pypirc exists or environment variables are setCOMMENT
LOWscripts/pypi-release.py998 # Check if we're ahead of remoteCOMMENT
LOWscripts/pypi-release.py1041 # Check if we're in a git repositoryCOMMENT
LOWscripts/pypi-release.py1091 # Check if branch is up to dateCOMMENT
LOWscripts/pypi-release.py1102 # Check if tag already existsCOMMENT
LOWscripts/pypi-release.py1234 # Check if correct version already existsCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py107 # Read the file contentCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py112 # Check if old_str is unique in the fileCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py215 # Check if path existsCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py224 # Check if the path points to a directoryCOMMENT
LOW…ols/src/inspect_sandbox_tools/_util/pseudo_terminal.py68 # Close the file descriptorsCOMMENT
LOW…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py154 # Check if process has finishedCOMMENT
LOWsrc/inspect_ai/_util/generate_config_args.py129 # Check if it's a file pathCOMMENT
LOWsrc/inspect_ai/_util/generate_config_args.py149 # Check if it looks like a file path that doesn't existCOMMENT
LOWsrc/inspect_ai/_util/platform.py53 # Check if running in VS Code Jupyter notebook or interactive windowCOMMENT
LOWsrc/inspect_ai/_util/platform.py61 # Check if running in a VS Code terminalCOMMENT
LOWsrc/inspect_ai/_util/local_server.py162 os.kill(pid, 0) # Check if process existsCODE
LOWsrc/inspect_ai/_util/local_server.py254 # Check if the process is still aliveCOMMENT
LOWsrc/inspect_ai/_util/file.py528 # Check if it's already a URICOMMENT
LOWsrc/inspect_ai/_util/file.py656 # Open the file using fsspec and retrieve the file's informationCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/samples/table.py223 # Check if it's specifically the pyarrow offset overflow errorCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/samples/table.py661 # Check if this is a PyArrow-backed columnCOMMENT
LOWsrc/inspect_ai/util/_json.py475 # Check if it's already Optional/Union with NoneCOMMENT
LOWsrc/inspect_ai/util/_sandbox/self_check.py506 # Write the file byte-by-byte from ASCII-only octal escapes, then cat it, soCOMMENT
LOWsrc/inspect_ai/_cli/score.py323 # Print the results panelCOMMENT
LOWsrc/inspect_ai/model/_openai_responses.py363 # Check if this is a compaction marker messageCOMMENT
LOWsrc/inspect_ai/model/_openai_responses.py1444 # Check if this is a valid OpenAI action (correct type + required fields)COMMENT
LOWsrc/inspect_ai/model/_openai_responses.py1618 # Check if result was cleared during compactionCOMMENT
LOWsrc/inspect_ai/model/_model_info.py166 # Check if the second-to-last part is a known service prefixCOMMENT
LOWsrc/inspect_ai/model/_model_info.py172 # Check if this is a hosting provider that needs org detectionCOMMENT
LOWsrc/inspect_ai/model/_providers/mockllm.py51 # Check if it's a callable functionCOMMENT
LOWsrc/inspect_ai/model/_providers/google.py2404 # Check if this block has an associated thought_signature andCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py1231 # Check if model doesn't support compactionCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py5712 # Check if result was cleared during compactionCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py5929 # Check if previous message has corresponding tool_use blocksCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py5973 # Check if next message has corresponding tool_result blocksCOMMENT
LOWsrc/inspect_ai/model/_providers/sglang.py181 # Check if process is still aliveCOMMENT
LOWsrc/inspect_ai/log/_bundle.py241 # Open the file for writing to save the updated contentSTRING
LOWsrc/inspect_ai/event/_timeline_repr.py202 # Check if span overlaps with any span in the current clusterCOMMENT
LOW…spect_ai/tool/_sandbox_tools_utils/validate_distros.py122 # Check if it's for a supported architectureCOMMENT
LOWsrc/inspect_ai/tool/_sandbox_tools_utils/sandbox.py864 # Check if we're in a git repoCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py305 # Read fileCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py373 # Read file contentCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py378 # Check if old_str is uniqueCOMMENT
LOW…_tools/_computer/_resources/entrypoint/xvfb_startup.sh30# Check if Xvfb is already runningCOMMENT
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALtests/_view/test_view_server.py1459 buffer = inspect_ai.log._recorders.buffer.filestore.SampleBufferFilestore(CODE
CRITICALtests/_view/test_view_server.py1814 inspect_ai.log._recorders.buffer.filestore.SampleManifest(CODE
CRITICALtests/_view/test_view_server.py1825 inspect_ai.log._recorders.buffer.filestore.Segment(CODE
CRITICALtests/_view/test_view_server.py1832 manifest = inspect_ai.log._recorders.buffer.filestore.Manifest(CODE
CRITICALtests/model/test_should_retry_classification.py797 from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/model/test_should_retry_classification.py812 from azure.core.exceptions import HttpResponseErrorCODE
Structural Annotation Overuse29 hits · 52 pts
SeverityFileLineSnippetContext
LOW⚡design/recover.md434### Step 1: Read crashed .eval files (done: `162628a3f`)COMMENT
LOW⚡design/recover.md444### Step 2: Read recovery data from sample buffer database (done: `664a9a43b`)COMMENT
LOW⚡design/recover.md454### Step 3: Reconstruct EvalSample from buffer DB data (done: `a05ce7fda`)COMMENT
LOWdesign/recover.md468### Step 4: Write recovered .eval file (done: `493de0a1d`)COMMENT
LOWtests/model/test_compaction_edit_server_tools.py101 # Step 1: Initial request with server-side toolsCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py129 # Step 2: Follow-up to build more historyCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py143 # Step 3: Another follow-upCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py158 # Step 4: Compact history - clear older tool resultsCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py181 # Step 5: Final request with compacted history - THIS SHOULD NOT CAUSE 400 ERRORCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py90 # Step 2: Execute tool calls if presentCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py95 # Step 3: Ask follow-up questionCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py112 # Step 4: Add thank you messageCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py115 # Step 5: Compact history - remove ALL thinking blocksCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py145 # Step 6: Call model with compacted historyCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py152 # Step 7: This should NOT raise an errorCOMMENT
LOWtests/model/test_compaction_edit_thinking.py61 # Step 1: System prompt that STRONGLY requires tool use + user promptCOMMENT
LOWtests/model/test_web_search_exclude_none.py97 # Step 1: Convert OpenAI Response to ChatMessageAssistantCOMMENT
LOWtests/model/test_web_search_exclude_none.py136 # Step 2: Convert ChatMessageAssistant back to OpenAI Input ItemsCOMMENT
LOW⚡tests/model/providers/test_google.py3436 # Step 1: Simulate model returning an image via inline_dataCOMMENT
LOWtests/model/providers/test_google.py3459 # Step 2: Build assistant message and convert back to Google ContentCOMMENT
LOW⚡tests/model/providers/test_openai_responses.py1490 # Step 2: Build an assistant message with the image contentCOMMENT
LOW⚡tests/model/providers/test_openai_responses.py1497 # Step 3: Convert back to input items (simulating the next turn)COMMENT
LOWtests/model/providers/test_openai_responses.py1473 # Step 1: Model returns an image generation callCOMMENT
LOWsrc/inspect_ai/model/_providers/_anthropic_citations.py109 # NOTE: This function cannot assume that this module was responsible for theCOMMENT
LOWsrc/inspect_ai/log/_log.py1327 # WARNING: The order of these fields is important for the log file format.COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py223 # Step 1: Read the crashed .eval file metadataCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py260 # Step 2: Read buffer DB metadata (lightweight — just summaries)COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py296 # Step 3: Determine recovery path and writeCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py339 # Step 4: Stream all samples into the recovered file.COMMENT
Fake / Example Data41 hits · 46 pts
SeverityFileLineSnippetContext
LOWdesign/litellm-proxy.md704- The `get_model_info()` dummy-key path already catches exceptions and returnsCODE
LOW⚡tests/tools/test_web_search.py280 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOW⚡tests/tools/test_web_search.py289 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOW⚡tests/tools/test_web_search.py298 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOW⚡tests/tools/test_web_search.py307 return_value=("fake-key", "fake-cse-id"),CODE
LOW⚡tests/tools/test_web_search.py314 return_value=("fake-key", "fake-cse-id"),CODE
LOW⚡tests/tools/test_web_search.py322 "fake-key" if key == "EXA_API_KEY" else defaultCODE
LOW⚡tests/tools/test_web_search.py331 "fake-key" if key == "EXA_API_KEY" else defaultCODE
LOW⚡tests/tools/test_web_search.py340 "fake-key" if key == "EXA_API_KEY" else defaultCODE
LOWtests/tools/test_web_search.py365 return_value=("fake-key", "fake-cse-id"),CODE
LOWtests/tools/test_web_search.py396 return_value=("fake-key", "fake-cse-id"),CODE
LOWtests/tools/test_tools_bridge.py795 api_key="local-fake-key",CODE
LOWtests/tools/test_web_search_exa.py40 with patch.dict("os.environ", {"EXA_API_KEY": "dummy-key"}):CODE
LOW⚡tests/tools/test_web_search_tavily.py59 with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}):CODE
LOWtests/tools/test_web_search_tavily.py113 with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}):CODE
LOW⚡tests/tools/test_web_search_tavily.py127 with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}):CODE
LOW⚡tests/tools/test_web_search_tavily.py144 with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}):CODE
LOWtests/tools/test_web_search_google.py94 mock_get_keys.return_value = ("dummy-key", "dummy-cse-id")CODE
LOWtests/tools/test_web_search_google.py141 mock_get_keys.return_value = ("dummy-key", "dummy-cse-id")CODE
LOWtests/tools/test_web_search_google.py174 mock_get_keys.return_value = ("dummy-key", "dummy-cse-id")CODE
LOW⚡tests/util/test_store_nested_types.py97 "street": "123 Main St",CODE
LOWtests/util/test_format_template.py171 address=Address(street="123 Main St", city="Anytown"),CODE
LOW⚡tests/util/test_json_schema.py169 instance = Model(name="Alice", address={"street": "123 Main St", "city": "NYC"})CODE
LOW⚡tests/util/test_json_schema.py171 assert instance.address.street == "123 Main St"CODE
LOWtests/util/test_json_schema.py200 "contact": {"email": "bob@example.com", "phone": "555-1234"},CODE
LOWtests/agent/test_sandbox_agent_bridge_media.py27 api_key="local-fake-key",CODE
LOWtests/model/test_token_counting_integration.py72 assert result[0]["name"] == "placeholder"CODE
LOWtests/model/test_compaction.py1801 user_msg("NEW " + "lorem ipsum dolor " * 300, "u2"),CODE
LOW⚡tests/model/providers/test_vllm.py37 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_vllm.py318 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_litellm_proxy_reasoning.py176 id="placeholder",CODE
LOW⚡tests/model/providers/test_hf.py291 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOW⚡tests/model/providers/test_hf.py293 assert chat == "user: Lorem ipsum dolor\n"CODE
LOWtests/model/providers/test_hf.py67 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py93 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py373 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py375 assert chat == "[user] Lorem ipsum dolor"CODE
LOWexamples/http_proxy/claude.py56 "FUTUREMODEL_API_KEY": "fm-fake-key-for-demo",CODE
LOW⚡src/inspect_ai/model/_openai_responses.py1224 param["id"] = "dummy-id"CODE
LOWsrc/inspect_ai/model/_openai_responses.py2625 "name": "placeholder",CODE
LOWsrc/inspect_ai/model/_providers/anthropic.py5950 name="placeholder",CODE
Verbosity Indicators23 hits · 41 pts
SeverityFileLineSnippetContext
LOWtests/model/test_compaction_edit_server_tools.py101 # Step 1: Initial request with server-side toolsCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py129 # Step 2: Follow-up to build more historyCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py143 # Step 3: Another follow-upCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py158 # Step 4: Compact history - clear older tool resultsCOMMENT
LOWtests/model/test_compaction_edit_server_tools.py181 # Step 5: Final request with compacted history - THIS SHOULD NOT CAUSE 400 ERRORCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py90 # Step 2: Execute tool calls if presentCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py95 # Step 3: Ask follow-up questionCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py112 # Step 4: Add thank you messageCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py115 # Step 5: Compact history - remove ALL thinking blocksCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py145 # Step 6: Call model with compacted historyCOMMENT
LOW⚡tests/model/test_compaction_edit_thinking.py152 # Step 7: This should NOT raise an errorCOMMENT
LOWtests/model/test_compaction_edit_thinking.py61 # Step 1: System prompt that STRONGLY requires tool use + user promptCOMMENT
LOWtests/model/test_web_search_exclude_none.py97 # Step 1: Convert OpenAI Response to ChatMessageAssistantCOMMENT
LOWtests/model/test_web_search_exclude_none.py136 # Step 2: Convert ChatMessageAssistant back to OpenAI Input ItemsCOMMENT
LOW⚡tests/model/providers/test_google.py3436 # Step 1: Simulate model returning an image via inline_dataCOMMENT
LOWtests/model/providers/test_google.py3459 # Step 2: Build assistant message and convert back to Google ContentCOMMENT
LOW⚡tests/model/providers/test_openai_responses.py1490 # Step 2: Build an assistant message with the image contentCOMMENT
LOW⚡tests/model/providers/test_openai_responses.py1497 # Step 3: Convert back to input items (simulating the next turn)COMMENT
LOWtests/model/providers/test_openai_responses.py1473 # Step 1: Model returns an image generation callCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py223 # Step 1: Read the crashed .eval file metadataCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py260 # Step 2: Read buffer DB metadata (lightweight — just summaries)COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py296 # Step 3: Determine recovery path and writeCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py339 # Step 4: Stream all samples into the recovered file.COMMENT
Dead Code10 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/tools/test_tool_error.py75CODE
MEDIUMtests/util/test_async.py440CODE
MEDIUM…ts/agent/test_acp/test_tui/test_inline_request_card.py129CODE
MEDIUMtests/model/providers/test_mistral.py958CODE
MEDIUMtests/model/providers/test_sagemaker.py1729CODE
MEDIUMtests/model/providers/test_openai.py714CODE
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/cancel_card.py162CODE
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/approval_card.py112CODE
MEDIUM…spect_ai/agent/_acp/tui/widgets/inline_request_card.py115CODE
MEDIUM…spect_ai/agent/_acp/tui/widgets/inline_request_card.py126CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtests/model/providers/test_bedrock_adaptive_thinking.py360 # the base Sonnet 5 keeps forced tool choice as requestedCOMMENT
Overly Generic Function Names7 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_flaky_retry.py168 def test_function():CODE
LOWtests/sentinel/test_sentinel_replay.py449def helper(model: Any) -> Agent:CODE
LOWtests/sentinel/test_sentinel_dispatch.py5864 def run_task(model: Any = "mockllm/model", **task: Any) -> EvalLog:CODE
LOWtests/review/test_review.py630 def helper() -> Agent:CODE
LOW…sandbox_tools/src/inspect_sandbox_tools/_cli/server.py138 async def handle_request(request: Request) -> Response:CODE
LOWsrc/inspect_ai/_util/_async.py70 async def run_task(func: Callable[[], Awaitable[T]], index: int) -> None:CODE
LOWsrc/inspect_ai/util/_collect.py34 async def run_task(index: int, task: Awaitable[T]) -> None:CODE