Inspect: A framework for large language model evaluations
This report summarizes scanner evidence for UKGovernmentBEIS/inspect_ai, a Python project with 3,149 GitHub stars. SynthScan examined 789,766 lines of code across 2060 source files, recording 19678 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 30.3 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 15563 finding(s).
Are imports declared and package/API names verified? 1655 finding(s).
Are wrappers, guards, and repeated structures necessary? 16565 finding(s).
Which changes need focused human review? 19678 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 19678 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | design/malicious-log-code-execution.md | 426 | def ensure_metrics_registered( | CODE |
| LOW | design/malicious-log-code-execution.md | 689 | def _instantiate_registry_object( | CODE |
| LOW | design/eval-sharding-implementation.md | 376 | async def merge_eval_log_shards_async(...same parameters...) -> ShardMergeResult: ... | CODE |
| LOW | design/ctl/config-log-persistence.md | 161 | def effective_generate_config(log: EvalLog) -> GenerateConfig: ... | CODE |
| LOW | tests/test_dependency_cooldown.py | 112 | def test_provider_packages_are_exempt() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 121 | def test_dependabot_cooldown_matches_pyproject() -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 149 | def test_setuptools_scm_fallback_version_is_the_released_version() -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 156 | def test_dependencies_are_declared_in_pyproject() -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 164 | def test_sync_models_script_follows_the_cooldown() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 188 | def test_pinned_uv_versions_meet_required_version() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 208 | def test_no_workflow_uses_the_build_and_inspect_action() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 215 | def test_pre_commit_hooks_run_locked_tools() -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 233 | def test_no_workflow_uses_the_pre_commit_action() -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 240 | def test_locked_jobs_install_from_the_lockfile(name: str, sync: str) -> None: | CODE |
| LOW⚡ | tests/test_dependency_cooldown.py | 245 | def test_sandbox_tools_unit_installs_from_its_hashed_lock() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 288 | def test_pip_installs_are_dependency_free_or_hashed() -> None: | CODE |
| LOW | tests/test_dependency_cooldown.py | 301 | def test_no_workflow_opts_out_of_the_cooldown() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 34 | def test_abort_cancel_produces_error_status() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 93 | def test_abort_cancel_not_retried_without_task_retries() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 166 | def test_score_resolution_cancel_completes_eval() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 223 | def test_error_resolution_cancel_completes_eval() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 265 | def test_error_resolution_rejected_when_samples_fail_on_error() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 274 | def error_resolution_rejected_solver(): | CODE |
| LOW | tests/test_task_cancel.py | 303 | def test_error_resolution_downgraded_for_materializing_fail_on_error_sample() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 329 | def downgrade_resolution_solver(): | CODE |
| LOW | tests/test_task_cancel.py | 366 | def test_drain_resolution_cancels_materializing_sample() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 446 | def test_sample_cancelled_interrupt_action() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 455 | def cancelled_interrupt_solver(): | CODE |
| LOW | tests/test_task_cancel.py | 493 | def test_score_resolution_sweep_preserves_cancelled_sample() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 506 | def cancelled_then_score_solver(): | CODE |
| LOW | tests/test_task_cancel.py | 543 | def test_interrupt_in_retry_drain_window_resolves_cancelled() -> None: | CODE |
| LOW | tests/test_task_cancel.py | 571 | def drain_window_error_solver(): | CODE |
| LOW | tests/test_task_cancel.py | 642 | def test_external_interrupt_with_pending_resolution_logs_cancelled( | CODE |
| LOW | tests/test_task_cancel.py | 836 | def test_sample_cancel_while_initializing_resolves_at_start( | CODE |
| LOW | tests/test_task_cancel.py | 917 | def test_sample_cancel_while_initializing_wins_over_later_task_score( | CODE |
| LOW | tests/test_task_cancel.py | 966 | def test_sample_cancel_while_initializing_then_init_failure_abandons( | CODE |
| LOW | tests/test_task_cancel.py | 1044 | def test_errored_attempt_marked_retry_pending() -> None: | CODE |
| LOW | tests/test_eval_set_capture.py | 68 | def test_eval_set_capture_manifest( | CODE |
| LOW | tests/test_eval_set_capture.py | 108 | def test_eval_set_capture_limit_and_epochs( | CODE |
| LOW | tests/test_eval_set_capture.py | 126 | def test_eval_set_capture_max_samples( | CODE |
| LOW | tests/test_eval_set_capture.py | 137 | def test_eval_set_capture_model_roles( | CODE |
| LOW | tests/test_eval_set_capture.py | 148 | def test_eval_set_capture_model_roles_list( | CODE |
| LOW | tests/test_eval_set_capture.py | 162 | def test_eval_set_capture_adhoc_task( | CODE |
| LOW | tests/test_eval_set_capture.py | 191 | def test_eval_set_capture_task_source_error( | CODE |
| LOW | tests/test_eval_set_capture.py | 204 | def test_eval_set_capture_subprocess_protocol(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_eval_set_capture.py | 347 | def test_eval_set_capture_schema_stability() -> None: | CODE |
| LOW⚡ | tests/test_sample_limits.py | 183 | def test_message_limit_generate(): | CODE |
| LOW⚡ | tests/test_sample_limits.py | 187 | def test_message_limit_append(): | CODE |
| LOW⚡ | tests/test_sample_limits.py | 191 | def test_message_limit_overwrite(): | CODE |
| LOW⚡ | tests/test_sample_limits.py | 195 | def test_message_limit_reached_before_assistant_message(): | CODE |
| LOW⚡ | tests/test_sample_limits.py | 1724 | def test_live_openai_working_time() -> None: | CODE |
| LOW⚡ | tests/test_sample_limits.py | 1729 | def test_live_anthropic_working_time() -> None: | CODE |
| LOW⚡ | tests/test_sample_limits.py | 1734 | def test_live_google_working_time() -> None: | CODE |
| LOW | tests/test_sample_limits.py | 112 | def looping_concurrecy_solver(): | CODE |
| LOW | tests/test_sample_limits.py | 211 | def test_message_limit_does_not_apply_to_scorer(): | CODE |
| LOW | tests/test_sample_limits.py | 260 | def test_token_limit_reached_exactly_refuses_next_generate(): | CODE |
| LOW | tests/test_sample_limits.py | 281 | def test_token_limit_does_not_apply_to_scorer(): | CODE |
| LOW | tests/test_sample_limits.py | 327 | def test_output_token_limit_string_form(): | CODE |
| LOW | tests/test_sample_limits.py | 362 | def test_token_limit_type_absent_for_int_limit(): | CODE |
| LOW | tests/test_sample_limits.py | 409 | def test_turn_limit_does_not_apply_to_scorer(): | CODE |
| 13963 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | design/s3-incremental-log-flush.md | 900 | #480 (independent) ──────────────────────────────────────┐ | COMMENT |
| MEDIUM | tests/test_task_cancel.py | 721 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_task_cancel.py | 724 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 36 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 451 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/conftest.py | 469 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 140 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 142 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 314 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 316 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 527 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 529 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 816 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 818 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 1018 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 1020 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 1148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_release_workflow.py | 1150 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_release_workflow.py | 603 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_release_workflow.py | 605 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_ctl.py | 8989 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_ctl.py | 8991 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 219 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 221 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 284 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 443 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 445 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 585 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 587 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 991 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 993 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1069 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1071 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1397 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1399 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1436 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_pause.py | 1438 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 132 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 134 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 217 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_buffer.py | 219 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 382 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 384 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 463 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 465 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 1190 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_score.py | 1192 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 194 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 196 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 1343 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 1345 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 1713 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_control/test_score.py | 1715 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/_control/test_server.py | 1756 | # --------------------------------------------------------------------------- | COMMENT |
| 1302 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_task_cancel.py | 708 | except KeyboardInterrupt: | CODE |
| HIGH | tests/conftest.py | 1204 | except BaseException: | CODE |
| HIGH | tests/test_eval_set.py | 216 | except Exception: | CODE |
| HIGH | tests/test_eval_set.py | 3331 | except KeyboardInterrupt: | CODE |
| HIGH | tests/test_eval_set.py | 885 | except KeyboardInterrupt: | CODE |
| HIGH | tests/test_cancellation_logging.py | 300 | except KeyboardInterrupt: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 101 | except Exception: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 279 | except (ValueError, PrerequisiteError): | CODE |
| HIGH | tests/test_model_env_mismatch.py | 50 | except Exception: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 136 | except Exception: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 168 | except Exception: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 221 | except Exception: | CODE |
| HIGH | tests/test_model_env_mismatch.py | 247 | except Exception: | CODE |
| HIGH | tests/tools/test_tools_bridge.py | 1033 | except Exception: | CODE |
| HIGH | tests/tools/test_tools_bridge.py | 1724 | except Exception: | CODE |
| HIGH | tests/tools/test_tools_bridge.py | 1908 | except Exception: | CODE |
| HIGH | tests/tools/test_mcp_tools.py | 180 | except anyio.ClosedResourceError: | CODE |
| HIGH | tests/tools/test_tool_with.py | 34 | except Exception: | CODE |
| HIGH | tests/util/test_media_resolver.py | 57 | except ValueError: | CODE |
| HIGH | tests/util/test_asyncfiles.py | 429 | except EndOfStream: | CODE |
| HIGH | tests/util/test_asyncfiles.py | 455 | except EndOfStream: | CODE |
| HIGH | tests/input/test_input_acp.py | 104 | except ValueError: | CODE |
| HIGH | tests/agent/deepagent/test_agent_tool.py | 266 | except Exception: | CODE |
| HIGH | tests/agent/test_channel/test_channel.py | 202 | except BaseException: | CODE |
| HIGH | tests/agent/test_acp/test_span_boundary.py | 184 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_server_dispatch.py | 71 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_dispatch.py | 221 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_server_dispatch.py | 226 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_server_dispatch.py | 64 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 775 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 779 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 89 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 203 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 208 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 82 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 843 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_standard_acp_client.py | 81 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_standard_acp_client.py | 192 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_standard_acp_client.py | 197 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_standard_acp_client.py | 74 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_raw_events.py | 87 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_raw_events.py | 174 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_raw_events.py | 179 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_raw_events.py | 80 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_raw_events.py | 351 | except asyncio.TimeoutError: | CODE |
| HIGH | tests/agent/test_acp/test_action_methods.py | 555 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_action_methods.py | 610 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_action_methods.py | 615 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_action_methods.py | 548 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_discovery.py | 72 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_discovery.py | 68 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_elicitation_e2e.py | 87 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_elicitation_e2e.py | 163 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_elicitation_e2e.py | 168 | except Exception: | CODE |
| HIGH | tests/agent/test_acp/test_elicitation_e2e.py | 83 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_stdio_bridge.py | 69 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_stdio_bridge.py | 65 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_session_info.py | 59 | except OSError: | CODE |
| HIGH | tests/agent/test_acp/test_server_session_info.py | 153 | except (asyncio.CancelledError, Exception): | CODE |
| HIGH | tests/agent/test_acp/test_server_session_info.py | 158 | except Exception: | CODE |
| 259 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 31 | CODE | |
| LOW | tests/test_release_workflow.py | 10 | CODE | |
| LOW | tests/test_eval_set_scanner.py | 3244 | CODE | |
| LOW | tests/test_disk_sample_store.py | 23 | CODE | |
| LOW | tests/test_disk_sample_store.py | 24 | CODE | |
| LOW | tests/_control/test_state.py | 20 | CODE | |
| LOW | tests/_control/test_cancel.py | 22 | CODE | |
| LOW | tests/tools/test_mcp_session_isolation.py | 14 | CODE | |
| LOW | tests/tools/test_tool_parse.py | 20 | CODE | |
| LOW | tests/tools/test_sandbox_docker_and_local.py | 20 | CODE | |
| LOW | …ools/sandbox_tools_utils/test_sandbox_tools_digests.py | 9 | CODE | |
| LOW | tests/checkpoint/test_eval_checkpoints.py | 3 | CODE | |
| LOW | tests/checkpoint/test_sample_checkpoints.py | 3 | CODE | |
| LOW | tests/checkpoint/test_resume_copy.py | 11 | CODE | |
| LOW | tests/checkpoint/test_resolve.py | 3 | CODE | |
| LOW | tests/checkpoint/docker_projects.py | 3 | CODE | |
| LOW | tests/checkpoint/conftest.py | 11 | CODE | |
| LOW | tests/checkpoint/hydrate_interrupt_harness.py | 27 | CODE | |
| LOW | tests/checkpoint/test_checkpoint_scoring_resume_e2e.py | 23 | CODE | |
| LOW | tests/checkpoint/resume_kill_thinking_harness.py | 35 | CODE | |
| LOW | tests/checkpoint/test_parse.py | 3 | CODE | |
| LOW | tests/checkpoint/test_staging_dir.py | 3 | CODE | |
| LOW | tests/checkpoint/test_snapshot_strategy.py | 15 | CODE | |
| LOW | tests/checkpoint/test_sandbox_dir.py | 12 | CODE | |
| LOW | tests/checkpoint/test_current_checkpointer_post_exit.py | 31 | CODE | |
| LOW | tests/checkpoint/test_sandbox_restic_repo.py | 20 | CODE | |
| LOW | tests/checkpoint/test_sample_runtime.py | 3 | CODE | |
| LOW | tests/checkpoint/test_layout_paths.py | 3 | CODE | |
| LOW | tests/checkpoint/test_host_egress.py | 9 | CODE | |
| LOW | tests/checkpoint/test_checkpoint_e2e.py | 40 | CODE | |
| LOW | tests/checkpoint/test_checkpointer.py | 10 | CODE | |
| LOW | tests/checkpoint/test_fs_copy_s3.py | 12 | CODE | |
| LOW | tests/checkpoint/resume_scoring_kill_harness.py | 24 | CODE | |
| LOW | tests/checkpoint/test_host_egress_s3.py | 9 | CODE | |
| LOW | tests/checkpoint/resume_kill_harness.py | 21 | CODE | |
| LOW | tests/checkpoint/test_sandbox_egress_restic.py | 24 | CODE | |
| LOW | tests/checkpoint/test_restore_repo.py | 11 | CODE | |
| LOW | tests/checkpoint/test_schemas.py | 9 | CODE | |
| LOW | tests/checkpoint/test_sandbox_egress_extract.py | 14 | CODE | |
| LOW | tests/checkpoint/test_sandbox_paths.py | 3 | CODE | |
| LOW | tests/checkpoint/test_normalize.py | 10 | CODE | |
| LOW | tests/checkpoint/test_restore_scope.py | 9 | CODE | |
| LOW | tests/util/test_restic_ops.py | 15 | CODE | |
| LOW | tests/util/test_zipfile_multiframe.py | 8 | CODE | |
| LOW | tests/util/test_download.py | 3 | CODE | |
| LOW | tests/util/test_restic_summary.py | 9 | CODE | |
| LOW | tests/util/test_store_from_events.py | 7 | CODE | |
| LOW | tests/util/test_async_zip.py | 7 | CODE | |
| LOW | tests/util/test_async_zip.py | 22 | CODE | |
| LOW | tests/util/test_limit_working.py | 1 | CODE | |
| LOW | tests/util/test_compression_transcoding.py | 3 | CODE | |
| LOW | tests/util/test_restic_binary.py | 19 | CODE | |
| LOW | tests/input/test_input_acp.py | 11 | CODE | |
| LOW | tests/input/test_input_panel.py | 11 | CODE | |
| LOW | tests/agent/test_bridge_additional_tools.py | 16 | CODE | |
| LOW | tests/agent/test_bridge_agent_message.py | 25 | CODE | |
| LOW | tests/agent/test_bridge_google_messages.py | 18 | CODE | |
| LOW | tests/agent/test_bridge_function_call_id.py | 11 | CODE | |
| LOW | tests/agent/test_bridge_tool_search.py | 9 | CODE | |
| LOW | tests/agent/test_bridge_provider_errors.py | 10 | CODE | |
| 1427 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/test_eval_set_overrides.py | 677 | """`model_dump_json()` writes every unset field as null, and that has to be readable. | STRING |
| HIGH | tests/test_eval_set_overrides.py | 701 | Read as an instruction, `{"max_connections": null}` replaced a definition's | STRING |
| HIGH | tests/test_docker_workflow.py | 44 | 'inspect-tool-support && touch "$CANARY"', | CODE |
| HIGH⚡ | tests/_control/test_ctl.py | 662 | # a running sample with nothing pending (activity null) keeps the | COMMENT |
| HIGH | tests/_control/test_log_dir.py | 331 | # live-only state is null, not a false zero | COMMENT |
| HIGH | tests/tools/sandbox_tools_utils/test_sandbox_tools.py | 830 | "input": f"echo {flag} > /flag && chmod 400 /flag; ls -al /flag && cat /flag", | CODE |
| HIGH | tests/tools/sandbox_tools_utils/test_sandbox_tools.py | 934 | f"touch {SANDBOX_TOOLS_DIR}/planted && echo CREATED; " | CODE |
| HIGH | tests/tools/sandbox_tools_utils/test_sandbox_tools.py | 935 | f"mv {SANDBOX_TOOLS_DIR} {SANDBOX_TOOLS_DIR}.moved && echo MOVED; " | CODE |
| HIGH | tests/tools/sandbox_tools_utils/test_sandbox_tools.py | 1027 | "input": "command -v gzip || echo no-gzip; echo probe-done", | CODE |
| HIGH | …ls/sandbox_tools_utils/test_sandbox_tools_injection.py | 152 | TAR_XZF_STDIN = "tar xzf - || { cat >/dev/null; exit 1; }" | CODE |
| HIGH | …ls/sandbox_tools_utils/test_sandbox_tools_injection.py | 153 | TAR_XF_STDIN = "tar xf - || { cat >/dev/null; exit 1; }" | CODE |
| HIGH⚡ | tests/util/test_store_from_events.py | 516 | """Add operation should include value even when it's None (explicit null).""" | STRING |
| HIGH⚡ | tests/util/test_format.py | 105 | text = "echo \\x1b && printf '\\n'\n\tdone" | CODE |
| HIGH | tests/util/sandbox/test_docker_read_file.py | 659 | 'set -e; dd if=/dev/zero of="$1" bs=1048576 count=32 2>/dev/null; ' | CODE |
| HIGH | tests/util/sandbox/test_privileged.py | 290 | 'mkdir -p -- "$1" && tar --version >/dev/null && sh -c \'printf %s "$PATH"\'', | CODE |
| HIGH | tests/util/sandbox/test_privileged.py | 601 | 'tar --version >/dev/null && rm -rf /root/pinned-check && printf %s "$PATH"', | CODE |
| HIGH | tests/util/sandbox/test_privileged.py | 615 | ["sh", "-c", "tar --version >/dev/null && cat > ./ok"], | CODE |
| HIGH⚡ | tests/util/sandbox/test_framework_directory.py | 740 | local, str(target), ["sh", "-c", "pwd -P && touch marker"], user=None | CODE |
| HIGH | tests/util/sandbox/test_framework_directory.py | 770 | 'mv -- "$1" "$2" && ln -s -- "$3" "$1" && touch ./marker && pwd -P', | CODE |
| HIGH | tests/util/sandbox/test_sandbox_service.py | 1214 | _DECOY = "mkdir -p /tmp/decoy && chmod 777 /tmp/decoy && touch /tmp/decoy/sentinel" | CODE |
| HIGH | tests/util/sandbox/test_sandbox_service.py | 1308 | f"mkdir -m 700 {svc}/responses && echo stale > {svc}/responses/stale.json", | CODE |
| HIGH | tests/util/sandbox/test_docker_compose_config.py | 632 | 'rmdir /host/data && ln -s "$1" /host/data', | CODE |
| HIGH | tests/dataset/test_dataset.py | 918 | '{"trigger": null, "max_consecutive_failures": 0}', id="json-string-null" | CODE |
| HIGH | tests/agent/test_bridge_function_call_id.py | 21 | """Each function_call item gets a non-null, unique id; call_id round-trips.""" | STRING |
| HIGH⚡ | tests/agent/test_agent_human.py | 1072 | "touch /root/target && chmod 644 /root/target && " | CODE |
| HIGH⚡ | tests/agent/test_agent_human.py | 1073 | "rm /home/nonroot/.bashrc && ln -s /root/target /home/nonroot/.bashrc", | CODE |
| HIGH | tests/agent/test_agent_human.py | 1000 | docker_sandbox, "cat /root/.bashrc 2>/dev/null || true" | CODE |
| HIGH | tests/agent/test_agent_human.py | 1039 | f"mkdir -p /home/nonroot/decoy && ln -s /home/nonroot/decoy {HUMAN_AGENT_DIR}", | CODE |
| HIGH | tests/agent/test_agent_human.py | 1055 | f"ls -A {HUMAN_AGENT_DIR} /home/nonroot/decoy 2>/dev/null || true", | CODE |
| HIGH | tests/scorer/test_metric.py | 210 | Serialized as JSON constants (NaN/Infinity) rather than null, via both | STRING |
| HIGH⚡ | tests/scorer/test_reducers.py | 755 | # With fewer than k scored epochs the estimator is undefined, so the | COMMENT |
| HIGH⚡ | tests/scorer/test_math.py | 630 | assert plain.equals(latex) | CODE |
| HIGH | tests/_cli/test_util.py | 71 | "critic={model: mockllm/model, temperature: 0.2, model_args: {custom_outputs: null}}", | CODE |
| HIGH | tests/_cli/test_util.py | 223 | "{model: mockllm/model, model_args: {custom_outputs: null}, " | CODE |
| HIGH | tests/model/providers/test_anthropic.py | 3462 | 'head -c 9 /dev/urandom | base64 > /tmp/seed && echo "seed-$(cat /tmp/seed)"' | CODE |
| HIGH | tests/model/providers/test_anthropic.py | 3464 | pending_cmd = 'sleep 5 && echo "marker-$(cat /tmp/seed)"' | CODE |
| HIGH | tests/model/providers/test_bedrock_structured_output.py | 38 | nickname: Optional[str] = None # renders as anyOf:[string, null] | CODE |
| HIGH | …ts/model/providers/test_anthropic_cache_diagnostics.py | 365 | """`{cache_miss_reason: null}` means comparison still pending — no warning.""" | STRING |
| HIGH | tests/model/providers/test_litellm_proxy.py | 2024 | '"invalid_request_error", "param": null, "code": "invalid_prompt"}}\n' | CODE |
| HIGH | tests/model/providers/test_litellm_proxy.py | 2439 | 'litellm.BadRequestError: MetaException - {"error":{"code":null,' | CODE |
| HIGH | tests/model/providers/test_openai_responses.py | 360 | Meta's Model API streams a refusal-only response whose `model` is null; | STRING |
| HIGH⚡ | tests/log/test_message_pool.py | 1052 | Regression: if persistence stores call_refs as [] instead of null, | STRING |
| HIGH | tests/log/test_eval_log.py | 1652 | null_value = re.compile(r'"value":\s*(null|\[\s*null|\{"a":\s*null)') | CODE |
| HIGH | tests/_eval/task/test_hf.py | 382 | # hard-fails under the C locale (ascii) and cp1252 (0x81 undefined); | COMMENT |
| HIGH | .agents/skills/ci-perf/scripts/test_ci_perf.py | 1226 | # runner_id 0 (not null), no steps, and a shared started_at across jobs. Run | COMMENT |
| HIGH⚡ | .agents/skills/ci-perf/scripts/test_ci_perf.py | 1257 | """A queued-cancel with runner_name "" (not null) adds no runner time. | STRING |
| HIGH⚡ | .agents/skills/ci-perf/scripts/test_ci_perf.py | 1259 | The live shape reports an empty runner_name, not null, so these jobs must | STRING |
| HIGH⚡ | …sandbox_tools/tests/test_text_editor_validated_path.py | 329 | b'{"/x": [null]}', | CODE |
| HIGH | src/inspect_sandbox_tools/tests/test_exec_remote.py | 292 | "command": "echo hello_from_kill && echo err_from_kill >&2 && sleep 100" | CODE |
| HIGH | src/inspect_sandbox_tools/tests/test_exec_remote.py | 412 | "params": {"command": "echo stdout_msg && echo stderr_msg >&2"}, | CODE |
| HIGH | …_sandbox_tools/tests/test_mcp_server_session_reader.py | 31 | b'{"jsonrpc":"2.0","id":null,' | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 10 | sd.push("A") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 19 | sd.push("A") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 25 | sd.push("B") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 34 | sd.push("A") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 39 | sd.push("B") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 48 | sd.push("A") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 51 | sd.push("B") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 54 | sd.push("C") | CODE |
| HIGH⚡ | …inspect_sandbox_tools/tests/test_acked_chunk_buffer.py | 63 | sd.push("data") | CODE |
| 61 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_dependency_cooldown.py | 77 | CODE | |
| LOW | tests/conftest.py | 610 | CODE | |
| LOW | tests/test_eval_set_scanner.py | 1182 | CODE | |
| LOW | tests/test_sandbox_tools_version_gate.py | 323 | CODE | |
| LOW | tests/test_sandbox_tools_version_gate.py | 340 | CODE | |
| LOW | tests/_control/test_pause.py | 1441 | CODE | |
| LOW | tests/_control/test_pause.py | 1471 | CODE | |
| LOW | tests/_control/test_pause.py | 1472 | CODE | |
| LOW | tests/_control/test_limits.py | 1257 | CODE | |
| LOW | tests/_control/test_requeue.py | 1621 | CODE | |
| LOW | tests/tools/test_mcp_tools.py | 87 | CODE | |
| LOW | tests/tools/test_mcp_tools.py | 767 | CODE | |
| LOW | tests/tools/test_mcp_tools.py | 128 | CODE | |
| LOW | tests/tools/test_mcp_tools.py | 137 | CODE | |
| LOW | tests/tools/test_skill.py | 614 | CODE | |
| LOW | tests/tools/test_skill.py | 928 | CODE | |
| LOW | tests/tools/test_skill.py | 1234 | CODE | |
| LOW | tests/checkpoint/test_checkpoint_e2e.py | 179 | CODE | |
| LOW | tests/util/test_asyncfiles.py | 3375 | CODE | |
| LOW | tests/util/test_limit_working.py | 609 | CODE | |
| LOW | tests/util/test_limit_working.py | 905 | CODE | |
| LOW | tests/util/test_limit_working.py | 1031 | CODE | |
| LOW | tests/util/test_limit_working.py | 1115 | CODE | |
| LOW | tests/util/test_limit_working.py | 1612 | CODE | |
| LOW | tests/util/test_json.py | 331 | CODE | |
| LOW | …/util/sandbox/test_multi_sandbox_context_management.py | 46 | CODE | |
| LOW | tests/util/sandbox/test_docker_cleanup.py | 272 | CODE | |
| LOW | tests/util/sandbox/test_local_sandbox.py | 29 | CODE | |
| LOW | tests/agent/test_agent_compaction.py | 220 | CODE | |
| LOW | tests/agent/test_bridge_provider_errors.py | 1172 | CODE | |
| LOW | tests/agent/test_bridge_provider_errors.py | 1173 | CODE | |
| LOW | tests/agent/test_agent_react.py | 172 | CODE | |
| LOW | tests/agent/test_agent_react.py | 173 | CODE | |
| LOW | tests/agent/test_bridge_approval.py | 5040 | CODE | |
| LOW | tests/agent/test_channel/test_channel.py | 134 | CODE | |
| LOW | tests/agent/test_acp/test_server_dispatch.py | 45 | CODE | |
| LOW | tests/agent/test_acp/test_server_dispatch.py | 173 | CODE | |
| LOW | tests/agent/test_acp/test_server_forwarding.py | 63 | CODE | |
| LOW | tests/agent/test_acp/test_server_forwarding.py | 157 | CODE | |
| LOW | tests/agent/test_acp/test_standard_acp_client.py | 55 | CODE | |
| LOW | tests/agent/test_acp/test_standard_acp_client.py | 225 | CODE | |
| LOW | tests/agent/test_acp/test_standard_acp_client.py | 149 | CODE | |
| LOW | tests/agent/test_acp/test_raw_events.py | 62 | CODE | |
| LOW | tests/agent/test_acp/test_raw_events.py | 313 | CODE | |
| LOW | tests/agent/test_acp/test_raw_events.py | 133 | CODE | |
| LOW | tests/agent/test_acp/test_action_methods.py | 529 | CODE | |
| LOW | tests/agent/test_acp/test_action_methods.py | 572 | CODE | |
| LOW | tests/agent/test_acp/test_discovery.py | 36 | CODE | |
| LOW | tests/agent/test_acp/test_elicitation_e2e.py | 61 | CODE | |
| LOW | tests/agent/test_acp/test_elicitation_e2e.py | 116 | CODE | |
| LOW | tests/agent/test_acp/test_stdio_bridge.py | 43 | CODE | |
| LOW | tests/agent/test_acp/test_server_session_info.py | 115 | CODE | |
| LOW | tests/agent/test_acp/test_server.py | 29 | CODE | |
| LOW | tests/agent/test_acp/test_approval.py | 1445 | CODE | |
| LOW | tests/agent/test_acp/test_approval.py | 1499 | CODE | |
| LOW | tests/agent/test_acp/test_tui/test_client.py | 89 | CODE | |
| LOW | tests/sentinel/test_sentinel_replay.py | 1384 | CODE | |
| LOW | tests/sentinel/test_sentinel_dispatch.py | 3596 | CODE | |
| LOW | tests/sentinel/test_sentinel_dispatch.py | 4357 | CODE | |
| LOW | tests/sentinel/test_sentinel_dispatch.py | 5863 | CODE | |
| 614 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/inspect_sandbox_tools/tests/conftest.py | 80 | Execute an RPC request via the CLI and return the parsed response. Args: request: The JSON-RPC request dict | STRING |
| HIGH | src/inspect_sandbox_tools/tests/test_exec_remote.py | 34 | Poll an exec_remote job until it completes or times out. Args: rpc_client: The RPC client function to use f | STRING |
| HIGH | …ls/src/inspect_sandbox_tools/_util/json_rpc_helpers.py | 46 | Validates RPC method parameters and handles the method execution. This function validates the provided paramet | STRING |
| HIGH | src/inspect_ai/_util/registry.py | 452 | Create a registry object. Creates objects registered via decorator (e.g. `@task`, `@solver`). Note that this ca | STRING |
| HIGH | src/inspect_ai/_util/registry.py | 583 | Lookup RegistryInfo for an object. Args: o (object): Object to lookup info for Returns: Regist | STRING |
| HIGH | src/inspect_ai/_util/flag_values.py | 29 | An option that is a bare flag or an integer. Args: value: The text given, or `None` for the bare flag. | STRING |
| HIGH | src/inspect_ai/_util/download.py | 47 | Download a file and verify its SHA256 checksum. If `dest` already exists and its checksum matches, the download is | STRING |
| HIGH | src/inspect_ai/_util/download.py | 115 | Download a Google Drive file via `gdown` and verify SHA256. Useful for fetching public-link Google Drive assets (da | STRING |
| HIGH | src/inspect_ai/_util/format.py | 119 | Format a template string, optionally preserving unknown placeholders. Args: template: A string containing { | STRING |
| HIGH | src/inspect_ai/_util/_json_rpc.py | 159 | Execute a JSON-RPC command expecting a scalar result. Args: method (str): The JSON-RPC method to call. | STRING |
| HIGH | src/inspect_ai/_util/_json_rpc.py | 199 | Execute a JSON-RPC command to a sandbox environment expecting a model result. Args: method (str): The JS | STRING |
| HIGH | src/inspect_ai/_util/_json_rpc.py | 233 | Execute a JSON-RPC notification to a sandbox environment. A notification is a JSON-RPC request that doesn't ex | STRING |
| HIGH | src/inspect_ai/_util/_json_rpc.py | 342 | Generate a string description of an RPC call. Args: method (str): The name of the RPC method. | STRING |
| HIGH | src/inspect_ai/_util/local_server.py | 294 | Start a server with the given command and handle potential errors. Args: base_cmd: List of base comman | STRING |
| HIGH | src/inspect_ai/_util/file.py | 671 | Convert a string into a safe filename by removing or replacing unsafe characters. Args: s (str): The i | STRING |
| HIGH | src/inspect_ai/_util/dateutil.py | 148 | Parse and normalize ISO datetime string or datetime instance to UTC. For legacy string temporal fields that cannot | STRING |
| HIGH | src/inspect_ai/_util/_async.py | 47 | Runs all of the passed async functions and collects their results. The results will be returned in the same order a | STRING |
| HIGH | src/inspect_ai/_util/text.py | 141 | Convert a str to float, handling exponent characters and Unicode fractions. The Python isnumeric() function returns | STRING |
| HIGH | src/inspect_ai/_util/asyncfiles.py | 1275 | Upload `source` to an S3 key only if the key's current state matches. Exactly one of `if_match` (the expected E | STRING |
| HIGH | src/inspect_ai/_util/images.py | 183 | Validate an inline image returned by a model provider. Provider output is untrusted, so only inline data URIs are a | STRING |
| HIGH | src/inspect_ai/_util/async_zip.py | 469 | Open a ZIP member and stream its decompressed contents. Must be used as an async context manager to ensure prop | STRING |
| HIGH | src/inspect_ai/_util/atomic_write.py | 106 | Context manager for atomic local-file writes with durability guarantees. Implements the write-to-temporary-then-ato | STRING |
| HIGH | src/inspect_ai/util/_json.py | 415 | Convert JSON schema to Pydantic BaseModel. Handles nested objects, arrays, and basic validations. Args: | STRING |
| HIGH | src/inspect_ai/util/_subprocess.py | 120 | Execute and wait for a subprocess. Convenience method for solvers, scorers, and tools to launch subprocesses. A | STRING |
| HIGH | src/inspect_ai/util/_store.py | 278 | Convert a JsonChange to a jsonpatch operation dict with validation. Args: change: The JsonChange to convert | STRING |
| HIGH | src/inspect_ai/util/_tool_state.py | 45 | Resolve a tool's `instance` argument against the current tool state scope. Stateful tools call this on each call an | STRING |
| HIGH | src/inspect_ai/util/_notify.py | 62 | Build an `Apprise` instance for the eval's notification config. Notification URLs frequently carry secrets (Slack t | STRING |
| HIGH | src/inspect_ai/util/_panel.py | 82 | Create an input panel in the task display. There can only be a single instance of an InputPanel with a given 't | STRING |
| HIGH | src/inspect_ai/util/_restic/resolver.py | 129 | Return a path to a usable restic binary for the given platform. Downloads the archive on cache miss, retrying trans | STRING |
| HIGH | src/inspect_ai/util/_sandbox/exec_remote.py | 674 | Run a command and return the result without streaming. Submits the command, polls until completion, and returns Exe | STRING |
| HIGH | src/inspect_ai/util/_sandbox/compose.py | 459 | Parse a Docker Compose file into a ComposeConfig. Args: file: Path to the compose file. multiple_se | STRING |
| HIGH | src/inspect_ai/util/_sandbox/context.py | 188 | Get a SandboxEnvironment that satisfies all the given injection requirements. Args: injectables: Single San | STRING |
| HIGH | src/inspect_ai/util/_sandbox/context.py | 450 | Find the best sandbox for injection and return it with needed injections. Args: injectables: List of detect | STRING |
| HIGH | src/inspect_ai/util/_sandbox/environment.py | 216 | Execute a command within a sandbox environment. The current working directory for execution will be the per-sam | STRING |
| HIGH | src/inspect_ai/util/_sandbox/environment.py | 324 | Read a file from the sandbox environment. By default, file size is limited to 100 MiB. You may change this by s | STRING |
| HIGH | src/inspect_ai/util/_sandbox/environment.py | 375 | Information required to connect to sandbox environment. Args: user: User to login as. Return | STRING |
| HIGH | src/inspect_ai/util/_sandbox/environment.py | 414 | Start a command and return a process handle or result. In streaming mode (stream=True), the function returns on | STRING |
| HIGH | src/inspect_ai/util/_sandbox/environment.py | 487 | Verify and return a reference to a subclass of SandboxEnvironment. Args: sandbox_cls: Class of sandb | STRING |
| HIGH | src/inspect_ai/util/_sandbox/_privileged.py | 139 | Run ``cmd`` in ``sandbox`` as ``user`` with utilities resolved via :data:`SYSTEM_PATH`. A drop-in for ``sandbox.exe | STRING |
| HIGH | src/inspect_ai/util/_sandbox/_privileged.py | 222 | Look ``name`` up on the *image's* ``PATH`` with a ``which`` resolved via :data:`SYSTEM_PATH`. For the questions tha | STRING |
| HIGH | src/inspect_ai/util/_sandbox/_framework_directory.py | 573 | Create or adopt ``path`` as a root-owned framework directory, if root works. Runs :func:`ensure_framework_directory | STRING |
| HIGH | src/inspect_ai/util/_sandbox/_framework_directory.py | 715 | Verify ``path`` and then run ``cmd`` with the verified directory as cwd. The verification and the command run in th | STRING |
| HIGH | src/inspect_ai/util/_sandbox/_json_rpc_transport.py | 72 | Execute an RPC request using the sandbox transport. Args: method: The JSON-RPC method to call. | STRING |
| HIGH | src/inspect_ai/dataset/_util.py | 210 | Read answer choices from a dataset field. Trailing empty or whitespace-only choices are removed. A blank that r | STRING |
| HIGH | src/inspect_ai/dataset/_util.py | 242 | Remove trailing blank choices without shifting later answer letters. Args: choices: Choice strings, not yet | STRING |
| HIGH | src/inspect_ai/_lfs/_client.py | 39 | Get download URLs for LFS objects via the batch API. Chunks requests to avoid exceeding GitHub's payload size limit | STRING |
| HIGH | src/inspect_ai/_lfs/resolver.py | 20 | Resolve a directory that may contain LFS pointer files. Recursively checks source_dir for LFS pointers. If none are | STRING |
| HIGH | src/inspect_ai/solver/_solver.py | 85 | Contribute to solving an evaluation task. Transform a `TaskState`, returning the new state. Solvers may | STRING |
| HIGH | src/inspect_ai/solver/_solver.py | 163 | Decorator for registering solvers. Args: name: Optional name for solver. If the decorator has n | STRING |
| HIGH | src/inspect_ai/scorer/_scorer.py | 139 | Decorator for registering scorers. Args: metrics: One or more metrics to calculate over the sco | STRING |
| HIGH | src/inspect_ai/scorer/_metric.py | 371 | Compute a metric on a list of scores. Args: scores: List of scores. Returns: Metri | STRING |
| HIGH | src/inspect_ai/scorer/_score.py | 16 | Score a model conversation. Score a model conversation (you may pass `TaskState` or `AgentState` as the value f | STRING |
| HIGH | src/inspect_ai/scorer/_metrics/aggregate.py | 25 | Apply `agg` to a single key extracted from each dict-valued `Score.value`. Many scorers emit dict-valued scores (mu | STRING |
| HIGH | src/inspect_ai/_view/_csp.py | 28 | Read the viewer Content-Security-Policy from a dist directory. Args: dist_dir: Local directory containing t | STRING |
| HIGH | src/inspect_ai/_cli/util.py | 189 | Parse model roles from CLI args. Supports key-value, YAML, and JSON formats. Args: model_roles: Tuple of st | STRING |
| HIGH | src/inspect_ai/_cli/util.py | 251 | Parse model specs from CLI args. Each spec is one YAML or JSON mapping. A spec holds `model` (required), `base_url` | STRING |
| HIGH | src/inspect_ai/_cli/eval.py | 1890 | Resolve `--model-spec` into one model per spec. A spec builds a `Model`, and `get_model()` returns a `Model` unchan | STRING |
| HIGH | src/inspect_ai/model/_internal.py | 15 | Extracts and removes a smuggled <internal>...</internal> tag from the content string, if present. Note: | STRING |
| HIGH | src/inspect_ai/model/_openai_responses.py | 2456 | Convert CompactedResponse to a list of ChatMessages. The compact endpoint returns the complete new context window, | STRING |
| HIGH | src/inspect_ai/model/_google_convert.py | 78 | Convert Google GenerateContentResponse into Inspect ModelOutput. Args: response: Google GenerateContentResp | STRING |
| 49 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | design/bridge-host-tool-events.md | 703 | except Exception as ex: | CODE |
| LOW | design/deepagent-background.md | 137 | except Exception as ex: | CODE |
| LOW | design/recover.md | 320 | except Exception: | CODE |
| LOW | design/recover.md | 401 | except Exception: | CODE |
| LOW | design/malicious-log-code-execution.md | 341 | except Exception: | CODE |
| LOW | tests/test_retry.py | 408 | except Exception: | CODE |
| LOW | tests/conftest.py | 571 | except Exception as ex: | CODE |
| LOW | tests/conftest.py | 655 | except Exception as ex: | CODE |
| LOW⚡ | tests/test_eval_set.py | 209 | except Exception: | CODE |
| LOW⚡ | tests/test_eval_set.py | 216 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 50 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 101 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 136 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 168 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 221 | except Exception: | CODE |
| LOW | tests/test_model_env_mismatch.py | 247 | except Exception: | CODE |
| LOW | tests/tools/test_tools_bridge.py | 1033 | except Exception: | CODE |
| LOW | tests/tools/test_tools_bridge.py | 1320 | except Exception as ex: | CODE |
| LOW | tests/tools/test_tools_bridge.py | 1724 | except Exception: | CODE |
| LOW | tests/tools/test_tools_bridge.py | 1908 | except Exception: | CODE |
| LOW | tests/tools/test_mcp_tools.py | 311 | except Exception as ex: | CODE |
| LOW | tests/tools/test_sandbox_docker_and_local.py | 144 | except Exception: | CODE |
| LOW | tests/tools/test_tool_with.py | 34 | except Exception: | CODE |
| MEDIUM | tests/tools/test_tool_with.py | 27 | def test_tool_with_validation(): | CODE |
| LOW | tests/tools/sandbox_tools_utils/test_sandbox_tools.py | 676 | except Exception as ex: | CODE |
| MEDIUM | tests/util/test_async.py | 50 | def fail(): | CODE |
| MEDIUM | tests/util/test_async.py | 225 | def _fail_with_cause() -> None: | CODE |
| LOW | tests/util/test_async.py | 64 | except Exception as group: | CODE |
| LOW | tests/util/test_async.py | 77 | except Exception as group: | CODE |
| LOW⚡ | tests/util/test_anyio.py | 62 | except Exception as inner_tool_error: | CODE |
| LOW⚡ | tests/util/test_anyio.py | 68 | except Exception as e: | CODE |
| LOW⚡ | tests/util/test_anyio.py | 70 | except Exception as wow: | CODE |
| LOW | tests/util/sandbox/test_sandbox_service.py | 1178 | except Exception as ex: | CODE |
| LOW | tests/util/sandbox/test_sandbox_service.py | 120 | except Exception as e: | STRING |
| LOW | tests/agent/test_bridge_refusals.py | 278 | except Exception as ex: | CODE |
| MEDIUM | tests/agent/test_bridge_approval.py | 5076 | def call() -> None: | CODE |
| LOW | tests/agent/test_bridge_approval.py | 5081 | except Exception as ex: | CODE |
| LOW | tests/agent/test_bridge_approval.py | 5182 | except Exception as ex: | CODE |
| MEDIUM | tests/agent/deepagent/test_agent_tool.py | 258 | def import ToolDef | CODE |
| LOW | tests/agent/deepagent/test_agent_tool.py | 266 | except Exception: | CODE |
| LOW | tests/agent/test_acp/test_span_boundary.py | 184 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_server_dispatch.py | 173 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_server_dispatch.py | 226 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_server_forwarding.py | 157 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_server_forwarding.py | 208 | except Exception: | CODE |
| LOW | tests/agent/test_acp/test_server_forwarding.py | 779 | except Exception: | CODE |
| LOW | tests/agent/test_acp/test_server_forwarding.py | 843 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_standard_acp_client.py | 149 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_standard_acp_client.py | 197 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_raw_events.py | 133 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_raw_events.py | 179 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_action_methods.py | 572 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_action_methods.py | 615 | except Exception: | CODE |
| LOW | tests/agent/test_acp/test_elicitation_e2e.py | 168 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_elicitation_e2e.py | 116 | def _read_loop(self) -> None: | CODE |
| LOW | tests/agent/test_acp/test_server_session_info.py | 158 | except Exception: | CODE |
| MEDIUM | tests/agent/test_acp/test_server_session_info.py | 115 | def _read_loop(self) -> None: | CODE |
| LOW⚡ | tests/agent/test_acp/test_server.py | 266 | except Exception: | CODE |
| LOW⚡ | tests/agent/test_acp/test_server.py | 318 | except Exception: | CODE |
| LOW | tests/agent/test_acp/test_server.py | 238 | except Exception: | CODE |
| 408 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 3059 | - ReAct Agent: [truncation](https://inspect.aisi.org.uk/agents.html#truncation) option to trim conversation messages whe | CODE |
| MEDIUM | design/bridge-host-tool-events.md | 184 | teardown #5464 triggers may pre-empt delivery of the reply; the scaffold's | CODE |
| MEDIUM | design/ctl/pause-resume.md | 140 | - **Hard pause (hold at next model call) — implemented.** `pause --now`: in addition to quiesce, hold in-flight samples | CODE |
| MEDIUM | design/ctl/control-channel.md | 992 | - **Self-targeting guard hardening.** Open question #8 in this doc — an LLM agent running *inside* an eval shouldn't be | CODE |
| MEDIUM⚡ | tests/tools/test_tools_bridge.py | 1079 | # but turns any other exception into an RPC error the scaffold reads as tool | COMMENT |
| MEDIUM | tests/tools/test_tools_bridge.py | 1310 | # the scaffold carries on regardless; the monitor tears the group down | COMMENT |
| MEDIUM | tests/tools/test_tools_bridge.py | 1478 | # each a sandbox exec; the scaffold sees the reply between them | COMMENT |
| MEDIUM | tests/tools/test_tools_bridge.py | 1513 | # the scaffold reads the reply and exits | COMMENT |
| MEDIUM | tests/tools/test_tools_bridge.py | 1848 | # the scaffold reads its reply and returns | COMMENT |
| MEDIUM | tests/checkpoint/test_checkpointer.py | 651 | # leading scaffolding before the first wrap — dropped by the slice | COMMENT |
| MEDIUM | tests/checkpoint/test_checkpointer.py | 671 | # seeded wrap and still open at fire time — trailing scaffolding | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_compaction_native.py | 49 | # the context window. Reasoning + compaction is tested separately in | COMMENT |
| MEDIUM | tests/agent/test_bridge_generation_config.py | 999 | # would leak the scaffold's value to the served model whenever the eval config | COMMENT |
| MEDIUM | tests/agent/test_bridge_provider_errors.py | 1183 | # the scaffold, waiting on its model requests | COMMENT |
| MEDIUM⚡ | tests/agent/test_bridge_track_state.py | 1387 | # the scaffold restarts: title call fires first again | COMMENT |
| MEDIUM | tests/agent/test_bridge_track_state.py | 259 | # main loop, then scaffold compaction: the compacted loop is promoted, so | COMMENT |
| MEDIUM | tests/agent/test_bridge_track_state.py | 390 | # the scaffold re-creates every message: different ids and metadata, and | COMMENT |
| MEDIUM | tests/agent/test_bridge_track_state.py | 427 | # scaffold runs the task under its own (different) system prompt | COMMENT |
| MEDIUM | tests/agent/test_bridge_track_state.py | 604 | # title call fires first; the scaffold's store holds the condensed turn | COMMENT |
| MEDIUM | tests/agent/test_bridge_track_state.py | 1461 | # main loop: turn 2 (scaffold round-trips through its own store) | COMMENT |
| MEDIUM | tests/agent/test_bridge_refusals.py | 271 | # the scaffold carries on regardless; the monitor tears the group down | COMMENT |
| MEDIUM | tests/agent/test_agent_bridge_response_filter.py | 729 | # the filter's replacement is what the scaffold gets back | COMMENT |
| MEDIUM | tests/agent/test_agent_bridge_response_filter.py | 1221 | # the scaffold finished first: the ordering the race needs | COMMENT |
| MEDIUM | tests/agent/test_agent_bridge.py | 1108 | # backend; the scaffold's second call replays the searched assistant turn | STRING |
| MEDIUM | tests/agent/test_agent_bridge.py | 1119 | # both scaffold calls completed (the second replays the first turn) | STRING |
| MEDIUM⚡ | tests/agent/test_bridge_approval.py | 913 | # the scaffold re-issues the approved call with the keys in a different order | COMMENT |
| MEDIUM⚡ | tests/agent/test_bridge_approval.py | 3180 | # the rejected call never reached the scaffold | COMMENT |
| MEDIUM⚡ | tests/agent/test_bridge_approval.py | 3314 | # should behave identically whichever API the scaffold speaks. These drive each | COMMENT |
| MEDIUM⚡ | tests/agent/test_bridge_approval.py | 3315 | # dialect impl the way a scaffold's request arrives. | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 435 | # the scaffold gets the approved arguments... | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 503 | # the model is told and generates again; the scaffold sees only the replacement | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 2455 | # a second call for the same proposal (e.g. a scaffold retrying after a | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 2759 | # and so does the response handed to the scaffold | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 3139 | # what the scaffold would go on to execute | COMMENT |
| MEDIUM | tests/agent/test_bridge_approval.py | 5014 | # what the scaffold gets ("result", "error" or "cancelled"), the recorded | COMMENT |
| MEDIUM | tests/agent/test_bridge_agent_context.py | 300 | # the raw scaffold slug survives even though the model resolved elsewhere | COMMENT |
| MEDIUM | tests/agent/test_bridge_agent_context.py | 331 | # no "model" key -- scaffold never requested a slug | COMMENT |
| MEDIUM⚡ | tests/agent/test_acp/test_operator_provenance.py | 55 | # note_operator_message — the scaffold's signal | COMMENT |
| MEDIUM⚡ | tests/agent/test_acp/test_router_bridge_tools.py | 637 | # Host tools a sandbox bridge runs for the scaffold (``bridged_tools``) | COMMENT |
| MEDIUM | tests/agent/test_acp/test_router_bridge_tools.py | 166 | # the scaffold-provided view renders richly (not args-only) | COMMENT |
| MEDIUM⚡ | tests/agent/test_acp/test_tui/test_widgets.py | 995 | # Used-only — context window denominator dropped. | COMMENT |
| MEDIUM | tests/scorer/test_math.py | 289 | # An integer answer on the final line of a reasoning trace is extracted. | COMMENT |
| MEDIUM | tests/sentinel/test_sentinel_replay.py | 990 | # the scaffold declares the tool under its own name, with the | COMMENT |
| MEDIUM | tests/sentinel/test_sentinel_dispatch.py | 3968 | # what the model is sent is not the scaffold's list | COMMENT |
| MEDIUM | tests/sentinel/test_sentinel_dispatch.py | 4143 | # scaffold rebuilt them | COMMENT |
| MEDIUM | tests/sentinel/test_sentinel_dispatch.py | 5153 | # documented: the hidden instructions stay out only when the scaffold that | COMMENT |
| MEDIUM | tests/sentinel/test_sentinel_dispatch.py | 6806 | # as a scaffold that saves context does: a tool result the model has | COMMENT |
| MEDIUM | tests/model/test_compaction.py | 1417 | # small context window so a modest tool output overflows it | COMMENT |
| MEDIUM | tests/model/test_model_length.py | 24 | # model context window sizes | COMMENT |
| MEDIUM | tests/model/test_model_length.py | 49 | # cloudflare serves this model with a reduced context window | COMMENT |
| MEDIUM | tests/model/test_model_length.py | 61 | # context window for model | COMMENT |
| MEDIUM | tests/model/test_model_length.py | 65 | # create message that exceeds context window | COMMENT |
| MEDIUM | tests/model/providers/test_anthropic.py | 527 | # scaffold for should_retry | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_vllm.py | 34 | # this allows us to run base models with the chat message scaffolding: | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_openai_model_names.py | 89 | # input_tokens_name() aliases to the current frontier so the context window | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_grok_model_names.py | 84 | # input_tokens_name() aliases to the current frontier so the context window | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_grok_model_names.py | 98 | # frontier would overstate its context window | COMMENT |
| MEDIUM | tests/model/providers/test_anthropic_fallback.py | 587 | # scaffold echoes the assistant turn as dicts (incl. the fallback block) | COMMENT |
| MEDIUM | tests/model/providers/test_hf.py | 36 | # this allows us to run base models with the chat message scaffolding: | COMMENT |
| MEDIUM | tests/model/providers/test_hf.py | 55 | # this allows us to run base models with the chat message scaffolding: | COMMENT |
| 77 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/tools/test_call_tools.py | 0 | order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses) | STRING |
| HIGH | tests/tools/test_tools_bridge.py | 0 | order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses) | STRING |
| HIGH | tests/tools/test_mcp_tools.py | 0 | order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses) | STRING |
| HIGH | tests/sentinel/test_sentinel_dispatch.py | 0 | order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses) | STRING |
| HIGH | tests/model/test_tool_exec_shared.py | 0 | order-sensitive group cases repeat with fresh exceptions: a group's leaves were once ordered by a set (object addresses) | STRING |
| HIGH | tests/tools/test_tools_bridge.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/sentinel/test_sentinel_replay.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/sentinel/test_sentinel_config.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/sentinel/test_sentinel_optional.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/sentinel/test_sentinel_human.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/sentinel/test_sentinel_dispatch.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/model/providers/test_deepseek.py | 0 | add two numbers. args: x: first number to add. y: second number to add. | STRING |
| HIGH | tests/tools/test_tools.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/agent/test_react_review.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/agent/test_agent_react.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/solver/test_basic_agent.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/review/test_review.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/model/test_reasoning_claude.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/test_helpers/tools.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/approval/test_approval.py | 0 | add two numbers. args: x (int): first number to add. y (int): second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/agent/test_acp/test_server_forwarding.py | 0 | short /tmp data dir so af_unix paths fit in 104 chars on macos. | STRING |
| HIGH | tests/agent/test_acp/test_action_methods.py | 0 | short /tmp data dir so af_unix paths fit in 104 chars on macos. | STRING |
| HIGH | tests/agent/test_acp/test_elicitation_e2e.py | 0 | short /tmp data dir so af_unix paths fit in 104 chars on macos. | STRING |
| HIGH | tests/agent/test_acp/test_stdio_bridge.py | 0 | short /tmp data dir so af_unix paths fit in 104 chars on macos. | STRING |
| HIGH | tests/agent/test_acp/test_approval.py | 0 | short /tmp data dir so af_unix paths fit in 104 chars on macos. | STRING |
| HIGH | tests/_cli/test_token_limit_flag.py | 0 | run the test command and eval its echoed repr back to a python value. | STRING |
| HIGH | tests/_cli/test_ctl_server_flag.py | 0 | run the test command and eval its echoed repr back to a python value. | STRING |
| HIGH | tests/_cli/test_acp_server_flag.py | 0 | run the test command and eval its echoed repr back to a python value. | STRING |
| HIGH | tests/model/test_reasoning_google.py | 0 | add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | docs/_tools-basics.md | 0 | add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | examples/tool_use.py | 0 | add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/model/providers/test_google.py | 0 | add two numbers. args: x: the first number to add. y: the second number to add. returns: the sum of the two numbers. | STRING |
| HIGH | tests/model/providers/test_anthropic.py | 0 | completes each batch at once, answering each request with its id. | STRING |
| HIGH | tests/model/providers/test_openai_compatible.py | 0 | completes each batch at once, answering each request with its id. | STRING |
| HIGH | tests/model/providers/util/test_batch.py | 0 | completes each batch at once, answering each request with its id. | STRING |
| HIGH | tests/model/providers/test_mistral.py | 0 | unset stream is "auto": stream iff the caller passed on_stream. | STRING |
| HIGH | tests/model/providers/test_azureai.py | 0 | unset stream is "auto": stream iff the caller passed on_stream. | STRING |
| HIGH | tests/model/providers/test_bedrock_streaming.py | 0 | unset stream is "auto": stream iff the caller passed on_stream. | STRING |
| HIGH | tests/model/providers/test_groq.py | 0 | unset stream is "auto": stream iff the caller passed on_stream. | STRING |
| HIGH | tests/model/providers/test_openai_compatible.py | 0 | unset stream is "auto": stream iff the caller passed on_stream. | STRING |
| HIGH | tests/model/providers/test_mistral.py | 0 | the stream accumulator reconstructs the completion and reports deltas. | STRING |
| HIGH | tests/model/providers/test_azureai.py | 0 | the stream accumulator reconstructs the completion and reports deltas. | STRING |
| HIGH | tests/model/providers/test_groq.py | 0 | the stream accumulator reconstructs the completion and reports deltas. | STRING |
| HIGH | tests/model/providers/test_mistral.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_azureai.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_grok.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_bedrock_streaming.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_groq.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_sagemaker.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | tests/model/providers/test_openai_responses.py | 0 | without an on_stream consumer only heartbeat/usage progress runs. explicit streaming=true callers stream without asking | STRING |
| HIGH | …andbox_tools/_remote_tools/_bash_session/tool_types.py | 0 | user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serve | STRING |
| HIGH | …sandbox_tools/_remote_tools/_exec_remote/tool_types.py | 0 | user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serve | STRING |
| HIGH | …inspect_sandbox_tools/_remote_tools/_mcp/tool_types.py | 0 | user to run as: a username, or the sandbox default user's identity as captured by the host. switching requires the serve | STRING |
| HIGH | src/inspect_ai/util/_store_model.py | 0 | pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: opti | STRING |
| HIGH | src/inspect_ai/solver/_task_state.py | 0 | pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: opti | STRING |
| HIGH | src/inspect_ai/log/_log.py | 0 | pydantic model interface to the store. args: model_cls: pydantic model type (must derive from storemodel) instance: opti | STRING |
| HIGH | src/inspect_ai/model/_model.py | 0 | canonical model name for model info database lookup. | STRING |
| HIGH | src/inspect_ai/model/_providers/mistral.py | 0 | canonical model name for model info database lookup. | STRING |
| HIGH | src/inspect_ai/model/_providers/grok.py | 0 | canonical model name for model info database lookup. | STRING |
| HIGH | src/inspect_ai/model/_providers/google.py | 0 | canonical model name for model info database lookup. | STRING |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_eval_set.py | 3435 | # Create a log with the exact task identity eval_set expects, then | COMMENT |
| MEDIUM | tests/test_model_env_mismatch.py | 85 | # Create a minimal task with proper solver and scorer | COMMENT |
| MEDIUM⚡ | tests/tools/test_web_search_tavily.py | 55 | # Create a client with our mock transport | COMMENT |
| MEDIUM | tests/analysis/test_large_string.py | 11 | # Create a DataFrame with a small PyArrow string column | COMMENT |
| MEDIUM | tests/analysis/test_large_string.py | 32 | # Create a DataFrame with a large PyArrow string column | COMMENT |
| MEDIUM | tests/analysis/test_large_string.py | 55 | # Create a DataFrame with both small and large columns (same length) | COMMENT |
| MEDIUM⚡ | tests/util/test_store_nested_types.py | 89 | # Create a store with dict data | COMMENT |
| MEDIUM⚡ | tests/util/test_anyio.py | 80 | # Create a circular reference: exc1.__context__ -> exc2 -> exc1 | COMMENT |
| MEDIUM | tests/util/test_anyio.py | 99 | # Create a circular reference in exception groups | COMMENT |
| MEDIUM | tests/util/sandbox/test_docker_compatibility.py | 599 | # Create a task with compose.yaml config (use None for dataset to get a dummy sample) | COMMENT |
| MEDIUM | tests/util/sandbox/sandbox_setup_symlink.sh | 12 | # Create a nested directory and symlink via “..” | COMMENT |
| MEDIUM | tests/util/sandbox/test_docker_compose_config.py | 793 | # Create a ComposeService with x-default extension | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_react.py | 721 | # Create a tool call for submit | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_react.py | 728 | # Create a tool call for a regular tool | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_react.py | 735 | # Create an assistant message with both reasoning content and tool calls | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_react.py | 744 | # Create an assistant message without reasoning content but with submit tool call | COMMENT |
| MEDIUM⚡ | tests/agent/test_agent_react.py | 750 | # Create an assistant message with only regular tool calls (should be unchanged) | COMMENT |
| MEDIUM | tests/agent/test_acp/test_action_methods.py | 973 | # Create the pending nested ToolEvent — same construction the | COMMENT |
| MEDIUM⚡ | tests/model/test_web_search_exclude_none.py | 84 | # Create a web search with ActionSearch that has sources=None (the bug condition) | COMMENT |
| MEDIUM | tests/model/test_compaction_summary.py | 100 | # Create a previous summary message | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 72 | # Create a longer conversation | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 140 | # Create a scenario with a tool response without a corresponding assistant message | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 241 | # Create a longer conversation | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 305 | # Create a longer conversation with tool calls | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 349 | # Create a conversation with alternating user-assistant pairs | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 432 | # Create an assistant message with 3 tool calls, but only 1 tool result | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 465 | # Create an assistant message with tool calls, but no tool results at all | COMMENT |
| MEDIUM | tests/model/test_trim_messages.py | 492 | # Create a conversation where trimming will create orphan tool_calls | COMMENT |
| MEDIUM | tests/model/test_token_counting.py | 120 | # Create a conversation with an assistant message containing multiple tool calls | COMMENT |
| MEDIUM | tests/model/test_prompt_logprobs.py | 464 | # Create a minimal instance without calling __init__ | COMMENT |
| MEDIUM | tests/model/providers/test_anthropic.py | 701 | # Create an assistant message with a single tool call (no tool result) | COMMENT |
| MEDIUM | tests/model/providers/test_anthropic.py | 723 | # Create an assistant message with multiple tool calls (no tool results) | COMMENT |
| MEDIUM | tests/model/providers/test_anthropic.py | 755 | # Create a tool result message without a preceding assistant message | COMMENT |
| MEDIUM | tests/model/providers/test_mistral.py | 113 | # Create a simple prompt | COMMENT |
| MEDIUM | tests/model/providers/test_transformer_lens.py | 18 | # Create a small HookedTransformer model for testing | COMMENT |
| MEDIUM | tests/model/providers/test_transformer_lens.py | 34 | # Create the model using Inspect | COMMENT |
| MEDIUM | tests/model/providers/test_transformer_lens.py | 143 | # Create a small HookedTransformer model for testing | COMMENT |
| MEDIUM | tests/model/providers/test_transformer_lens.py | 159 | # Create a simple task for testing | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_google.py | 817 | # Create a mock client | COMMENT |
| MEDIUM⚡ | tests/model/providers/test_google.py | 820 | # Create a message with reasoning + text + tool call | COMMENT |
| MEDIUM | tests/model/providers/test_google.py | 2991 | # Create an assistant message with a single tool call (no tool result) | COMMENT |
| MEDIUM | tests/model/providers/test_google.py | 3016 | # Create an assistant message with multiple tool calls (no tool results) | COMMENT |
| MEDIUM | tests/model/providers/test_google.py | 3051 | # Create a tool result message without a preceding assistant message | COMMENT |
| MEDIUM | tests/model/providers/test_openai_responses.py | 733 | # Create a mock CompactedResponse with a ResponseCompactionItem | COMMENT |
| MEDIUM | tests/model/providers/test_openai_responses.py | 786 | # Create a CompactedResponse without a ResponseCompactionItem | COMMENT |
| MEDIUM | tests/model/providers/test_openai_responses.py | 953 | # Create a CompactedResponse with compaction item followed by an output message | COMMENT |
| MEDIUM | tests/model/providers/test_openai_responses.py | 1025 | # Create a compact response matching real API output: | COMMENT |
| MEDIUM | tests/model/providers/test_openai_responses.py | 1211 | # Create a message with phase stored in ContentText.internal | COMMENT |
| MEDIUM | tests/model/providers/util/test_batch_intake.py | 208 | # Create a request that's too large for the available size | COMMENT |
| MEDIUM | tests/model/providers/util/test_batch.py | 674 | # Create a batcher with a low max_consecutive_check_failures value | COMMENT |
| MEDIUM | tests/model/providers/util/test_batch.py | 745 | # Create a batcher that will fail initially then succeed | COMMENT |
| MEDIUM | tests/model/providers/util/test_batch.py | 804 | # Create a request that's close to but under the limit | COMMENT |
| MEDIUM⚡ | tests/log/test_log_file_info_fallback.py | 204 | # Create a native-named eval (timestamp prefix -> fast path) | COMMENT |
| MEDIUM⚡ | tests/log/test_log_file_info_fallback.py | 211 | # Create a custom-named eval (no timestamp -> header fallback) | COMMENT |
| MEDIUM⚡ | tests/log/test_log_attachments.py | 463 | # # Create a long text that should be condensed (> 100 chars) | COMMENT |
| MEDIUM⚡ | tests/log/test_log_attachments.py | 467 | # # Create a model event with long content | COMMENT |
| MEDIUM | tests/log/test_log_attachments.py | 539 | # # Create the same long text that will appear in multiple events | COMMENT |
| MEDIUM | tests/log/test_log_attachments.py | 620 | # Create an event with long content | COMMENT |
| MEDIUM | tests/log/test_recover_e2e.py | 295 | # Create an empty buffer DB so recovery can proceed | COMMENT |
| MEDIUM | tests/log/test_recover_e2e.py | 414 | # Create a crashed log | COMMENT |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 461 | # The watchdog writes two dumps to the same per-process file: faulthandler's | COMMENT |
| LOW | tests/test_eval_set_selection.py | 1341 | # why adding a field bumps the version here. v1 documents remain readable: | COMMENT |
| LOW | tests/tools/test_tools_bridge.py | 1061 | ) | COMMENT |
| LOW | tests/tools/test_sandbox_docker_and_local.py | 121 | COMMENT | |
| LOW | tests/checkpoint/resume_kill_harness.py | 101 | COMMENT | |
| LOW | tests/checkpoint/resume_kill_harness.py | 221 | return "crashed" | COMMENT |
| LOW | tests/util/test_text.py | 21 | # Stripping it to face value would make match(numeric=True) | COMMENT |
| LOW | tests/agent/test_acp/test_session.py | 221 | COMMENT | |
| LOW | tests/agent/test_acp/test_router.py | 1881 | tg.start_soon(lambda: agent(_state())) | COMMENT |
| LOW | tests/agent/test_acp/test_standard_acp_client.py | 241 | k.startswith("inspect.") or k.startswith("inspect/") | COMMENT |
| LOW | tests/agent/test_acp/test_approval.py | 561 | shim_task.cancel() | COMMENT |
| LOW | tests/agent/test_acp/test_tui/test_client.py | 61 | active.agent_name = agent_name | COMMENT |
| LOW | tests/model/test_reasoning_claude.py | 21 | @skip_if_no_anthropic | COMMENT |
| LOW | tests/model/test_adaptive_connections.py | 961 | # Controller's adaptive bound max should be 50 — the int shorthand. | COMMENT |
| LOW | tests/view/test_openapi_schema_generation.py | 241 | def test_default_pydantic_makes_defaulted_fields_not_required() -> None: | COMMENT |
| LOW | tests/log/test_log_attachments.py | 461 | # transcript = Transcript() | COMMENT |
| LOW | tests/log/test_log_attachments.py | 481 | # stored_event = transcript.events[0] | COMMENT |
| LOW | tests/log/test_log_attachments.py | 501 | # input=[initial_message], | COMMENT |
| LOW | tests/log/test_log_attachments.py | 521 | # # Verify the output was condensed | COMMENT |
| LOW | tests/log/test_log_attachments.py | 541 | # message1 = ChatMessageUser(content=repeated_text) | COMMENT |
| LOW | tests/log/test_log_attachments.py | 561 | # ) | COMMENT |
| LOW | tests/log/test_task_log.py | 1881 | # (EvalState.live). A seeded prior record must not appear there while its | COMMENT |
| LOW | docs/evals/model_cards.yml | 1 | # Benchmarks referenced in recent model cards/announcements. | COMMENT |
| LOW | examples/computer/compose.yaml | 1 | services: | COMMENT |
| LOW | scripts/release-sandbox-tools.sh | 181 | COMMENT | |
| LOW | .github/workflows/release.yml | 1 | name: Release | COMMENT |
| LOW | .github/workflows/suppressions-comment.yml | 1 | # Posts the sticky suppression-ledger delta comment on PRs, fork PRs | COMMENT |
| LOW | .github/workflows/suppressions-comment.yml | 21 | # touching the worktree or index, then `git show` reads only its | COMMENT |
| LOW | .github/workflows/release-pr-checks.yml | 1 | name: Release PR checks | COMMENT |
| LOW | .github/workflows/build.yml | 201 | # inspect_ai source that reference docs are generated from (griffe). | COMMENT |
| LOW | .github/workflows/build.yml | 261 | steps: | COMMENT |
| LOW | .github/workflows/build.yml | 321 | # re-checks the lock. | COMMENT |
| LOW | .github/workflows/build.yml | 701 | # The published bytes must come from a sandbox-tools-build.yml run on | COMMENT |
| LOW | .github/scripts/check_suppressions.py | 41 | COMMENT | |
| LOW | src/inspect_sandbox_tools/tests/requirements.txt | 181 | # via inspect-sandbox-tools (../pyproject.toml) | COMMENT |
| LOW | src/inspect_sandbox_tools/tests/requirements.txt | 761 | # anthropic | COMMENT |
| LOW | src/inspect_sandbox_tools/tests/requirements.txt | 2061 | # via | COMMENT |
| LOW | src/inspect_sandbox_tools/tests/requirements.txt | 2081 | # mcp-types | COMMENT |
| LOW | …t_sandbox_tools/_remote_tools/_exec_remote/__init__.py | 1 | # TODO: Consider renaming _remote_tools directory to _remote_services or _json_rpc_services | COMMENT |
| LOW | …sandbox_tools/src/inspect_sandbox_tools/_cli/server.py | 41 | # | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 201 | # Keep-alive intent | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 801 | active_since: float | None = None, | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1041 | # naturally (scored on their own terms, no interrupts), then | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1201 | if result.get("ok") is False: | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1321 | # the ambiguity rejection carries the pending calls | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1381 | # after a `/`); `key`/`key_limit` retune a named concurrency() registry | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1621 | # Pause / resume the whole run (the eval-set spelling — one | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1641 | # retries/min, backoff ratio, and active retry waits per model, plus | COMMENT |
| LOW | src/inspect_ai/_control/server.py | 1801 | exc_info=True, | COMMENT |
| LOW | src/inspect_ai/_control/limits.py | 361 | COMMENT | |
| LOW | src/inspect_ai/_control/cancel.py | 341 | pending = state.task_cancel.cancel_type | COMMENT |
| LOW | src/inspect_ai/_control/cancel.py | 401 | if stamp == "abort": | COMMENT |
| LOW | src/inspect_ai/_control/scoring.py | 81 | # gate (and then quiesce) before reporting it un-scored. A constant to start | COMMENT |
| LOW | src/inspect_ai/_control/__init__.py | 1 | """Control channel — HTTP server embedded in each running eval process. | COMMENT |
| LOW | src/inspect_ai/_control/__init__.py | 21 | # non-GET route with a 400 (`_control/strict.py`), atomically — so a | COMMENT |
| LOW | src/inspect_ai/_control/__init__.py | 41 | # must not 400 their retune on an older strict server, so the CLI includes | COMMENT |
| LOW | src/inspect_ai/_control/__init__.py | 61 | # server advertises >= 5 (an explicit --author/--reason against an | COMMENT |
| LOW | src/inspect_ai/_control/__init__.py | 81 | # `ctl config`), joining the version-4 retry knobs. No CLI gate — the | COMMENT |
| LOW | src/inspect_ai/_control/pause.py | 201 | # GET /tasks reports). One gate holds every dispatch point of that model's | COMMENT |
| LOW | src/inspect_ai/_control/pause.py | 221 | # like the keep-alive intent. | COMMENT |
| 224 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/_control/test_log_dir.py | 3463 | def _set_note(header: Any, note: int) -> None: | CODE |
| LOW | tests/_control/test_log_dir.py | 3644 | def _set_metadata(header: Any) -> None: | CODE |
| LOW | tests/_control/test_log_dir.py | 3648 | def _set_first_input(summaries: Any) -> None: | CODE |
| LOW⚡ | tests/input/test_input_panel.py | 129 | def _set_input_value(input_widget: Input, value: str) -> None: | CODE |
| LOW | tests/input/test_input_panel.py | 53 | def set_title(self, title: str) -> None: | CODE |
| LOW⚡ | tests/agent/test_acp/test_tui/test_elicitation_card.py | 68 | def _set_input(input_widget: Input, value: str) -> None: | CODE |
| LOW | tests/test_package/inspect_package/__init__.py | 3 | __all__ = ["simple_score"] | CODE |
| LOW | …ridianlabs-ai/inspect-docs/filters/reference/filter.py | 230 | def set_default_title(elem: pf.Element, doc: pf.Doc) -> None: | CODE |
| LOW | examples/hooks/mlflow_tracking.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/hooks/trackio_tracking.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/hooks/mlflow_tracing.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | …sandbox_tools/tests/test_text_editor_validated_path.py | 193 | def _set_history_path(monkeypatch: pytest.MonkeyPatch, history_path: Path) -> None: | CODE |
| LOW | src/inspect_sandbox_tools/tests/conftest.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_sandbox_tools/tests/test_exec_remote.py | 90 | def _setup_and_teardown(sandbox_server_cleanup: None) -> None: | CODE |
| LOW | …ct_sandbox_tools/src/inspect_sandbox_tools/__init__.py | 12 | __all__ = ["__version__"] | CODE |
| LOW | …ox_tools/_in_process_tools/_text_editor/text_editor.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …box_tools/src/inspect_sandbox_tools/_util/constants.py | 11 | __all__ = [ | CODE |
| LOW | …x_tools/src/inspect_sandbox_tools/_util/user_switch.py | 54 | def set_oom_score_adj() -> None: | CODE |
| LOW | src/inspect_ai/__init__.py | 32 | __all__ = [ | CODE |
| LOW | src/inspect_ai/_control/eval_state.py | 742 | def set_sample_requeue(eval_id: str, handle: "SampleRequeue | None") -> None: | CODE |
| LOW | src/inspect_ai/_control/eval_state.py | 755 | def set_task_scoring(eval_id: str, handle: "TaskScoring | None") -> None: | CODE |
| LOW | src/inspect_ai/_control/max_tasks.py | 58 | def set_max_tasks_override(value: int | None) -> None: | CODE |
| LOW | src/inspect_ai/_util/zipfile.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/zipfile.py | 199 | __all__ = ["zipfile_compress_kwargs"] | CODE |
| LOW | src/inspect_ai/_util/log_context.py | 8 | def set_run_shape(task_names: Iterable[str], max_epochs: int) -> None: | CODE |
| LOW | src/inspect_ai/_util/error.py | 116 | def set_exception_hook() -> None: | CODE |
| LOW | src/inspect_ai/_util/transcript.py | 66 | def set_transcript_markdown_options(markdown: Markdown) -> None: | CODE |
| LOW | src/inspect_ai/_util/registry.py | 98 | def set_annotations(wrapper: Callable[..., Any], annotations: dict[str, Any]) -> None: | CODE |
| LOW | src/inspect_ai/_util/registry.py | 129 | def set_return_annotation(wrapper: Callable[..., Any], return_type: type[Any]) -> None: | CODE |
| LOW | src/inspect_ai/_util/httpx.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/background.py | 50 | def set_background_task_group(tg: TaskGroup | None) -> None: | CODE |
| LOW | src/inspect_ai/_util/local_server.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/file.py | 752 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/event_loop_monitor.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/asyncfiles.py | 58 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/inspect_ai/_util/future.py | 14 | def set_result(self, result: T) -> None: | CODE |
| LOW | src/inspect_ai/_util/future.py | 18 | def set_exception(self, ex: Exception) -> None: | CODE |
| LOW | src/inspect_ai/_util/future.py | 32 | def set_future_result(future: "Future[T]", result: T) -> None: | CODE |
| LOW | src/inspect_ai/_util/future.py | 36 | def set_future_exception(future: "Future[T]", error: Exception) -> None: | CODE |
| LOW | src/inspect_ai/_util/textual/__init__.py | 3 | __all__ = ["ElicitationForm"] | CODE |
| LOW | src/inspect_ai/_display/__init__.py | 14 | __all__ = [ | CODE |
| LOW | src/inspect_ai/_display/core/results.py | 38 | def set_retry_args_suffix(suffix: str) -> None: | CODE |
| LOW | src/inspect_ai/_display/core/display.py | 170 | def update_metrics(self, scores: list[TaskDisplayMetric]) -> None: ... | CODE |
| LOW | src/inspect_ai/_display/core/display.py | 198 | def update_task_count(self, n: int) -> None: | CODE |
| LOW | src/inspect_ai/_display/core/progress.py | 70 | def update_count(self, complete: int, total: int) -> None: | CODE |
| LOW | src/inspect_ai/_display/core/progress.py | 77 | def update_score(self, score: str) -> None: | CODE |
| LOW | src/inspect_ai/_display/core/panel.py | 23 | def set_eval_set_id_display(value: str | None) -> None: | CODE |
| LOW | src/inspect_ai/_display/plain/display.py | 74 | def update_task_count(self, n: int) -> None: | CODE |
| LOW | src/inspect_ai/_display/plain/display.py | 221 | def update_metrics(self, metrics: list[TaskDisplayMetric]) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/display.py | 85 | def update_task_count(self, n: int) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 59 | def set_flow_content(content: RenderableType) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 244 | def update_task_count(self, n: int) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 300 | def update_display(self) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 315 | def update_scan(self) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 340 | def update_title(self) -> None: | CODE |
| LOW⚡ | src/inspect_ai/_display/textual/app.py | 365 | def update_tasks(self) -> None: | CODE |
| LOW⚡ | src/inspect_ai/_display/textual/app.py | 374 | def update_samples(self) -> None: | CODE |
| LOW⚡ | src/inspect_ai/_display/textual/app.py | 381 | def update_footer(self) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 394 | def set_unread(unread: int | None) -> None: | CODE |
| LOW | src/inspect_ai/_display/textual/app.py | 408 | async def set_active_tab(active: str) -> None: | CODE |
| 168 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_sample_source.py | 322 | # once epoch 4 completed, every time under its own id (an RL harness | COMMENT |
| MEDIUM⚡ | tests/checkpoint/test_current_checkpointer_post_exit.py | 224 | # harness faithfully reproduces the normal span/checkpoint pairing — and that | COMMENT |
| MEDIUM | tests/checkpoint/resume_kill_harness.py | 253 | # this harness drives — so stamp a fixed amount, giving the budget-carry | COMMENT |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 234 | "content": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tack | CODE |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 257 | "content": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tack | CODE |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 1545 | "result": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tackl | CODE |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 1577 | "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.json | 2102 | "result": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news/tackl | CODE |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 2134 | "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.json | 2732 | "replaced": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov.uk/government/news | CODE |
| MEDIUM | …lysis/test_logs/2025-05-12T20-27-36-04-00_browser.json | 3577 | "cb6d9b3382c23a2729d389c44be2fb26": "[793] link \"We are now the AI Security Institute\" [url: https://www.gov. | CODE |
| MEDIUM | tests/agent/deepagent/test_deepagent_background.py | 984 | # deterministically without a scheduling barrier the harness lacks.) | COMMENT |
| MEDIUM | tests/agent/test_acp/test_deepagent_integration.py | 479 | # ACP harness. The cancel pathway itself is tested in | COMMENT |
| MEDIUM | tests/agent/test_acp/test_server_dispatch.py | 102 | # mirrors what the eval harness produces from the default | COMMENT |
| MEDIUM | tests/agent/test_acp/test_action_methods.py | 957 | # Set up the cancel-propagation harness in a real task group. | COMMENT |
| MEDIUM | tests/agent/test_acp/test_approval.py | 1204 | # Scan all blocks for the view markdown — robust to layout | COMMENT |
| MEDIUM | tests/agent/test_acp/test_tui/test_cancel_card.py | 242 | # Don't call original_notify — the harness can't render toasts. | COMMENT |
| MEDIUM⚡ | tests/agent/test_acp/test_tui/test_widgets.py | 68 | # Single-widget harness | COMMENT |
| MEDIUM | tests/agent/test_acp/test_tui/test_widgets.py | 1179 | # comprehensive fingerprint should detect the change and the | COMMENT |
| MEDIUM | examples/skills/skills/system-info/scripts/sysinfo.sh | 3 | # Outputs comprehensive system details in a structured format | COMMENT |
| MEDIUM | .github/workflows/test.yml | 1 | # Test harness shell. GitHub only exposes workflow_dispatch for workflows that | COMMENT |
| MEDIUM | …x_tools/src/inspect_sandbox_tools/_util/user_switch.py | 39 | """The identity a child process must switch to in order to run as ``user``. | STRING |
| LOW | src/inspect_ai/_util/notebook.py | 53 | # notebook cells, if not just return an empty module | COMMENT |
| LOW | src/inspect_ai/analysis/_dataframe/record.py | 393 | # For now, I'll just return an empty dict | COMMENT |
| LOW | src/inspect_ai/util/_limit.py | 229 | # gone out of scope for the sample so we just return that snapshot | COMMENT |
| MEDIUM | src/inspect_ai/util/_checkpoint/checkpointer_impl.py | 581 | # checkpoint span. Skip on the harness-driven final fire — | COMMENT |
| MEDIUM | src/inspect_ai/util/_sandbox/service.py | 643 | # under an eval harness -- a sandbox-awareness leak that was | COMMENT |
| MEDIUM | src/inspect_ai/agent/_react.py | 228 | # to clean exit and the harness will run scoring next. State | COMMENT |
| MEDIUM | src/inspect_ai/agent/_react.py | 480 | # to clean exit and the harness will run scoring next. State | COMMENT |
| LOW | src/inspect_ai/agent/_acp/tui/session_screen.py | 184 | # …); duplicating them in the footer would just add noise. | COMMENT |
| MEDIUM | src/inspect_ai/agent/_acp/tui/widgets/cancel_card.py | 232 | # ``fails_on_error`` is True, but stay robust if a future | COMMENT |
| MEDIUM | src/inspect_ai/agent/_acp/tui/widgets/cancel_card.py | 267 | # but stay robust if a future refactor changes the | COMMENT |
| MEDIUM | src/inspect_ai/agent/_acp/tui/widgets/transcript.py | 158 | # Gate on fingerprint change — the comprehensive | COMMENT |
| LOW | src/inspect_ai/_view/common.py | 656 | # then just return that file | COMMENT |
| LOW | src/inspect_ai/model/_call_tools.py | 1369 | # if the function takes **kwargs: Any then just pass the tool arguments through | COMMENT |
| LOW | src/inspect_ai/model/_providers/openai.py | 354 | # side step that complexity and just use two different batchers. | COMMENT |
| LOW | src/inspect_ai/log/_recorders/buffer/database.py | 745 | # this will just return no events and no attachments until the | COMMENT |
| LOW | src/inspect_ai/log/_recorders/buffer/filestore.py | 469 | # we'll just return None | COMMENT |
| LOW | src/inspect_ai/_eval/loader.py | 703 | # if there is no solver file then just create from the registry by name | COMMENT |
| MEDIUM | src/inspect_ai/tool/_sandbox_tools_utils/sandbox.py | 627 | # TODO: once we get the github CI/CD actions robust, this should be fatal | COMMENT |
| LOW | src/inspect_ai/tool/_mcp/_local.py | 364 | # to the session, we can just return nit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_sample_limits.py | 924 | CODE | |
| LOW | tests/log/test_eval_log.py | 3461 | CODE | |
| LOW | tests/approval/test_approval.py | 838 | CODE | |
| LOW | …sandbox_tools/_remote_tools/_mcp/mcp_server_session.py | 143 | CODE | |
| LOW | src/inspect_ai/_control/server.py | 882 | CODE | |
| LOW | src/inspect_ai/_control/server.py | 1395 | CODE | |
| LOW | src/inspect_ai/_control/server.py | 1487 | CODE | |
| LOW | src/inspect_ai/_control/limits.py | 155 | CODE | |
| LOW | src/inspect_ai/_control/limits.py | 242 | CODE | |
| LOW | src/inspect_ai/_control/events.py | 141 | CODE | |
| LOW | src/inspect_ai/_control/events.py | 204 | CODE | |
| LOW | src/inspect_ai/_control/eval_state.py | 446 | CODE | |
| LOW | src/inspect_ai/_control/eval_state.py | 503 | CODE | |
| LOW | src/inspect_ai/_control/log_dir/samples.py | 114 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 82 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 96 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 109 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 167 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 182 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 197 | CODE | |
| LOW | src/inspect_ai/util/_subprocess.py | 211 | CODE | |
| LOW | src/inspect_ai/util/_subtask.py | 151 | CODE | |
| LOW | src/inspect_ai/util/_checkpoint/hydrate.py | 512 | CODE | |
| LOW | src/inspect_ai/util/_sandbox/local.py | 112 | CODE | |
| LOW | src/inspect_ai/util/_sandbox/docker/compose.py | 82 | CODE | |
| LOW | src/inspect_ai/util/_sandbox/docker/compose.py | 428 | CODE | |
| LOW | src/inspect_ai/util/_sandbox/docker/compose.py | 447 | CODE | |
| LOW | src/inspect_ai/util/_sandbox/docker/compose.py | 465 | CODE | |
| LOW | src/inspect_ai/dataset/_dataset.py | 32 | CODE | |
| LOW | src/inspect_ai/dataset/_sources/file.py | 14 | CODE | |
| LOW | src/inspect_ai/dataset/_sources/csv.py | 53 | CODE | |
| LOW | src/inspect_ai/dataset/_sources/json.py | 27 | CODE | |
| LOW | src/inspect_ai/dataset/_sources/hf.py | 123 | CODE | |
| LOW | src/inspect_ai/agent/_react.py | 57 | CODE | |
| LOW | src/inspect_ai/agent/_bridge/bridge.py | 360 | CODE | |
| LOW | src/inspect_ai/agent/_bridge/types.py | 72 | CODE | |
| LOW | src/inspect_ai/agent/_bridge/sandbox/bridge.py | 54 | CODE | |
| LOW | src/inspect_ai/agent/_bridge/sandbox/types.py | 53 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/agent_tool.py | 282 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/plan.py | 35 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/subagent.py | 56 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/research.py | 35 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/prompt.py | 234 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/deepagent.py | 50 | CODE | |
| LOW | src/inspect_ai/agent/_deepagent/general.py | 32 | CODE | |
| LOW | src/inspect_ai/solver/_basic_agent.py | 52 | CODE | |
| LOW | src/inspect_ai/solver/_task_state.py | 144 | CODE | |
| LOW | src/inspect_ai/scorer/_model.py | 35 | CODE | |
| LOW | src/inspect_ai/scorer/_model.py | 115 | CODE | |
| LOW | src/inspect_ai/_view/fastapi_server.py | 149 | CODE | |
| LOW | src/inspect_ai/_view/fastapi_server.py | 860 | CODE | |
| LOW | src/inspect_ai/_view/view.py | 24 | CODE | |
| LOW | src/inspect_ai/_cli/_scanner.py | 23 | CODE | |
| LOW | src/inspect_ai/_cli/_scanner.py | 91 | CODE | |
| LOW | src/inspect_ai/_cli/eval.py | 1952 | CODE | |
| LOW | src/inspect_ai/_cli/ctl/_fetch.py | 485 | CODE | |
| LOW | src/inspect_ai/_cli/ctl/_sample_read.py | 457 | CODE | |
| LOW | src/inspect_ai/_cli/ctl/_config.py | 421 | CODE | |
| LOW | src/inspect_ai/_cli/ctl/_config.py | 933 | CODE | |
| LOW | src/inspect_ai/model/_model.py | 2379 | CODE | |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/model/test_message_ids.py | 177 | # Output message should have an ID | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 117 | # Check if the model used server-side tools | COMMENT |
| LOW | tests/model/test_stable_message_ids.py | 157 | # Output message should have ID | COMMENT |
| LOW | tests/model/providers/util/test_batch.py | 101 | # Check if batch should fail | COMMENT |
| LOW | tests/model/providers/util/test_batch.py | 107 | # Check if batch is "complete" based on elapsed time | COMMENT |
| LOW | tests/log/test_eval_log.py | 206 | # Set timestamp to a timezone-aware datetime object because when serializing to | COMMENT |
| LOW | examples/structured.py | 170 | # Check if the output matches the expected RGB format | STRING |
| LOW | scripts/pypi-release.py | 814 | # Check if there are any other versions present | COMMENT |
| LOW | scripts/pypi-release.py | 874 | # Check if .pypirc exists or environment variables are set | COMMENT |
| LOW | scripts/pypi-release.py | 998 | # Check if we're ahead of remote | COMMENT |
| LOW | scripts/pypi-release.py | 1041 | # Check if we're in a git repository | COMMENT |
| LOW | scripts/pypi-release.py | 1091 | # Check if branch is up to date | COMMENT |
| LOW | scripts/pypi-release.py | 1102 | # Check if tag already exists | COMMENT |
| LOW | scripts/pypi-release.py | 1234 | # Check if correct version already exists | COMMENT |
| LOW | …ox_tools/_in_process_tools/_text_editor/text_editor.py | 107 | # Read the file content | COMMENT |
| LOW | …ox_tools/_in_process_tools/_text_editor/text_editor.py | 112 | # Check if old_str is unique in the file | COMMENT |
| LOW | …ox_tools/_in_process_tools/_text_editor/text_editor.py | 215 | # Check if path exists | COMMENT |
| LOW | …ox_tools/_in_process_tools/_text_editor/text_editor.py | 224 | # Check if the path points to a directory | COMMENT |
| LOW | …ols/src/inspect_sandbox_tools/_util/pseudo_terminal.py | 68 | # Close the file descriptors | COMMENT |
| LOW | …spect_sandbox_tools/_remote_tools/_exec_remote/_job.py | 154 | # Check if process has finished | COMMENT |
| LOW | src/inspect_ai/_util/generate_config_args.py | 129 | # Check if it's a file path | COMMENT |
| LOW | src/inspect_ai/_util/generate_config_args.py | 149 | # Check if it looks like a file path that doesn't exist | COMMENT |
| LOW | src/inspect_ai/_util/platform.py | 53 | # Check if running in VS Code Jupyter notebook or interactive window | COMMENT |
| LOW | src/inspect_ai/_util/platform.py | 61 | # Check if running in a VS Code terminal | COMMENT |
| LOW | src/inspect_ai/_util/local_server.py | 162 | os.kill(pid, 0) # Check if process exists | CODE |
| LOW | src/inspect_ai/_util/local_server.py | 254 | # Check if the process is still alive | COMMENT |
| LOW | src/inspect_ai/_util/file.py | 528 | # Check if it's already a URI | COMMENT |
| LOW | src/inspect_ai/_util/file.py | 656 | # Open the file using fsspec and retrieve the file's information | COMMENT |
| LOW | src/inspect_ai/analysis/_dataframe/samples/table.py | 223 | # Check if it's specifically the pyarrow offset overflow error | COMMENT |
| LOW | src/inspect_ai/analysis/_dataframe/samples/table.py | 661 | # Check if this is a PyArrow-backed column | COMMENT |
| LOW | src/inspect_ai/util/_json.py | 475 | # Check if it's already Optional/Union with None | COMMENT |
| LOW | src/inspect_ai/util/_sandbox/self_check.py | 506 | # Write the file byte-by-byte from ASCII-only octal escapes, then cat it, so | COMMENT |
| LOW | src/inspect_ai/_cli/score.py | 323 | # Print the results panel | COMMENT |
| LOW | src/inspect_ai/model/_openai_responses.py | 363 | # Check if this is a compaction marker message | COMMENT |
| LOW | src/inspect_ai/model/_openai_responses.py | 1444 | # Check if this is a valid OpenAI action (correct type + required fields) | COMMENT |
| LOW | src/inspect_ai/model/_openai_responses.py | 1618 | # Check if result was cleared during compaction | COMMENT |
| LOW | src/inspect_ai/model/_model_info.py | 166 | # Check if the second-to-last part is a known service prefix | COMMENT |
| LOW | src/inspect_ai/model/_model_info.py | 172 | # Check if this is a hosting provider that needs org detection | COMMENT |
| LOW | src/inspect_ai/model/_providers/mockllm.py | 51 | # Check if it's a callable function | COMMENT |
| LOW | src/inspect_ai/model/_providers/google.py | 2404 | # Check if this block has an associated thought_signature and | COMMENT |
| LOW | src/inspect_ai/model/_providers/anthropic.py | 1231 | # Check if model doesn't support compaction | COMMENT |
| LOW | src/inspect_ai/model/_providers/anthropic.py | 5712 | # Check if result was cleared during compaction | COMMENT |
| LOW | src/inspect_ai/model/_providers/anthropic.py | 5929 | # Check if previous message has corresponding tool_use blocks | COMMENT |
| LOW | src/inspect_ai/model/_providers/anthropic.py | 5973 | # Check if next message has corresponding tool_result blocks | COMMENT |
| LOW | src/inspect_ai/model/_providers/sglang.py | 181 | # Check if process is still alive | COMMENT |
| LOW | src/inspect_ai/log/_bundle.py | 241 | # Open the file for writing to save the updated content | STRING |
| LOW | src/inspect_ai/event/_timeline_repr.py | 202 | # Check if span overlaps with any span in the current cluster | COMMENT |
| LOW | …spect_ai/tool/_sandbox_tools_utils/validate_distros.py | 122 | # Check if it's for a supported architecture | COMMENT |
| LOW | src/inspect_ai/tool/_sandbox_tools_utils/sandbox.py | 864 | # Check if we're in a git repo | COMMENT |
| LOW | src/inspect_ai/tool/_tools/_memory.py | 305 | # Read file | COMMENT |
| LOW | src/inspect_ai/tool/_tools/_memory.py | 373 | # Read file content | COMMENT |
| LOW | src/inspect_ai/tool/_tools/_memory.py | 378 | # Check if old_str is unique | COMMENT |
| LOW | …_tools/_computer/_resources/entrypoint/xvfb_startup.sh | 30 | # Check if Xvfb is already running | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/_view/test_view_server.py | 1459 | buffer = inspect_ai.log._recorders.buffer.filestore.SampleBufferFilestore( | CODE |
| CRITICAL | tests/_view/test_view_server.py | 1814 | inspect_ai.log._recorders.buffer.filestore.SampleManifest( | CODE |
| CRITICAL | tests/_view/test_view_server.py | 1825 | inspect_ai.log._recorders.buffer.filestore.Segment( | CODE |
| CRITICAL | tests/_view/test_view_server.py | 1832 | manifest = inspect_ai.log._recorders.buffer.filestore.Manifest( | CODE |
| CRITICAL | tests/model/test_should_retry_classification.py | 797 | from azure.core.exceptions import HttpResponseError | CODE |
| CRITICAL | tests/model/test_should_retry_classification.py | 812 | from azure.core.exceptions import HttpResponseError | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | design/recover.md | 434 | ### Step 1: Read crashed .eval files (done: `162628a3f`) | COMMENT |
| LOW⚡ | design/recover.md | 444 | ### Step 2: Read recovery data from sample buffer database (done: `664a9a43b`) | COMMENT |
| LOW⚡ | design/recover.md | 454 | ### Step 3: Reconstruct EvalSample from buffer DB data (done: `a05ce7fda`) | COMMENT |
| LOW | design/recover.md | 468 | ### Step 4: Write recovered .eval file (done: `493de0a1d`) | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 101 | # Step 1: Initial request with server-side tools | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 129 | # Step 2: Follow-up to build more history | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 143 | # Step 3: Another follow-up | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 158 | # Step 4: Compact history - clear older tool results | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 181 | # Step 5: Final request with compacted history - THIS SHOULD NOT CAUSE 400 ERROR | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 90 | # Step 2: Execute tool calls if present | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 95 | # Step 3: Ask follow-up question | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 112 | # Step 4: Add thank you message | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 115 | # Step 5: Compact history - remove ALL thinking blocks | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 145 | # Step 6: Call model with compacted history | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 152 | # Step 7: This should NOT raise an error | COMMENT |
| LOW | tests/model/test_compaction_edit_thinking.py | 61 | # Step 1: System prompt that STRONGLY requires tool use + user prompt | COMMENT |
| LOW | tests/model/test_web_search_exclude_none.py | 97 | # Step 1: Convert OpenAI Response to ChatMessageAssistant | COMMENT |
| LOW | tests/model/test_web_search_exclude_none.py | 136 | # Step 2: Convert ChatMessageAssistant back to OpenAI Input Items | COMMENT |
| LOW⚡ | tests/model/providers/test_google.py | 3436 | # Step 1: Simulate model returning an image via inline_data | COMMENT |
| LOW | tests/model/providers/test_google.py | 3459 | # Step 2: Build assistant message and convert back to Google Content | COMMENT |
| LOW⚡ | tests/model/providers/test_openai_responses.py | 1490 | # Step 2: Build an assistant message with the image content | COMMENT |
| LOW⚡ | tests/model/providers/test_openai_responses.py | 1497 | # Step 3: Convert back to input items (simulating the next turn) | COMMENT |
| LOW | tests/model/providers/test_openai_responses.py | 1473 | # Step 1: Model returns an image generation call | COMMENT |
| LOW | src/inspect_ai/model/_providers/_anthropic_citations.py | 109 | # NOTE: This function cannot assume that this module was responsible for the | COMMENT |
| LOW | src/inspect_ai/log/_log.py | 1327 | # WARNING: The order of these fields is important for the log file format. | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 223 | # Step 1: Read the crashed .eval file metadata | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 260 | # Step 2: Read buffer DB metadata (lightweight — just summaries) | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 296 | # Step 3: Determine recovery path and write | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 339 | # Step 4: Stream all samples into the recovered file. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | design/litellm-proxy.md | 704 | - The `get_model_info()` dummy-key path already catches exceptions and returns | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 280 | "fake-key" if key == "TAVILY_API_KEY" else default | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 289 | "fake-key" if key == "TAVILY_API_KEY" else default | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 298 | "fake-key" if key == "TAVILY_API_KEY" else default | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 307 | return_value=("fake-key", "fake-cse-id"), | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 314 | return_value=("fake-key", "fake-cse-id"), | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 322 | "fake-key" if key == "EXA_API_KEY" else default | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 331 | "fake-key" if key == "EXA_API_KEY" else default | CODE |
| LOW⚡ | tests/tools/test_web_search.py | 340 | "fake-key" if key == "EXA_API_KEY" else default | CODE |
| LOW | tests/tools/test_web_search.py | 365 | return_value=("fake-key", "fake-cse-id"), | CODE |
| LOW | tests/tools/test_web_search.py | 396 | return_value=("fake-key", "fake-cse-id"), | CODE |
| LOW | tests/tools/test_tools_bridge.py | 795 | api_key="local-fake-key", | CODE |
| LOW | tests/tools/test_web_search_exa.py | 40 | with patch.dict("os.environ", {"EXA_API_KEY": "dummy-key"}): | CODE |
| LOW⚡ | tests/tools/test_web_search_tavily.py | 59 | with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}): | CODE |
| LOW | tests/tools/test_web_search_tavily.py | 113 | with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}): | CODE |
| LOW⚡ | tests/tools/test_web_search_tavily.py | 127 | with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}): | CODE |
| LOW⚡ | tests/tools/test_web_search_tavily.py | 144 | with patch.dict("os.environ", {"TAVILY_API_KEY": "dummy-key"}): | CODE |
| LOW | tests/tools/test_web_search_google.py | 94 | mock_get_keys.return_value = ("dummy-key", "dummy-cse-id") | CODE |
| LOW | tests/tools/test_web_search_google.py | 141 | mock_get_keys.return_value = ("dummy-key", "dummy-cse-id") | CODE |
| LOW | tests/tools/test_web_search_google.py | 174 | mock_get_keys.return_value = ("dummy-key", "dummy-cse-id") | CODE |
| LOW⚡ | tests/util/test_store_nested_types.py | 97 | "street": "123 Main St", | CODE |
| LOW | tests/util/test_format_template.py | 171 | address=Address(street="123 Main St", city="Anytown"), | CODE |
| LOW⚡ | tests/util/test_json_schema.py | 169 | instance = Model(name="Alice", address={"street": "123 Main St", "city": "NYC"}) | CODE |
| LOW⚡ | tests/util/test_json_schema.py | 171 | assert instance.address.street == "123 Main St" | CODE |
| LOW | tests/util/test_json_schema.py | 200 | "contact": {"email": "bob@example.com", "phone": "555-1234"}, | CODE |
| LOW | tests/agent/test_sandbox_agent_bridge_media.py | 27 | api_key="local-fake-key", | CODE |
| LOW | tests/model/test_token_counting_integration.py | 72 | assert result[0]["name"] == "placeholder" | CODE |
| LOW | tests/model/test_compaction.py | 1801 | user_msg("NEW " + "lorem ipsum dolor " * 300, "u2"), | CODE |
| LOW⚡ | tests/model/providers/test_vllm.py | 37 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW | tests/model/providers/test_vllm.py | 318 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW | tests/model/providers/test_litellm_proxy_reasoning.py | 176 | id="placeholder", | CODE |
| LOW⚡ | tests/model/providers/test_hf.py | 291 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW⚡ | tests/model/providers/test_hf.py | 293 | assert chat == "user: Lorem ipsum dolor\n" | CODE |
| LOW | tests/model/providers/test_hf.py | 67 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW | tests/model/providers/test_hf.py | 93 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW | tests/model/providers/test_hf.py | 373 | message = ChatMessageUser(content="Lorem ipsum dolor") | CODE |
| LOW | tests/model/providers/test_hf.py | 375 | assert chat == "[user] Lorem ipsum dolor" | CODE |
| LOW | examples/http_proxy/claude.py | 56 | "FUTUREMODEL_API_KEY": "fm-fake-key-for-demo", | CODE |
| LOW⚡ | src/inspect_ai/model/_openai_responses.py | 1224 | param["id"] = "dummy-id" | CODE |
| LOW | src/inspect_ai/model/_openai_responses.py | 2625 | "name": "placeholder", | CODE |
| LOW | src/inspect_ai/model/_providers/anthropic.py | 5950 | name="placeholder", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/model/test_compaction_edit_server_tools.py | 101 | # Step 1: Initial request with server-side tools | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 129 | # Step 2: Follow-up to build more history | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 143 | # Step 3: Another follow-up | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 158 | # Step 4: Compact history - clear older tool results | COMMENT |
| LOW | tests/model/test_compaction_edit_server_tools.py | 181 | # Step 5: Final request with compacted history - THIS SHOULD NOT CAUSE 400 ERROR | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 90 | # Step 2: Execute tool calls if present | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 95 | # Step 3: Ask follow-up question | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 112 | # Step 4: Add thank you message | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 115 | # Step 5: Compact history - remove ALL thinking blocks | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 145 | # Step 6: Call model with compacted history | COMMENT |
| LOW⚡ | tests/model/test_compaction_edit_thinking.py | 152 | # Step 7: This should NOT raise an error | COMMENT |
| LOW | tests/model/test_compaction_edit_thinking.py | 61 | # Step 1: System prompt that STRONGLY requires tool use + user prompt | COMMENT |
| LOW | tests/model/test_web_search_exclude_none.py | 97 | # Step 1: Convert OpenAI Response to ChatMessageAssistant | COMMENT |
| LOW | tests/model/test_web_search_exclude_none.py | 136 | # Step 2: Convert ChatMessageAssistant back to OpenAI Input Items | COMMENT |
| LOW⚡ | tests/model/providers/test_google.py | 3436 | # Step 1: Simulate model returning an image via inline_data | COMMENT |
| LOW | tests/model/providers/test_google.py | 3459 | # Step 2: Build assistant message and convert back to Google Content | COMMENT |
| LOW⚡ | tests/model/providers/test_openai_responses.py | 1490 | # Step 2: Build an assistant message with the image content | COMMENT |
| LOW⚡ | tests/model/providers/test_openai_responses.py | 1497 | # Step 3: Convert back to input items (simulating the next turn) | COMMENT |
| LOW | tests/model/providers/test_openai_responses.py | 1473 | # Step 1: Model returns an image generation call | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 223 | # Step 1: Read the crashed .eval file metadata | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 260 | # Step 2: Read buffer DB metadata (lightweight — just summaries) | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 296 | # Step 3: Determine recovery path and write | COMMENT |
| LOW | src/inspect_ai/log/_recover/_api.py | 339 | # Step 4: Stream all samples into the recovered file. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/tools/test_tool_error.py | 75 | CODE | |
| MEDIUM | tests/util/test_async.py | 440 | CODE | |
| MEDIUM | …ts/agent/test_acp/test_tui/test_inline_request_card.py | 129 | CODE | |
| MEDIUM | tests/model/providers/test_mistral.py | 958 | CODE | |
| MEDIUM | tests/model/providers/test_sagemaker.py | 1729 | CODE | |
| MEDIUM | tests/model/providers/test_openai.py | 714 | CODE | |
| MEDIUM | src/inspect_ai/agent/_acp/tui/widgets/cancel_card.py | 162 | CODE | |
| MEDIUM | src/inspect_ai/agent/_acp/tui/widgets/approval_card.py | 112 | CODE | |
| MEDIUM | …spect_ai/agent/_acp/tui/widgets/inline_request_card.py | 115 | CODE | |
| MEDIUM | …spect_ai/agent/_acp/tui/widgets/inline_request_card.py | 126 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/model/providers/test_bedrock_adaptive_thinking.py | 360 | # the base Sonnet 5 keeps forced tool choice as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_flaky_retry.py | 168 | def test_function(): | CODE |
| LOW | tests/sentinel/test_sentinel_replay.py | 449 | def helper(model: Any) -> Agent: | CODE |
| LOW | tests/sentinel/test_sentinel_dispatch.py | 5864 | def run_task(model: Any = "mockllm/model", **task: Any) -> EvalLog: | CODE |
| LOW | tests/review/test_review.py | 630 | def helper() -> Agent: | CODE |
| LOW | …sandbox_tools/src/inspect_sandbox_tools/_cli/server.py | 138 | async def handle_request(request: Request) -> Response: | CODE |
| LOW | src/inspect_ai/_util/_async.py | 70 | async def run_task(func: Callable[[], Awaitable[T]], index: int) -> None: | CODE |
| LOW | src/inspect_ai/util/_collect.py | 34 | async def run_task(index: int, task: Awaitable[T]) -> None: | CODE |