strix/strix
0xallam 7596fd4593 refactor: lift hardcoded model default + fix stale `is_whitebox` docstring
``"anthropic/claude-sonnet-4-6"`` was duplicated as a kwarg default in
5 places (``run_strix_scan``, ``make_run_config``, ``make_agent_context``,
and twice in ``agents_graph.create_agent``'s ``inner.get(..., default)``
calls). The default was actually dead code: ``validate_environment``
requires ``STRIX_LLM`` to be set before any scan starts, and the CLI/TUI
callers don't pass ``model=`` themselves.

Replaced with a single resolution in ``run_strix_scan``:

    resolved_model = model or load_settings().llm.model
    if not resolved_model:
        raise RuntimeError("No LLM model configured. ...")

then propagated explicitly to ``make_agent_context`` and
``make_run_config``. Both lose their string defaults — ``model`` is now
a required kwarg. The graph tool's ``inner.get("model", "...")`` is
``inner["model"]``: the parent context guarantees it's set.

Drive-by: ``run_strix_scan`` docstring still listed ``is_whitebox`` as
a ``scan_config`` key — stale since ``1e641e5`` derived it from
``targets`` instead. Updated.
2026-04-25 16:10:54 -07:00
..
agents refactor: nuke `strix_tool` shim + dead package re-exports 2026-04-25 15:17:46 -07:00
config refactor(config): pydantic-settings revamp + drop `is_whitebox` plumbing 2026-04-25 16:05:40 -07:00
interface refactor(config): pydantic-settings revamp + drop `is_whitebox` plumbing 2026-04-25 16:05:40 -07:00
llm refactor(config): pydantic-settings revamp + drop `is_whitebox` plumbing 2026-04-25 16:05:40 -07:00
orchestration refactor: nuke `strix_tool` shim + dead package re-exports 2026-04-25 15:17:46 -07:00
runtime refactor(config): pydantic-settings revamp + drop `is_whitebox` plumbing 2026-04-25 16:05:40 -07:00
skills docs(skill): document the agent-browser → view_image chain for screenshots 2026-04-25 14:38:13 -07:00
telemetry refactor(config): pydantic-settings revamp + drop `is_whitebox` plumbing 2026-04-25 16:05:40 -07:00
tools refactor: lift hardcoded model default + fix stale `is_whitebox` docstring 2026-04-25 16:10:54 -07:00
utils fix(agent): fix tool schemas not retrieved on pyinstaller binary and validate tool call args 2026-01-14 10:57:32 -08:00
__init__.py Open-source release for Alpha version 2025-08-08 20:36:44 -07:00
entry.py refactor: lift hardcoded model default + fix stale `is_whitebox` docstring 2026-04-25 16:10:54 -07:00
run_config_factory.py refactor: lift hardcoded model default + fix stale `is_whitebox` docstring 2026-04-25 16:10:54 -07:00