Repository Analysis

UKGovernmentBEIS/inspect_ai

Inspect: A framework for large language model evaluations

30.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of UKGovernmentBEIS/inspect_ai, a Python project with 2,504 GitHub stars. SynthScan v2.0 examined 538,110 lines of code across 1804 source files, recording 12602 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 30.1 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

30.1
Adjusted Score
30.1
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.5K
Stars
Python
Language
538.1K
Lines of Code
1.8K
Files
12.6K
Pattern Hits
2026-08-09
Scan Date
0.11
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 6HIGH 201MEDIUM 1417LOW 10978

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers8199 hits · 7530 pts
SeverityFileLineSnippetContext
LOWdesign/ctl/config-log-persistence.md161def effective_generate_config(log: EvalLog) -> GenerateConfig: ...CODE
LOWdesign/ctl/generate-progress.md90def report_active_model_progress(output_tokens: int | None = None) -> None:CODE
LOWtests/test_task_cancel.py24def test_abort_cancel_produces_error_status() -> None:CODE
LOWtests/test_task_cancel.py83def test_abort_cancel_not_retried_without_task_retries() -> None:CODE
LOWtests/test_task_cancel.py156def test_score_resolution_cancel_completes_eval() -> None:CODE
LOWtests/test_task_cancel.py212def test_error_resolution_cancel_completes_eval() -> None:CODE
LOWtests/test_task_cancel.py254def test_error_resolution_rejected_when_samples_fail_on_error() -> None:CODE
LOWtests/test_task_cancel.py263 def error_resolution_rejected_solver():CODE
LOWtests/test_task_cancel.py292def test_error_resolution_downgraded_for_materializing_fail_on_error_sample() -> None:CODE
LOWtests/test_task_cancel.py318 def downgrade_resolution_solver():CODE
LOWtests/test_task_cancel.py355def test_sample_cancelled_interrupt_action() -> None:CODE
LOWtests/test_task_cancel.py364 def cancelled_interrupt_solver():CODE
LOWtests/test_task_cancel.py402def test_score_resolution_sweep_preserves_cancelled_sample() -> None:CODE
LOWtests/test_task_cancel.py415 def cancelled_then_score_solver():CODE
LOWtests/test_task_cancel.py452def test_interrupt_in_retry_drain_window_resolves_cancelled() -> None:CODE
LOWtests/test_task_cancel.py479 def drain_window_error_solver():CODE
LOWtests/test_task_cancel.py549def test_external_interrupt_with_pending_resolution_logs_cancelled(CODE
LOWtests/test_task_cancel.py605def test_errored_attempt_marked_retry_pending() -> None:CODE
LOWtests/test_sample_limits.py139def test_message_limit_generate():CODE
LOWtests/test_sample_limits.py143def test_message_limit_append():CODE
LOWtests/test_sample_limits.py147def test_message_limit_overwrite():CODE
LOWtests/test_sample_limits.py151def test_message_limit_reached_before_assistant_message():CODE
LOWtests/test_sample_limits.py68def looping_concurrecy_solver():CODE
LOWtests/test_sample_limits.py167def test_message_limit_does_not_apply_to_scorer():CODE
LOWtests/test_sample_limits.py216def test_token_limit_does_not_apply_to_scorer():CODE
LOWtests/test_sample_limits.py262def test_output_token_limit_string_form():CODE
LOWtests/test_sample_limits.py297def test_token_limit_type_absent_for_int_limit():CODE
LOWtests/test_sample_limits.py343def test_turn_limit_does_not_apply_to_scorer():CODE
LOWtests/test_sample_limits.py391def test_sample_limits_available_to_scorer():CODE
LOWtests/test_sample_limits.py422def test_solver_scorer_combined_timeout():CODE
LOWtests/test_sample_limits.py431def test_solver_scorer_combined_timeout_exceeded():CODE
LOWtests/test_sample_limits.py442def test_solver_timeout_scored():CODE
LOWtests/test_sample_limits.py451def test_solver_timeout_not_scored():CODE
LOWtests/test_sample_limits.py470def test_working_limit_reporting():CODE
LOWtests/test_sample_limits.py487def test_working_limit_does_not_raise_during_sandbox_teardown() -> None:CODE
LOWtests/test_sample_limits.py502def check_working_limit_event(log: EvalLog, working_limit: int):CODE
LOWtests/test_sample_limits.py556def test_cost_limit_without_cost_data_errors() -> None:CODE
LOWtests/test_sample_limits.py568def test_model_without_cost_data_errors() -> None:CODE
LOWtests/test_sample_limits.py585def test_cost_data_without_cost_limit_tracks_cost() -> None:CODE
LOWtests/test_sample_limits.py616def test_cost_data_keyed_by_full_model_string_tracks_cost() -> None:CODE
LOWtests/test_sample_limits.py653def test_two_models_both_with_cost_data_tracks_cost() -> None:CODE
LOWtests/test_sample_limits.py704def test_task_level_cost_limit_without_cost_data_errors() -> None:CODE
LOWtests/test_sample_limits.py716def test_task_level_cost_limit() -> None:CODE
LOWtests/test_sample_limits.py747def test_model_cost_config_file() -> None:CODE
LOWtests/test_sample_limits.py779def test_model_cost_config_dict() -> None:CODE
LOWtests/test_retry.py65def test_eval_retry_with_task_name():CODE
LOWtests/test_retry.py84def test_eval_retry_with_model_generate_config():CODE
LOWtests/test_retry.py109def test_eval_retry_preserves_token_limit_type():CODE
LOWtests/test_retry.py126def test_eval_retry_honors_zero_max_retries(CODE
LOWtests/test_retry.py175def test_eval_retry_resolves_relative_sandbox_paths():CODE
LOWtests/test_retry.py284def test_eval_retry_preserves_scorer_attribution(monkeypatch) -> None:CODE
LOWtests/test_retry.py325def test_eval_retry_preserves_token_usage():CODE
LOWtests/test_retry.py347def test_eval_retry_token_usage_multi_retry():CODE
LOWtests/test_retry.py400def _reuse_flush_probe_solver(log_dir: str, probe_dir: str):CODE
LOWtests/test_retry.py448def test_eval_retry_flushes_reused_samples_during_live_run(tmp_path: Path):CODE
LOWtests/test_list_task.py15def test_task_list_multiple_file():CODE
LOWtests/test_list_task.py23def test_task_list_multiple_dir():CODE
LOWtests/test_task_retry_error_history.py61def test_task_retry_seeds_error_retries_on_sample() -> None:CODE
LOWtests/test_task_retry_error_history.py77def test_task_retry_retries_in_sample_summaries() -> None:CODE
LOWtests/test_task_retry_error_history.py93def test_is_cancellation_error_distinguishes_cancellations() -> None:CODE
8139 more matches not shown…
Decorative Section Separators1141 hits · 4266 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py260# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py262# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py421# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py423# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py563# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py565# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py641# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py643# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py888# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py890# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py927# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_pause.py929# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_buffer.py219# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_server.py1057# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_server.py1059# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py379# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py381# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py513# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_cancel.py515# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py311# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py424# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py426# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py617# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py619# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py759# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py761# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py1151# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py1153# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py1595# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_limits.py1597# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py180# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py504# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py506# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py919# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py921# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1061# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1063# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1144# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1485# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_control/test_requeue.py1487# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/tools/test_tools_bridge.py24# =============================================================================COMMENT
MEDIUMtests/tools/test_tools_bridge.py26# =============================================================================COMMENT
1081 more matches not shown…
Unused Imports1246 hits · 1032 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py15CODE
LOWtests/test_eval_set_scanner.py3078CODE
LOWtests/test_disk_sample_store.py22CODE
LOWtests/test_disk_sample_store.py23CODE
LOWtests/_control/test_state.py20CODE
LOWtests/checkpoint/test_eval_checkpoints.py3CODE
LOWtests/checkpoint/test_sample_checkpoints.py3CODE
LOWtests/checkpoint/test_resolve.py3CODE
LOWtests/checkpoint/conftest.py11CODE
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_current_checkpointer_post_exit.py31CODE
LOWtests/checkpoint/test_sandbox_restic_repo.py13CODE
LOWtests/checkpoint/test_host_egress.py9CODE
LOWtests/checkpoint/test_checkpoint_e2e.py30CODE
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.py20CODE
LOWtests/checkpoint/test_schemas.py9CODE
LOWtests/checkpoint/test_sandbox_egress_extract.py11CODE
LOWtests/checkpoint/test_sandbox_paths.py3CODE
LOWtests/checkpoint/test_normalize.py10CODE
LOWtests/util/test_restic_ops.py10CODE
LOWtests/util/test_zipfile_multiframe.py8CODE
LOWtests/util/test_zipfile_multiframe.py23CODE
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_tool_search.py9CODE
LOWtests/agent/test_bridge_provider_errors.py10CODE
LOWtests/agent/test_react_checkpoint_resume.py1CODE
LOWtests/agent/test_bridge_namespace_tool.py3CODE
LOWtests/agent/deepagent/test_deepagent_examples.py18CODE
LOWtests/agent/deepagent/test_deepagent_background.py11CODE
LOWtests/agent/test_channel/test_coalesce.py11CODE
LOWtests/agent/test_channel/test_channel.py3CODE
LOWtests/agent/test_acp/test_server_dispatch.py15CODE
LOWtests/agent/test_acp/test_disconnect_log_filter.py12CODE
LOWtests/agent/test_acp/test_server_forwarding.py19CODE
LOWtests/agent/test_acp/test_standard_acp_client.py22CODE
LOWtests/agent/test_acp/test_plan_policy.py11CODE
LOWtests/agent/test_acp/test_raw_events.py19CODE
LOWtests/agent/test_acp/test_action_methods.py14CODE
LOWtests/agent/test_acp/test_discovery.py16CODE
LOWtests/agent/test_acp/test_elicitation_e2e.py21CODE
LOWtests/agent/test_acp/test_stdio_bridge.py11CODE
1186 more matches not shown…
Deep Nesting522 hits · 456 pts
SeverityFileLineSnippetContext
LOWtests/test_eval_set_scanner.py1093CODE
LOWtests/_control/test_pause.py932CODE
LOWtests/_control/test_pause.py962CODE
LOWtests/_control/test_pause.py963CODE
LOWtests/_control/test_requeue.py1393CODE
LOWtests/tools/test_mcp_tools.py82CODE
LOWtests/tools/test_mcp_tools.py500CODE
LOWtests/tools/test_mcp_tools.py123CODE
LOWtests/tools/test_mcp_tools.py132CODE
LOWtests/tools/test_skill.py490CODE
LOWtests/agent/test_agent_compaction.py208CODE
LOWtests/agent/test_agent_react.py148CODE
LOWtests/agent/test_agent_react.py149CODE
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.py879CODE
LOWtests/agent/test_acp/test_server_forwarding.py157CODE
LOWtests/agent/test_acp/test_standard_acp_client.py54CODE
LOWtests/agent/test_acp/test_standard_acp_client.py224CODE
LOWtests/agent/test_acp/test_standard_acp_client.py148CODE
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.py471CODE
LOWtests/agent/test_acp/test_action_methods.py514CODE
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.py1439CODE
LOWtests/agent/test_acp/test_approval.py1493CODE
LOWtests/agent/test_acp/test_tui/test_client.py89CODE
LOWtests/_cli/test_acp_cli.py71CODE
LOWtests/model/test_compaction_edit_server_tools.py60CODE
LOWtests/model/test_compaction_edit_thinking.py48CODE
LOWtests/model/test_compaction.py736CODE
LOWtests/model/test_model_info.py300CODE
LOWtests/model/providers/test_anthropic.py59CODE
LOWtests/model/providers/test_anthropic_cache_control.py55CODE
LOWtests/model/providers/test_perplexity.py22CODE
LOWtests/view/test_sample_list_states.py368CODE
LOWtests/view/test_sample_list_states.py371CODE
LOWtests/log/test_eval_log.py378CODE
LOWtests/log/test_eval_log.py1237CODE
LOWtests/log/test_log_formats.py156CODE
LOWtests/log/test_log_formats.py555CODE
LOWtests/log/test_convert.py625CODE
LOWtests/test_helpers/utils.py36CODE
LOWtests/test_helpers/utils.py72CODE
LOWtests/test_helpers/utils.py96CODE
LOWtests/test_helpers/outline/oracle.py320CODE
LOWtests/test_helpers/outline/oracle.py608CODE
LOWtests/test_helpers/outline/oracle.py632CODE
LOWtests/test_helpers/outline/oracle.py798CODE
LOWtests/test_helpers/outline/compare.py172CODE
LOWdocs/_scripts/generate_reasoning_defaults_table.py34CODE
462 more matches not shown…
Docstring Block Structure90 hits · 450 pts
SeverityFileLineSnippetContext
HIGH…ort/src/inspect_tool_support/_util/json_rpc_helpers.py43 Validates RPC method parameters and handles the method execution. This function validates the provided parametSTRING
HIGHsrc/inspect_sandbox_tools/tests/conftest.py79Execute 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.py399Create a registry object. Creates objects registered via decorator (e.g. `@task`, `@solver`). Note that this caSTRING
HIGHsrc/inspect_ai/_util/registry.py475Lookup RegistryInfo for an object. Args: o (object): Object to lookup info for Returns: RegistSTRING
HIGHsrc/inspect_ai/_util/download.py44Download a file and verify its SHA256 checksum. If `dest` already exists and its checksum matches, the download is STRING
HIGHsrc/inspect_ai/_util/download.py112Download a Google Drive file via `gdown` and verify SHA256. Useful for fetching public-link Google Drive assets (daSTRING
HIGHsrc/inspect_ai/_util/format.py49Format 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.py554 Convert a string into a safe filename by removing or replacing unsafe characters. Args: s (str): The iSTRING
HIGHsrc/inspect_ai/_util/dateutil.py160Parse and normalize ISO datetime string to UTC. For legacy string temporal fields that cannot be converted to UtcDaSTRING
HIGHsrc/inspect_ai/_util/_async.py41Runs 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/async_zip.py396Open 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.py103Context manager for atomic local-file writes with durability guarantees. Implements the write-to-temporary-then-atoSTRING
HIGHsrc/inspect_ai/util/_json.py373Convert JSON schema to Pydantic BaseModel. Handles nested objects, arrays, and basic validations. Args: STRING
HIGHsrc/inspect_ai/util/_subprocess.py86Execute and wait for a subprocess. Convenience method for solvers, scorers, and tools to launch subprocesses. ASTRING
HIGHsrc/inspect_ai/util/_store.py227Convert a JsonChange to a jsonpatch operation dict with validation. Args: change: The JsonChange to convertSTRING
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.py575Run a command and return the result without streaming. Submits the command, polls until completion, and returns ExeSTRING
HIGHsrc/inspect_ai/util/_sandbox/compose.py367Parse a Docker Compose file into a ComposeConfig. Args: file: Path to the compose file. multiple_seSTRING
HIGHsrc/inspect_ai/util/_sandbox/context.py173Get a SandboxEnvironment that satisfies all the given injection requirements. Args: injectables: Single SanSTRING
HIGHsrc/inspect_ai/util/_sandbox/context.py409Find the best sandbox for injection and return it with needed injections. Args: injectables: List of detectSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py116Execute a command within a sandbox environment. The current working directory for execution will be the per-samSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py190Read 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.py221Information required to connect to sandbox environment. Args: user: User to login as. ReturnSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py260Start a command and return a process handle or result. In streaming mode (stream=True), the function returns onSTRING
HIGHsrc/inspect_ai/util/_sandbox/environment.py333Verify and return a reference to a subclass of SandboxEnvironment. Args: sandbox_cls: Class of sandbSTRING
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/_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/_math.py91Remove nested boxed expressions, keeping only outermost content. Args: match: Text containing potentially nSTRING
HIGHsrc/inspect_ai/scorer/_math.py114Extract content from the last \boxed{} or \fbox{} in text. Args: text: Text potentially containing boxed exSTRING
HIGHsrc/inspect_ai/scorer/_math.py140Fallback: extract the last integer found in text. Args: text: Text to search for integers. Returns: STRING
HIGHsrc/inspect_ai/scorer/_math.py220Strip whitespace and LaTeX newlines from string edges. Args: s: String to strip. Returns: StriSTRING
HIGHsrc/inspect_ai/scorer/_math.py252Normalize a LaTeX string for parsing. Removes sizing commands, alignment environments, converts brackets, and pSTRING
HIGHsrc/inspect_ai/scorer/_math.py355Remove matching outer parentheses if they wrap the entire expression. Args: s: String potentially wrapped iSTRING
HIGHsrc/inspect_ai/scorer/_math.py398Remove LaTeX spacing commands that interfere with parsing. Args: text: Text containing LaTeX spacing commanSTRING
HIGHsrc/inspect_ai/scorer/_metric.py274Compute a metric on a list of scores. Args: scores: List of scores. Returns: MetriSTRING
HIGHsrc/inspect_ai/scorer/_score.py15Score a model conversation. Score a model conversation (you may pass `TaskState` or `AgentState` as the value fSTRING
HIGHsrc/inspect_ai/_cli/util.py233Parse model roles from CLI args. Supports key-value, YAML, and JSON formats. Args: model_roles: Tuple of stSTRING
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.py2288Convert CompactedResponse to a list of ChatMessages. The compact endpoint returns the complete new context window, STRING
HIGHsrc/inspect_ai/model/_google_convert.py76Convert Google GenerateContentResponse into Inspect ModelOutput. Args: response: Google GenerateContentRespSTRING
HIGHsrc/inspect_ai/model/_model_info.py265Get model information including context window, output tokens, etc. Looks up model information from a local databasSTRING
HIGHsrc/inspect_ai/model/_model.py385Tokenize text into token IDs using the model's tokenizer. Override in providers that support server-side tokeniSTRING
HIGHsrc/inspect_ai/model/_model.py532Compact messages using provider-native compaction. Some model providers (e.g., OpenAI Codex models) support natSTRING
HIGHsrc/inspect_ai/model/_model.py1032Compact messages using provider-native compaction. Delegates to the model provider's native compaction API whenSTRING
HIGHsrc/inspect_ai/model/_compaction/native.py75Compact messages using the provider's native compaction API. Args: model: Target model for compactiSTRING
HIGHsrc/inspect_ai/model/_compaction/_compaction.py417Perform compaction, iterating if necessary to get under threshold. Args: strategy: Compaction strategy to uSTRING
30 more matches not shown…
Cross-Language Confusion71 hits · 418 pts
SeverityFileLineSnippetContext
HIGHtests/_control/test_ctl.py239 # a running sample with nothing pending (activity null) keeps theCOMMENT
HIGHtests/tools/sandbox_tools_utils/test_sandbox_tools.py252 "input": f"echo {flag} > /flag && chmod 400 /flag; ls -al /flag && cat /flag",CODE
HIGHtests/util/test_store_from_events.py516 """Add operation should include value even when it's None (explicit null)."""STRING
HIGHtests/scorer/test_metric.py194 Serialized as JSON constants (NaN/Infinity) rather than null, via bothSTRING
HIGHtests/scorer/test_reducers.py569 # With fewer than k scored epochs the estimator is undefined, so theCOMMENT
HIGHtests/_cli/test_util.py69 "critic={model: mockllm/model, temperature: 0.2, model_args: {custom_outputs: null}}",CODE
HIGHtests/model/providers/test_anthropic.py1755 'head -c 9 /dev/urandom | base64 > /tmp/seed && echo "seed-$(cat /tmp/seed)"'CODE
HIGHtests/model/providers/test_anthropic.py1757 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.py366 """`{cache_miss_reason: null}` means comparison still pending — no warning."""STRING
HIGHtests/log/test_message_pool.py1026 Regression: if persistence stores call_refs as [] instead of null,STRING
HIGHtests/log/test_eval_log.py1283 null_value = re.compile(r'"value":\s*(null|\[\s*null|\{"a":\s*null)')CODE
HIGH…/_remote_tools/_web_browser/playwright_page_crawler.py231 "(document.scrollingElement || document.body).scrollTop ="CODE
HIGH…/_remote_tools/_web_browser/playwright_page_crawler.py232 " (document.scrollingElement || document.body).scrollTop -"CODE
HIGH…/_remote_tools/_web_browser/playwright_page_crawler.py237 "(document.scrollingElement || document.body).scrollTop ="CODE
HIGH…/_remote_tools/_web_browser/playwright_page_crawler.py238 " (document.scrollingElement || document.body).scrollTop +"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…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
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py66 sd.push("") # retransmit, no new dataCODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py76 sd.push("A")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py80 sd.push("B")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py90 sd.push(("out1", "err1"))CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py96 sd.push(("out2", "err2"))CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py105 sd.push({"a": 1})CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py116 sd.push("A")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py119 sd.push("B")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py123 sd.push("C")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py127 sd.push("D")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py136 sd.push("A")CODE
HIGH…inspect_sandbox_tools/tests/test_acked_chunk_buffer.py141 sd.push("B")CODE
HIGH…t_sandbox_tools/tests/agent_bridge/test_model_proxy.py473 yield b'data: {"id":"chatcmpl-stream","object":"chat.completion.chunk","created":1234567890,"model":"gpt-3.5-turCODE
HIGH…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py165 self._acked_buffer.push((stdout, stderr))CODE
HIGH…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py185 self._acked_buffer.push(("", ""))CODE
HIGH…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py208 self._acked_buffer.push((stdout, stderr))CODE
HIGH…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py249 self._acked_buffer.push((stdout, stderr))CODE
HIGH…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py272 self._acked_buffer.push((stdout, stderr))CODE
HIGH…ools/_remote_tools/_exec_remote/_acked_chunk_buffer.py24 sd.push("A")STRING
HIGH…ools/_remote_tools/_exec_remote/_acked_chunk_buffer.py26 sd.push("B")STRING
HIGH…ools/_remote_tools/_exec_remote/_acked_chunk_buffer.py32 sd.push("A")STRING
HIGH…ools/_remote_tools/_exec_remote/_acked_chunk_buffer.py34 sd.push("B")STRING
HIGHsrc/inspect_ai/util/_limit.py1024 token_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_limit.py1115 turn_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_limit.py1199 cost_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_limit.py1280 message_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_limit.py1356 time_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_limit.py1421 working_limit_tree.push(self)CODE
HIGHsrc/inspect_ai/util/_store.py241 # These operations require a value (None is valid for explicit null)COMMENT
HIGH…/inspect_ai/util/_checkpoint/_sandbox_restic/egress.py77 f" {{ find config -type f 2>/dev/null; "CODE
HIGH…/inspect_ai/util/_checkpoint/_sandbox_restic/egress.py78 f" find keys -type f 2>/dev/null; "CODE
HIGH…/inspect_ai/util/_checkpoint/_sandbox_restic/egress.py79 f" find data -type f 2>/dev/null; "CODE
HIGH…/inspect_ai/util/_checkpoint/_sandbox_restic/egress.py80 f" find index -type f 2>/dev/null; "CODE
11 more matches not shown…
Excessive Try-Catch Wrapping385 hits · 399 pts
SeverityFileLineSnippetContext
LOWdesign/deepagent-background.md137 except Exception as ex:CODE
LOWdesign/recover.md320 except Exception:CODE
LOWdesign/recover.md401 except Exception:CODE
LOWtests/test_retry.py392 except Exception:CODE
LOWtests/test_eval_set.py179 except Exception:CODE
LOWtests/test_eval_set.py186 except Exception:CODE
LOWtests/test_model_env_mismatch.py41 except Exception:CODE
LOWtests/test_model_env_mismatch.py100 except Exception:CODE
LOWtests/test_model_env_mismatch.py142 except Exception:CODE
LOWtests/test_model_env_mismatch.py189 except Exception:CODE
LOWtests/test_model_env_mismatch.py226 except Exception:CODE
LOWtests/test_model_env_mismatch.py255 except Exception:CODE
LOWtests/test_model_env_mismatch.py285 except Exception:CODE
LOWtests/tools/test_tools_bridge.py511 except Exception:CODE
LOWtests/tools/test_tool_with.py34 except Exception:CODE
MEDIUMtests/tools/test_tool_with.py27def test_tool_with_validation():CODE
LOWtests/util/test_anyio.py66 except Exception as inner_tool_error:CODE
LOWtests/util/test_anyio.py72 except Exception as e:CODE
LOWtests/util/test_anyio.py74 except Exception as wow:CODE
LOWtests/util/sandbox/test_sandbox_service.py88 except Exception as e:STRING
LOWtests/util/sandbox/test_sandbox_service.py873 except Exception as e:STRING
MEDIUMtests/agent/deepagent/test_agent_tool.py208def import ToolDefCODE
LOWtests/agent/deepagent/test_agent_tool.py216 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.py739 except Exception:CODE
LOWtests/agent/test_acp/test_server_forwarding.py803 except Exception:CODE
LOWtests/agent/test_acp/test_standard_acp_client.py196 except Exception:CODE
MEDIUMtests/agent/test_acp/test_standard_acp_client.py148def _read_loop(self) -> None: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.py514def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_action_methods.py557 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
LOWtests/agent/test_acp/test_server.py244 except Exception:CODE
LOWtests/agent/test_acp/test_server.py296 except Exception:CODE
LOWtests/agent/test_acp/test_server.py216 except Exception:CODE
LOWtests/agent/test_acp/test_server.py365 except Exception:CODE
LOWtests/agent/test_acp/test_server.py410 except Exception:CODE
MEDIUMtests/agent/test_acp/test_approval.py1493def _read_loop(self) -> None:CODE
LOWtests/agent/test_acp/test_approval.py1546 except Exception:CODE
LOWtests/agent/test_acp/test_tui/test_defer_body.py147 except Exception:CODE
LOWtests/agent/test_acp/test_tui/test_defer_body.py155 except Exception:CODE
LOWtests/model/test_collapse_user_message.py132 except Exception as ex:CODE
LOWtests/model/providers/test_mistral.py114 except Exception as e:CODE
LOWtests/model/providers/util/test_batch.py467 except Exception as e:CODE
LOWtests/model/providers/util/test_batch.py613 except Exception as e:CODE
LOWtests/model/providers/util/test_batch.py1043 except Exception as e:CODE
LOW…_extensions/meridianlabs-ai/inspect-docs/pre-render.py477 except Exception:CODE
LOW…_extensions/meridianlabs-ai/inspect-docs/pre-render.py819 except Exception as e:CODE
LOW…eridianlabs-ai/inspect-docs/filters/reference/parse.py157 except Exception:CODE
LOWexamples/structured.py193 except Exception as ex:STRING
LOWexamples/hooks/mlflow_tracking.py55 except Exception:CODE
LOWexamples/hooks/mlflow_tracking.py203 except Exception:CODE
325 more matches not shown…
Self-Referential Comments106 hits · 332 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_eval_set.py2186 # Create a log with the exact task identity eval_set expects, thenCOMMENT
MEDIUMtests/test_model_env_mismatch.py90 # Create a minimal task with proper solver and scorerCOMMENT
MEDIUMtests/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
MEDIUMtests/util/test_store_nested_types.py89 # Create a store with dict dataCOMMENT
MEDIUMtests/util/test_anyio.py84 # Create a circular reference: exc1.__context__ -> exc2 -> exc1COMMENT
MEDIUMtests/util/test_anyio.py107 # Create a circular reference in exception groupsCOMMENT
MEDIUMtests/util/sandbox/test_docker_compatibility.py530 # 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.py160 # Create a ComposeService with x-default extensionCOMMENT
MEDIUMtests/agent/test_agent_react.py582 # Create a tool call for submitCOMMENT
MEDIUMtests/agent/test_agent_react.py589 # Create a tool call for a regular toolCOMMENT
MEDIUMtests/agent/test_agent_react.py596 # Create an assistant message with both reasoning content and tool callsCOMMENT
MEDIUMtests/agent/test_agent_react.py605 # Create an assistant message without reasoning content but with submit tool callCOMMENT
MEDIUMtests/agent/test_agent_react.py611 # Create an assistant message with only regular tool calls (should be unchanged)COMMENT
MEDIUMtests/agent/test_acp/test_action_methods.py915 # Create the pending nested ToolEvent — same construction theCOMMENT
MEDIUMtests/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.py69 # 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.py463 # Create a minimal instance without calling __init__COMMENT
MEDIUMtests/model/providers/test_anthropic.py500 # Create an assistant message with a single tool call (no tool result)COMMENT
MEDIUMtests/model/providers/test_anthropic.py522 # Create an assistant message with multiple tool calls (no tool results)COMMENT
MEDIUMtests/model/providers/test_anthropic.py554 # Create a tool result message without a preceding assistant messageCOMMENT
MEDIUMtests/model/providers/test_mistral.py101 # 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
MEDIUMtests/model/providers/test_google.py432 # Create a mock clientCOMMENT
MEDIUMtests/model/providers/test_google.py435 # Create a message with reasoning + text + tool callCOMMENT
MEDIUMtests/model/providers/test_google.py896 # Create an assistant message with a single tool call (no tool result)COMMENT
MEDIUMtests/model/providers/test_google.py921 # Create an assistant message with multiple tool calls (no tool results)COMMENT
MEDIUMtests/model/providers/test_google.py956 # Create a tool result message without a preceding assistant messageCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py288 # Create a mock Response with an invalid_prompt errorCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py517 # Create a mock CompactedResponse with a ResponseCompactionItemCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py570 # Create a CompactedResponse without a ResponseCompactionItemCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py694 # Create a CompactedResponse with compaction item followed by an output messageCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py766 # Create a compact response matching real API output:COMMENT
MEDIUMtests/model/providers/test_openai_responses.py952 # 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.py593 # Create a batcher with a low max_consecutive_check_failures valueCOMMENT
MEDIUMtests/model/providers/util/test_batch.py664 # Create a batcher that will fail initially then succeedCOMMENT
MEDIUMtests/model/providers/util/test_batch.py723 # Create a request that's close to but under the limitCOMMENT
MEDIUMtests/log/test_log_file_info_fallback.py204 # Create a native-named eval (timestamp prefix -> fast path)COMMENT
MEDIUMtests/log/test_log_file_info_fallback.py211 # Create a custom-named eval (no timestamp -> header fallback)COMMENT
MEDIUMtests/log/test_log_attachments.py52# # Create a long text that should be condensed (> 100 chars)COMMENT
MEDIUMtests/log/test_log_attachments.py56# # Create a model event with long contentCOMMENT
MEDIUMtests/log/test_log_attachments.py128# # Create the same long text that will appear in multiple eventsCOMMENT
MEDIUMtests/log/test_log_attachments.py209 # Create an event with long contentCOMMENT
MEDIUMtests/log/test_recover_e2e.py283 # Create an empty buffer DB so recovery can proceedCOMMENT
46 more matches not shown…
Modern AI Meta-Vocabulary97 hits · 294 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md2279- ReAct Agent: [truncation](https://inspect.aisi.org.uk/agents.html#truncation) option to trim conversation messages wheCODE
MEDIUMdesign/plans/sandbox-tools-onedir.md83### 2. Build orchestration — `Dockerfile.pyinstaller`, `build_executable.py`COMMENT
MEDIUMdesign/ctl/pause-resume.md137- **Hard pause (interrupt-and-requeue) — planned.** `pause --now`: interrupt in-flight samples as `cancelled` and requeuCODE
MEDIUMdesign/ctl/control-channel.md1026- **Self-targeting guard hardening.** Open question #8 in this doc — an LLM agent running *inside* an eval shouldn't be CODE
MEDIUMtests/checkpoint/test_checkpointer.py611 # leading scaffolding before the first wrap — dropped by the sliceCOMMENT
MEDIUMtests/checkpoint/test_checkpointer.py631 # seeded wrap and still open at fire time — trailing scaffoldingCOMMENT
MEDIUMtests/agent/test_agent_compaction_native.py49 # the context window. Reasoning + compaction is tested separately inCOMMENT
MEDIUMtests/agent/test_bridge_track_state.py819 # 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.py893 # main loop: turn 2 (scaffold round-trips through its own store)COMMENT
MEDIUMtests/agent/test_agent_bridge.py944 # both scaffold calls completed (the second replays the first turn)STRING
MEDIUMtests/agent/test_agent_bridge.py933 # backend; the scaffold's second call replays the searched assistant turnSTRING
MEDIUMtests/agent/test_bridge_approval.py302 # the scaffold gets the approved arguments...COMMENT
MEDIUMtests/agent/test_bridge_approval.py646 # the rejected call never reached the scaffoldCOMMENT
MEDIUMtests/agent/test_bridge_approval.py780# should behave identically whichever API the scaffold speaks. These drive eachCOMMENT
MEDIUMtests/agent/test_bridge_approval.py781# dialect impl the way a scaffold's request arrives.COMMENT
MEDIUMtests/agent/test_bridge_approval.py605 # what the scaffold would go on to executeCOMMENT
MEDIUMtests/agent/test_acp/test_operator_provenance.py55# note_operator_message — the scaffold's signalCOMMENT
MEDIUMtests/agent/test_acp/test_router_bridge_tools.py150 # the scaffold-provided view renders richly (not args-only)COMMENT
MEDIUMtests/agent/test_acp/test_tui/test_widgets.py915 # Used-only — context window denominator dropped.COMMENT
MEDIUMtests/model/test_compaction.py1495 # 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.py337 # scaffold for should_retryCOMMENT
MEDIUMtests/model/providers/test_vllm.py27 # this allows us to run base models with the chat message scaffolding:COMMENT
MEDIUMtests/model/providers/test_openai_model_names.py82 # input_tokens_name() aliases to the current frontier so the context windowCOMMENT
MEDIUMtests/model/providers/test_grok_model_names.py82 # input_tokens_name() aliases to the current frontier so the context windowCOMMENT
MEDIUMtests/model/providers/test_grok_model_names.py94 # frontier would overstate its context windowCOMMENT
MEDIUMtests/model/providers/test_anthropic_fallback.py517 # scaffold echoes the assistant turn as dicts (incl. the fallback block)COMMENT
MEDIUMtests/model/providers/test_hf.py30 # this allows us to run base models with the chat message scaffolding:COMMENT
MEDIUMtests/model/providers/test_hf.py49 # this allows us to run base models with the chat message scaffolding:COMMENT
MEDIUMtests/model/providers/test_google_model_names.py86 # input_tokens_name() aliases to the current frontier so the context windowCOMMENT
MEDIUMtests/model/providers/test_openai_responses.py1977 # Bridge -> scaffold (assistant text) -> scaffold echoes it back as input.COMMENT
MEDIUMdocs/CHANGELOG.md2279- ReAct Agent: [truncation](https://inspect.aisi.org.uk/agents.html#truncation) option to trim conversation messages wheCODE
MEDIUMdocs/evals/evals.json3797 "paper": "https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/",CODE
MEDIUMdocs/evals/evals.json5546 "paper": "https://www.anthropic.com/research/agentic-misalignment",CODE
MEDIUMsrc/inspect_ai/util/_checkpoint/hydrate.py671 # Slice away the live session's scaffolding ahead of the firstCOMMENT
MEDIUMsrc/inspect_ai/util/_checkpoint/hydrate.py706 # resumed session's own structural scaffolding (`init` / `solvers` /COMMENT
MEDIUMsrc/inspect_ai/agent/_react.py247 # check for context window overflowCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py470 # check for context window overflowCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py724 # exceed the context window; _handle_overflow's forcedCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/inspect_ext.py132# (claude_code, codex, …): their tools are run by the bridged scaffold, not bySTRING
MEDIUMsrc/inspect_ai/agent/_acp/connection.py1165 # Bind / unbind orchestrationCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/event_mapping.py723 # and a known context window. ACP semantics: "Tokens currently inCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/event_mapping.py724 # context" / "Total context window size". We do NOT gate this onCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/tui/session_screen.py1042 # mid-turn — during scaffold startup / ``--resume`` relaunch orCOMMENT
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/header.py235 # Used-only — the context window denominator was visual noiseSTRING
MEDIUMsrc/inspect_ai/agent/_bridge/util.py39# Generation-tuning fields a scaffold may set on a bridged request that describeCOMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/util.py41# (the scaffold computes them for its assumed --model, not the model actuallyCOMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/util.py43# config / provider defaults govern generation. Structural fields the scaffoldCOMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/util.py242 # restore operator provenance lost to a bridged scaffold's round-trip (e.g.COMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/util.py323 # Approve the tool calls the scaffold is about to run. A rejection comes backCOMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/util.py325 # every call in the response) so it can propose something else; the scaffoldCOMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/types.py59 # the scaffold a restored, mid-turn (assistant-terminated) conversation,COMMENT
MEDIUMsrc/inspect_ai/agent/_bridge/types.py325 # verdicts keep the previous-call comparison — a scaffold thatCOMMENT
37 more matches not shown…
Cross-File Repetition40 hits · 200 pts
SeverityFileLineSnippetContext
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_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/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/providers/test_google.py0add two numbers. args: x: first number to add. y: second number to add. returns: the sum of the two numbers.STRING
HIGHdocs/_tools-basics.md0add two numbers. args: x: first number to add. y: second number to add. returns: the sum of the two numbers.STRING
HIGHexamples/tool_use.py0add two numbers. args: x: first number to add. y: second number to add. returns: the sum of the two numbers.STRING
HIGH…ort/src/inspect_tool_support/_util/json_rpc_helpers.py0check whether an exception raised from httpx should be retried. implements the strategy described here: https://cloud.goSTRING
HIGH…ls/src/inspect_sandbox_tools/_util/json_rpc_helpers.py0check whether an exception raised from httpx should be retried. implements the strategy described here: https://cloud.goSTRING
HIGHsrc/inspect_ai/_util/httpx.py0check whether an exception raised from httpx should be retried. implements the strategy described here: https://cloud.goSTRING
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
HIGHsrc/inspect_ai/model/_providers/openai.py0canonical model name for model info database lookup.STRING
HIGHsrc/inspect_ai/model/_providers/anthropic.py0canonical model name for model info database lookup.STRING
HIGHsrc/inspect_ai/model/_providers/mistral.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/grok.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/openai_compatible.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/google.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/groq.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/openai.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/anthropic.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/together.py0scope adaptive concurrency per (key, model). a pool shared across models lets the faster model's signals push the adaptiSTRING
HIGHsrc/inspect_ai/model/_providers/grok.py0model name used for looking up model input tokens (context window).STRING
HIGHsrc/inspect_ai/model/_providers/google.py0model name used for looking up model input tokens (context window).STRING
HIGHsrc/inspect_ai/model/_providers/openai.py0model name used for looking up model input tokens (context window).STRING
Modern Structural Boilerplate206 hits · 197 pts
SeverityFileLineSnippetContext
LOWtests/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
LOWtests/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…pect_tool_support/src/inspect_tool_support/__init__.py12__all__ = ["__version__"]CODE
LOW…sandbox_tools/tests/test_text_editor_validated_path.py14def _set_history_path(monkeypatch: pytest.MonkeyPatch, history_path: Path) -> None:CODE
LOWsrc/inspect_sandbox_tools/tests/conftest.py18logger = 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.py21logger = logging.getLogger(__name__)CODE
LOW…x_tools/src/inspect_sandbox_tools/_util/user_switch.py14def set_oom_score_adj() -> None:CODE
LOWsrc/inspect_ai/__init__.py32__all__ = [CODE
LOWsrc/inspect_ai/_control/eval_state.py626def set_sample_requeue(eval_id: str, handle: "SampleRequeue | None") -> None:CODE
LOWsrc/inspect_ai/_util/zipfile.py25logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/zipfile.py183__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.py69def set_transcript_markdown_options(markdown: Markdown) -> None:CODE
LOWsrc/inspect_ai/_util/registry.py83def set_annotations(wrapper: Callable[..., Any], annotations: dict[str, Any]) -> None:CODE
LOWsrc/inspect_ai/_util/registry.py114def set_return_annotation(wrapper: Callable[..., Any], return_type: type[Any]) -> None:CODE
LOWsrc/inspect_ai/_util/httpx.py15logger = 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.py632logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/event_loop_monitor.py38logger = logging.getLogger(__name__)CODE
LOWsrc/inspect_ai/_util/asyncfiles.py50logger = 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/strenum.py49__all__ = ["StrEnum"]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.py37def set_retry_args_suffix(suffix: str) -> None:CODE
LOWsrc/inspect_ai/_display/core/display.py156 def update_metrics(self, scores: list[TaskDisplayMetric]) -> None: ...CODE
LOWsrc/inspect_ai/_display/core/display.py184 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.py75 def update_task_count(self, n: int) -> None:CODE
LOWsrc/inspect_ai/_display/plain/display.py222 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
LOWsrc/inspect_ai/_display/textual/app.py365 def update_tasks(self) -> None:CODE
LOWsrc/inspect_ai/_display/textual/app.py374 def update_samples(self) -> None:CODE
LOWsrc/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
LOWsrc/inspect_ai/_display/textual/app.py469 def set_title(self, title: str) -> None:CODE
LOWsrc/inspect_ai/_display/textual/widgets/tasks.py175 def set_display_metrics(self, display_metrics: bool) -> None:STRING
LOWsrc/inspect_ai/_display/textual/widgets/tasks.py178 def update_count_width(self, samples: int) -> None:STRING
LOWsrc/inspect_ai/_display/textual/widgets/tasks.py184 def update_progress_widths(self) -> None:STRING
146 more matches not shown…
Over-Commented Block231 hits · 189 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py21# Automatically mark every async test function with @pytest.mark.anyio soCOMMENT
LOWtests/checkpoint/resume_kill_harness.py141COMMENT
LOWtests/util/test_text.py21 # Stripping it to face value would make match(numeric=True)COMMENT
LOWtests/agent/test_agent_bridge.py881 assert log.errorCOMMENT
LOWtests/agent/test_acp/test_session.py221COMMENT
LOWtests/agent/test_acp/test_standard_acp_client.py241 ):COMMENT
LOWtests/agent/test_acp/test_approval.py561 )COMMENT
LOWtests/agent/test_acp/test_approval.py1201 for block in req.tool_call.content:COMMENT
LOWtests/agent/test_acp/test_tui/test_client.py61 active.agent_name = agent_nameCOMMENT
LOWtests/model/test_reasoning_claude.py21@pytest.mark.anyioCOMMENT
LOWtests/model/test_adaptive_connections.py901 # should be the AdaptiveConcurrency() default `start=20` clamped to max=50.COMMENT
LOWtests/view/test_openapi_schema_generation.py241 """Without our override, str = 'foo' would NOT be required."""COMMENT
LOWtests/log/test_log_attachments.py41 "data:image/png;base64"COMMENT
LOWtests/log/test_log_attachments.py61# tool_choice="auto",COMMENT
LOWtests/log/test_log_attachments.py81COMMENT
LOWtests/log/test_log_attachments.py101# # Simulate what happens in _record_model_interaction's complete() callback:COMMENT
LOWtests/log/test_log_attachments.py121# assert transcript.attachments[attachment_hash] == long_responseCOMMENT
LOWtests/log/test_log_attachments.py141# )COMMENT
LOWtests/log/test_log_attachments.py161# assert isinstance(stored_event2, ModelEvent)COMMENT
LOWexamples/checkpoint_ctf.py181# ---------------------------------------------------------------------------COMMENT
LOW.github/workflows/changelog-lint.yml1# Lints CHANGELOG.md placement on PRs: new entries must land under theCOMMENT
LOW.github/workflows/build_sandbox_tools.yml1# This workflow builds container tool injectable executables (e.g. inspect-sandbox-tools-amd64-v666)COMMENT
LOW.github/workflows/build_sandbox_tools.yml21 # pull_request:COMMENT
LOW.github/workflows/build_sandbox_tools.yml41 # 📋 Step-by-Step InstructionsCOMMENT
LOW.github/workflows/build.yml181COMMENT
LOW…ool_support/_remote_tools/_web_browser/scale_factor.py1import subprocessCOMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py41# AXNode,COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py61# def test_getitem(self):COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py81# }COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py101# }COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py121COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py141# node_data = {COMMENT
LOW…ote_tools/_web_browser/test_accessibility_tree_node.py161# }COMMENT
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/_remote_tools/_mcp/mcp_server_session.py21# line longer than the limit makes readline() raise ValueError ("Separator is notCOMMENT
LOW…sandbox_tools/_remote_tools/_mcp/mcp_server_session.py221 message = JSONRPCMessage.model_validate_json(line)COMMENT
LOW…sandbox_tools/src/inspect_sandbox_tools/_cli/server.py21# 1. LD_LIBRARY_PATH — restore it to its pre-bootloader value, otherwise theCOMMENT
LOWsrc/inspect_ai/_control/server.py161 raise PrerequisiteError(COMMENT
LOWsrc/inspect_ai/_control/server.py501 @app.get("/evals/{eval_id}/samples")COMMENT
LOWsrc/inspect_ai/_control/server.py721 status_code=404,COMMENT
LOWsrc/inspect_ai/_control/server.py1021 # Pause / resume the whole run (the eval-set spelling — oneCOMMENT
LOWsrc/inspect_ai/_control/server.py1081COMMENT
LOWsrc/inspect_ai/_control/cancel.py161 }COMMENT
LOWsrc/inspect_ai/_control/events.py201 # Slicing the raw sequence under-delivered badly with the defaultCOMMENT
LOWsrc/inspect_ai/_control/__init__.py1"""Control channel — HTTP server embedded in each running eval process.COMMENT
LOWsrc/inspect_ai/_control/__init__.py21# it rejects unknown query params on any non-GET route with a 400COMMENT
LOWsrc/inspect_ai/_control/__init__.py41# 1 — max_subprocesses knob.COMMENT
LOWsrc/inspect_ai/_control/pause.py141# same run boundary) — so a pause survives an in-run task retry, matching howCOMMENT
LOWsrc/inspect_ai/_control/pause.py161# (run_task_retry_attempts registers them via note_dispatch_models),COMMENT
LOWsrc/inspect_ai/_control/state.py41from inspect_ai._util.error import is_cancellation_messageCOMMENT
LOWsrc/inspect_ai/_control/state.py181 samples_by_eval: dict[str, list[ActiveSample]] = defaultdict(list)COMMENT
LOWsrc/inspect_ai/_control/state.py341 # supersede a still-running one (a sample that has since finished).COMMENT
LOWsrc/inspect_ai/_control/state.py1121 # attempts* (completed_at set, retry pending) is still holdable (theCOMMENT
LOWsrc/inspect_ai/_util/asyncfiles.py1021# fsspec write buffer size for cloud storage backends (GCS, Azure, etc.).COMMENT
LOWsrc/inspect_ai/_util/atomic_write.py161COMMENT
LOWsrc/inspect_ai/_display/textual/widgets/transcript.py281 # treatment — the adjacent InterruptEvent already says whatCOMMENT
LOWsrc/inspect_ai/_display/textual/widgets/samples.py361 # has a bound, live agent loop (``is_interactive``) and has to beCOMMENT
LOWsrc/inspect_ai/_display/textual/widgets/samples.py1061 # Resolve the pending state from the transcript's sidecar.COMMENT
LOWsrc/inspect_ai/analysis/_dataframe/util.py201 arrow_type = pa.string()COMMENT
LOWsrc/inspect_ai/analysis/_dataframe/util.py221# metadata_prompt string[pyarrow]COMMENT
171 more matches not shown…
AI Slop Vocabulary40 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMtests/checkpoint/test_current_checkpointer_post_exit.py224# harness faithfully reproduces the normal span/checkpoint pairing — and thatCOMMENT
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.py970 # 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.py899 # Set up the cancel-propagation harness in a real task group.COMMENT
MEDIUMtests/agent/test_acp/test_approval.py1198 # 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
MEDIUMtests/agent/test_acp/test_tui/test_widgets.py63# Single-widget harnessCOMMENT
MEDIUMtests/agent/test_acp/test_tui/test_widgets.py1099 # 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
LOWsrc/inspect_ai/_util/notebook.py53 # notebook cells, if not just return an empty moduleCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/record.py389 # For now, I'll just return an empty dictCOMMENT
LOWsrc/inspect_ai/util/_limit.py220 # gone out of scope for the sample so we just return that snapshotCOMMENT
MEDIUMsrc/inspect_ai/util/_checkpoint/checkpointer_impl.py591 # checkpoint span. Skip on the harness-driven final fire —COMMENT
MEDIUMsrc/inspect_ai/util/_sandbox/service.py489 # under an eval harness -- a sandbox-awareness leak that wasCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py209 # to clean exit and the harness will run scoring next. StateCOMMENT
MEDIUMsrc/inspect_ai/agent/_react.py436 # 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.py552 # then just return that fileCOMMENT
MEDIUMsrc/inspect_ai/_view/common.py714 # Attempt existence check with robust handling for Azure-style auth issues.COMMENT
MEDIUMsrc/inspect_ai/model/_call_tools.py763 # harness injects the real AgentState below)COMMENT
LOWsrc/inspect_ai/model/_call_tools.py986 # if the function takes **kwargs: Any then just pass the tool arguments throughCOMMENT
LOWsrc/inspect_ai/model/_providers/openai.py328 # side step that complexity and just use two different batchers.COMMENT
LOWsrc/inspect_ai/log/_recorders/buffer/database.py579 # this will just return no events and no attachments until theSTRING
LOWsrc/inspect_ai/log/_recorders/buffer/filestore.py470 # we'll just return NoneCOMMENT
LOWsrc/inspect_ai/_eval/loader.py639 # if there is no solver file then just create from the registry by nameCOMMENT
MEDIUMsrc/inspect_ai/tool/_sandbox_tools_utils/sandbox.py288 # TODO: once we get the github CI/CD actions robust, this should be fatalCOMMENT
LOWsrc/inspect_ai/tool/_mcp/_local.py301 # to the session, we can just return nitCOMMENT
Redundant / Tautological Comments56 hits · 78 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/test_perplexity.py74 # Check if citations are presentCOMMENT
LOWtests/model/providers/util/test_batch.py99 # Check if batch should failCOMMENT
LOWtests/model/providers/util/test_batch.py105 # Check if batch is "complete" based on elapsed timeCOMMENT
LOWtests/log/test_eval_log.py181 # 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.py222 # Check if there are any other versions presentCOMMENT
LOWscripts/pypi-release.py282 # Check if .pypirc exists or environment variables are setCOMMENT
LOWscripts/pypi-release.py406 # Check if we're ahead of remoteCOMMENT
LOWscripts/pypi-release.py449 # Check if we're in a git repositoryCOMMENT
LOWscripts/pypi-release.py496 # Check if branch is up to dateCOMMENT
LOWscripts/pypi-release.py507 # Check if tag already existsCOMMENT
LOWscripts/pypi-release.py617 # Check if correct version already existsCOMMENT
LOW…t_tool_support/src/inspect_tool_support/_cli/server.py27 # Set umask to handle dynamic user switching scenarios:COMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py89 # Read the file contentCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py94 # Check if old_str is unique in the fileCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py195 # Check if path existsCOMMENT
LOW…ox_tools/_in_process_tools/_text_editor/text_editor.py204 # Check if the path points to a directoryCOMMENT
LOW…ols/src/inspect_sandbox_tools/_util/pseudo_terminal.py64 # Close the file descriptorsCOMMENT
LOW…spect_sandbox_tools/_remote_tools/_exec_remote/_job.py137 # Check if process has finishedCOMMENT
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.py429 # Check if it's already a URICOMMENT
LOWsrc/inspect_ai/_util/file.py539 # Open the file using fsspec and retrieve the file's informationCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/samples/table.py220 # Check if it's specifically the pyarrow offset overflow errorCOMMENT
LOWsrc/inspect_ai/analysis/_dataframe/samples/table.py615 # Check if this is a PyArrow-backed columnCOMMENT
LOWsrc/inspect_ai/util/_json.py433 # Check if it's already Optional/Union with NoneCOMMENT
LOWsrc/inspect_ai/util/_sandbox/self_check.py431 # Write the file byte-by-byte from ASCII-only octal escapes, then cat it, soCOMMENT
LOWsrc/inspect_ai/scorer/_math.py934 # Check if the result contains unexpected free symbols (variables)STRING
LOWsrc/inspect_ai/_cli/eval.py2298 # Check if it's a file pathCOMMENT
LOWsrc/inspect_ai/_cli/eval.py2318 # Check if it looks like a file path that doesn't existCOMMENT
LOWsrc/inspect_ai/_cli/score.py289 # Print the results panelCOMMENT
LOWsrc/inspect_ai/model/_openai_responses.py310 # Check if this is a compaction marker messageCOMMENT
LOWsrc/inspect_ai/model/_openai_responses.py1292 # Check if this is a valid OpenAI action (correct type + required fields)COMMENT
LOWsrc/inspect_ai/model/_openai_responses.py1455 # Check if result was cleared during compactionCOMMENT
LOWsrc/inspect_ai/model/_model_info.py153 # Check if the second-to-last part is a known service prefixCOMMENT
LOWsrc/inspect_ai/model/_model_info.py159 # 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.py1892 # Check if this block has an associated thought_signature andCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py739 # Check if model doesn't support compactionCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py4234 # Check if result was cleared during compactionCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py4445 # Check if previous message has corresponding tool_use blocksCOMMENT
LOWsrc/inspect_ai/model/_providers/anthropic.py4487 # 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.py186 # 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.py109 # Check if it's for a supported architectureCOMMENT
LOWsrc/inspect_ai/tool/_sandbox_tools_utils/sandbox.py461 # Check if we're in a git repoCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py281 # Read fileCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py349 # Read file contentCOMMENT
LOWsrc/inspect_ai/tool/_tools/_memory.py354 # 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.py969 buffer = inspect_ai.log._recorders.buffer.filestore.SampleBufferFilestore(CODE
CRITICALtests/_view/test_view_server.py1252 inspect_ai.log._recorders.buffer.filestore.SampleManifest(CODE
CRITICALtests/_view/test_view_server.py1263 inspect_ai.log._recorders.buffer.filestore.Segment(CODE
CRITICALtests/_view/test_view_server.py1270 manifest = inspect_ai.log._recorders.buffer.filestore.Manifest(CODE
CRITICALtests/model/test_should_retry_classification.py329 from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/model/test_should_retry_classification.py344 from azure.core.exceptions import HttpResponseErrorCODE
AI Structural Patterns60 hits · 58 pts
SeverityFileLineSnippetContext
LOW…/_remote_tools/_web_browser/accessibility_tree_node.py224CODE
LOW…sandbox_tools/_remote_tools/_mcp/mcp_server_session.py117CODE
LOWsrc/inspect_ai/_control/server.py575CODE
LOWsrc/inspect_ai/_control/server.py851CODE
LOWsrc/inspect_ai/_control/server.py928CODE
LOWsrc/inspect_ai/_control/limits.py119CODE
LOWsrc/inspect_ai/_control/limits.py196CODE
LOWsrc/inspect_ai/_control/eval_state.py370CODE
LOWsrc/inspect_ai/_control/eval_state.py427CODE
LOWsrc/inspect_ai/util/_subprocess.py48CODE
LOWsrc/inspect_ai/util/_subprocess.py62CODE
LOWsrc/inspect_ai/util/_subprocess.py75CODE
LOWsrc/inspect_ai/util/_subtask.py155CODE
LOWsrc/inspect_ai/util/_checkpoint/hydrate.py354CODE
LOWsrc/inspect_ai/util/_sandbox/local.py79CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py58CODE
LOWsrc/inspect_ai/util/_sandbox/docker/compose.py281CODE
LOWsrc/inspect_ai/dataset/_dataset.py32CODE
LOWsrc/inspect_ai/dataset/_sources/file.py14CODE
LOWsrc/inspect_ai/dataset/_sources/csv.py20CODE
LOWsrc/inspect_ai/dataset/_sources/json.py22CODE
LOWsrc/inspect_ai/dataset/_sources/hf.py117CODE
LOWsrc/inspect_ai/agent/_react.py51CODE
LOWsrc/inspect_ai/agent/_bridge/bridge.py100CODE
LOWsrc/inspect_ai/agent/_bridge/types.py37CODE
LOWsrc/inspect_ai/agent/_bridge/sandbox/bridge.py45CODE
LOWsrc/inspect_ai/agent/_deepagent/agent_tool.py207CODE
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.py150CODE
LOWsrc/inspect_ai/_view/fastapi_server.py729CODE
LOWsrc/inspect_ai/_view/view.py24CODE
LOWsrc/inspect_ai/_cli/_scanner.py23CODE
LOWsrc/inspect_ai/_cli/_scanner.py91CODE
LOWsrc/inspect_ai/_cli/ctl.py4942CODE
LOWsrc/inspect_ai/_cli/eval.py1748CODE
LOWsrc/inspect_ai/model/_model.py1838CODE
LOWsrc/inspect_ai/model/_providers/vllm.py141CODE
LOWsrc/inspect_ai/model/_providers/nnterp.py53CODE
LOWsrc/inspect_ai/model/_providers/openai_compatible.py63CODE
LOWsrc/inspect_ai/model/_providers/openai.py97CODE
LOWsrc/inspect_ai/log/_condense.py144CODE
LOWsrc/inspect_ai/_eval/run.py121CODE
LOWsrc/inspect_ai/_eval/eval.py116CODE
LOWsrc/inspect_ai/_eval/eval.py406CODE
LOWsrc/inspect_ai/_eval/eval.py671CODE
LOWsrc/inspect_ai/_eval/eval.py1233CODE
LOWsrc/inspect_ai/_eval/eval.py1421CODE
LOWsrc/inspect_ai/_eval/eval.py1829CODE
LOWsrc/inspect_ai/_eval/evalset.py133CODE
LOWsrc/inspect_ai/_eval/score.py211CODE
LOWsrc/inspect_ai/_eval/task/task.py286CODE
LOWsrc/inspect_ai/_eval/task/task.py82CODE
LOWsrc/inspect_ai/tool/_tools/_memory.py61CODE
LOWsrc/inspect_ai/tool/_tools/_computer/_computer.py93CODE
Structural Annotation Overuse33 hits · 56 pts
SeverityFileLineSnippetContext
LOWdesign/recover.md434### Step 1: Read crashed .eval files (done: `162628a3f`)COMMENT
LOWdesign/recover.md444### Step 2: Read recovery data from sample buffer database (done: `664a9a43b`)COMMENT
LOWdesign/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
LOWtests/model/test_compaction_edit_thinking.py90 # Step 2: Execute tool calls if presentCOMMENT
LOWtests/model/test_compaction_edit_thinking.py95 # Step 3: Ask follow-up questionCOMMENT
LOWtests/model/test_compaction_edit_thinking.py112 # Step 4: Add thank you messageCOMMENT
LOWtests/model/test_compaction_edit_thinking.py115 # Step 5: Compact history - remove ALL thinking blocksCOMMENT
LOWtests/model/test_compaction_edit_thinking.py145 # Step 6: Call model with compacted historyCOMMENT
LOWtests/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
LOWtests/model/providers/test_google.py1192 # Step 1: Simulate model returning an image via inline_dataCOMMENT
LOWtests/model/providers/test_google.py1215 # Step 2: Build assistant message and convert back to Google ContentCOMMENT
LOWtests/model/providers/test_openai_responses.py1227 # Step 2: Build an assistant message with the image contentCOMMENT
LOWtests/model/providers/test_openai_responses.py1234 # Step 3: Convert back to input items (simulating the next turn)COMMENT
LOWtests/model/providers/test_openai_responses.py1210 # Step 1: Model returns an image generation callCOMMENT
LOWsrc/inspect_ai/scorer/_math.py789 # Step 1: Try simple integer parsingSTRING
LOWsrc/inspect_ai/scorer/_math.py794 # Step 2: Try float parsingSTRING
LOWsrc/inspect_ai/scorer/_math.py799 # Step 3: Try sympify with LaTeX preprocessing (primary method)STRING
LOWsrc/inspect_ai/scorer/_math.py805 # Step 4: Fall back to latex2sympy_fixed (backup method)STRING
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.py1128 # WARNING: The order of these fields is important for the log file format.COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py109 # Step 1: Read the crashed .eval file metadataCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py146 # Step 2: Read buffer DB metadata (lightweight — just summaries)COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py154 # Step 3: Determine recovery path and writeCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py197 # Step 4: Stream all samples into the recovered file.COMMENT
Verbosity Indicators27 hits · 44 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
LOWtests/model/test_compaction_edit_thinking.py90 # Step 2: Execute tool calls if presentCOMMENT
LOWtests/model/test_compaction_edit_thinking.py95 # Step 3: Ask follow-up questionCOMMENT
LOWtests/model/test_compaction_edit_thinking.py112 # Step 4: Add thank you messageCOMMENT
LOWtests/model/test_compaction_edit_thinking.py115 # Step 5: Compact history - remove ALL thinking blocksCOMMENT
LOWtests/model/test_compaction_edit_thinking.py145 # Step 6: Call model with compacted historyCOMMENT
LOWtests/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
LOWtests/model/providers/test_google.py1192 # Step 1: Simulate model returning an image via inline_dataCOMMENT
LOWtests/model/providers/test_google.py1215 # Step 2: Build assistant message and convert back to Google ContentCOMMENT
LOWtests/model/providers/test_openai_responses.py1227 # Step 2: Build an assistant message with the image contentCOMMENT
LOWtests/model/providers/test_openai_responses.py1234 # Step 3: Convert back to input items (simulating the next turn)COMMENT
LOWtests/model/providers/test_openai_responses.py1210 # Step 1: Model returns an image generation callCOMMENT
LOWsrc/inspect_ai/scorer/_math.py789 # Step 1: Try simple integer parsingSTRING
LOWsrc/inspect_ai/scorer/_math.py794 # Step 2: Try float parsingSTRING
LOWsrc/inspect_ai/scorer/_math.py799 # Step 3: Try sympify with LaTeX preprocessing (primary method)STRING
LOWsrc/inspect_ai/scorer/_math.py805 # Step 4: Fall back to latex2sympy_fixed (backup method)STRING
LOWsrc/inspect_ai/log/_recover/_api.py109 # Step 1: Read the crashed .eval file metadataCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py146 # Step 2: Read buffer DB metadata (lightweight — just summaries)COMMENT
LOWsrc/inspect_ai/log/_recover/_api.py154 # Step 3: Determine recovery path and writeCOMMENT
LOWsrc/inspect_ai/log/_recover/_api.py197 # Step 4: Stream all samples into the recovered file.COMMENT
Fake / Example Data34 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/tools/test_web_search.py280 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOWtests/tools/test_web_search.py289 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOWtests/tools/test_web_search.py298 "fake-key" if key == "TAVILY_API_KEY" else defaultCODE
LOWtests/tools/test_web_search.py307 return_value=("fake-key", "fake-cse-id"),CODE
LOWtests/tools/test_web_search.py314 return_value=("fake-key", "fake-cse-id"),CODE
LOWtests/tools/test_web_search.py322 "fake-key" if key == "EXA_API_KEY" else defaultCODE
LOWtests/tools/test_web_search.py331 "fake-key" if key == "EXA_API_KEY" else defaultCODE
LOWtests/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_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
LOWtests/tools/test_web_search_tavily.py127 with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}):CODE
LOWtests/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
LOWtests/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
LOWtests/util/test_json_schema.py169 instance = Model(name="Alice", address={"street": "123 Main St", "city": "NYC"})CODE
LOWtests/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/model/test_token_counting_integration.py72 assert result[0]["name"] == "placeholder"CODE
LOWtests/model/providers/test_vllm.py30 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_vllm.py49 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py61 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py87 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py256 message = ChatMessageUser(content="Lorem ipsum dolor")CODE
LOWtests/model/providers/test_hf.py258 assert chat == "user: Lorem ipsum dolor\n"CODE
LOWexamples/http_proxy/claude.py56 "FUTUREMODEL_API_KEY": "fm-fake-key-for-demo",CODE
LOW…ct_tool_support/_remote_tools/_web_browser/cdp/a11y.py94 "attribute", "implicit", "stylet", "contents", "placeholder", "relatedElement"CODE
LOWsrc/inspect_ai/model/_openai_responses.py1124 param["id"] = "dummy-id"CODE
LOWsrc/inspect_ai/model/_openai_responses.py2463 "name": "placeholder",CODE
LOWsrc/inspect_ai/model/_providers/anthropic.py4466 name="placeholder",CODE
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtests/tools/test_tool_error.py75CODE
MEDIUM…ts/agent/test_acp/test_tui/test_inline_request_card.py129CODE
MEDIUMtests/model/providers/test_sagemaker.py1419CODE
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/cancel_card.py162CODE
MEDIUMsrc/inspect_ai/agent/_acp/tui/widgets/approval_card.py113CODE
MEDIUM…spect_ai/agent/_acp/tui/widgets/inline_request_card.py115CODE
MEDIUM…spect_ai/agent/_acp/tui/widgets/inline_request_card.py126CODE
Overly Generic Function Names5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/test_flaky_retry.py111 def test_function():CODE
LOW…t_tool_support/src/inspect_tool_support/_cli/server.py16 async def handle_request(request: Request) -> Response:CODE
LOW…sandbox_tools/src/inspect_sandbox_tools/_cli/server.py56 async def handle_request(request: Request) -> Response:CODE
LOWsrc/inspect_ai/_util/_async.py64 async def run_task(func: Callable[[], Awaitable[T]], index: int) -> None:CODE
LOWsrc/inspect_ai/util/_collect.py38 async def run_task(index: int, task: Awaitable[T]) -> None:CODE