monocle-test-tools breaking changes
Updated December 4, 2026
On this page
Latest version 0.8.16, released October 30, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
monocle-test-tools 0.8.16 breaking changes
- Behavior changed
If none of the configured span obfuscators can be loaded, the built-in credentials obfuscator is used instead of exporting unscrubbed payloads. Only an explicit opt-out now turns scrubbing off. github.com - Behavior changed
Inline base64 images, audio and PDFs are exported as a short type and size marker instead of the full encoded content. Code reading the raw payload must expect this; use patterns=list(CREDENTIAL_PATTERNS) to turn it off. github.com - Behavior changed
Retrieval spans keep all retrieved text, truncated only past MONOCLE_RETRIEVAL_OUTPUT_MAX_CHARS (default 65536), so they are larger. Lower the cap to trim them. github.com - Signature changed
monocle_test_tools.MonocleValidator.run_agent_async
Was async def run_agent_async(self, agent, agent_type: str, *args, session_id: str = None, turn_id: str = None, mock_tools: list[MockTool] = [], **kwargs); now async def run_agent_async(self, agent, agent_type: str, *args, session_id: str... pypi.org
monocle-test-tools 0.8.15 breaking changes
- Behavior changed
Test discovery now walks all pages, so a window that previously showed only the first page can yield more test cases. Users with large windows may see more tests or longer collection time. github.com - Behavior changed
setup_test_cases
setup_test_cases now raises instead of returning every fact when a window holds more than max_facts facts (default 1000). Users with larger windows must raise the limit or narrow the window. github.com - Default changed
The wait for agent spans to reach the backend is now set by MONOCLE_REMOTE_TRACE_ID_TIMEOUT and defaults to 60 seconds, replacing the hard-coded 10 seconds. Tests may run longer while waiting. github.com - Signature changed
monocle_test_tools.file_span_loader.JSONSpanLoader.from_json
Was @staticmethod def from_json(json_file_path: str) -> List[ReadableSpan]; now @staticmethod def from_json(json_file_path: str, start_time: Optional[str] = None, end_time: Optional[str] = None) -> List[ReadableSpan]. pypi.org - Signature changed
monocle_test_tools.fluent_api.OkahuSpanLoader.get_spans
Was @staticmethod def get_spans(workflow_name: str, trace_id: str, filter_fact: Optional[str] = None, filter_fact_id: Optional[str] = None, endpoint: Optional[str] = None, api_key: Optional[str] = None, timeout: int = 30) ->... pypi.org - Signature changed
monocle_test_tools.fluent_api.OkahuSpanLoader.get_trace_ids
Was @staticmethod def get_trace_ids(workflow_name: str, fact_name: str, fact_id: str, endpoint: Optional[str] = None, api_key: Optional[str] = None, timeout: int = 30) -> List[str]; now @staticmethod def get_trace_ids(workflow_name: str... pypi.org - Signature changed
monocle_test_tools.fluent_api.OkahuSpanLoader.load_by_scope
Was @staticmethod def load_by_scope(workflow_name: str, scope_name: str, scope_id: str, endpoint: Optional[str] = None, api_key: Optional[str] = None, timeout: int = 60) -> List[ReadableSpan]; now @staticmethod def... pypi.org - Signature changed
monocle_test_tools.fluent_api.OkahuSpanLoader.load_by_session
Was @staticmethod def load_by_session(workflow_name: str, session_id: str, endpoint: Optional[str] = None, api_key: Optional[str] = None, timeout: int = 60) -> List[ReadableSpan]; now @staticmethod def load_by_session(workflow_name: str... pypi.org - Signature changed
monocle_test_tools.MonocleValidator.import_traces
Was def import_traces(self, trace_source: str, id: Optional[str] = None, trace_path: Optional[str] = None, fact_name: Optional[str] = 'trace', scope_name: Optional[str] = None, workflow_name: Optional[str] = None) -> None; now def... pypi.org - Signature changed
monocle_test_tools.TraceAssertion.__init__
Was def __init__(self, filtered_spans: Optional[list[Span]] = None, fluent_chain: list[str] = [], is_assertion_failed: bool = False, _eval: Optional[Union[str, BaseEval]] = None, okahu_filter: Optional[dict] = None) -> None; now def... pypi.org
And 22 more in this version. Sign up to see every change
monocle-test-tools 0.8.14 breaking changes
- Behavior changed
Credentials in span input and output payloads are scrubbed before any exporter receives them. To keep the previous behavior, set MONOCLE_DISABLE_SPAN_OBFUSCATION=true, MONOCLE_SPAN_OBFUSCATORS=none, or span_obfuscators=[]. github.com
monocle-test-tools 0.8.13 breaking changes
- Behavior changed
Deployments using trace return must set MONOCLE_TRACE_RETRIEVAL_DEFAULT_KEY, and tests must set MONOCLE_TRACE_RETRIEVAL_KEY to match, or no spans come back. github.com - Behavior changed
Health check routes are now recognized by path and sampled to one span per reset counter; requests with params or a body still export. Routes can be replaced with MONOCLE_HEALTH_CHECK_ROUTES. github.com - Behavior changed
Failing health checks on these instrumentations are now always exported, since their metamodels report status_code rather than error_code. github.com - Signature changed
monocle_test_tools.TestGenerator.__init__
Was def __init__(self, spans: List[ReadableSpan], trace_file: str = None, trace_source: Optional[str] = None, trace_id: Optional[str] = None, workflow_name: Optional[str] = None, session_id: Optional[str] = None, scope_name: Optional[str]... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_json_file
Was @classmethod def from_json_file(cls, filepath: str, trace_source: Optional[str] = None, injected_evals: Optional[List[Dict]] = None, eval_source: Optional[str] = 'okahu'); now @classmethod def from_json_file(cls, filepath: str... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_okahu
Was @classmethod def from_okahu(cls, trace_id: str, workflow_name: str, trace_source: Optional[str] = None, injected_evals: Optional[List[Dict]] = None, eval_source: Optional[str] = 'okahu'); now @classmethod def from_okahu(cls, trace_id... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_okahu_scope
Was @classmethod def from_okahu_scope(cls, scope_name: str, scope_id: str, workflow_name: str, trace_source: Optional[str] = None, injected_evals: Optional[List[Dict]] = None, eval_source: Optional[str] = 'okahu'); now @classmethod def... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_okahu_session
Was @classmethod def from_okahu_session(cls, session_id: str, workflow_name: str, trace_source: Optional[str] = None, injected_evals: Optional[List[Dict]] = None, eval_source: Optional[str] = 'okahu'); now @classmethod def... pypi.org - Signature changed
monocle_test_tools.TraceAssertion.check_eval
Was def check_eval(self, eval_name: Optional[str] = None, expected: Optional[Union[str, list[str]]] = None, not_expected: Optional[Union[str, list[str]]] = None, fact_name: Optional[str] = 'traces', message: Optional[str] = None... pypi.org
monocle-test-tools 0.8.12 breaking changes
- Removed
claim_verdicts
The judge's output is now carried verbatim in judge_output. Read row["judge_output"]["claim_verdicts"] instead of row["claim_verdicts"]. github.com - Removed
entity_match_check
The field is no longer a top-level row key. Read it from the judge_output field of the row instead. github.com - Removed
hallucination_types
The field is no longer a top-level row key. Read it from the judge_output field of the row instead. github.com - Renamed
MONOCLE_S3_KEY_PREFIX
The old name still works but emits a deprecation warning. Switch to MONOCLE_S3_FILE_PREFIX. github.com - Behavior changed
check_eval
check_eval now collects every failing fact with a per-fact breakdown rather than raising at the first failure. Code that expects an exception on the first failure must change. github.com - Behavior changed
run_agent_async
Turns without a turn_id are now numbered per session, and the resolved turn id is saved back onto the turn. github.com - Signature changed
monocle_test_tools.MonocleValidator.run_agent_async
Was async def run_agent_async(self, agent, agent_type: str, *args, session_id: str = None, mock_tools: list[MockTool] = [], **kwargs); now async def run_agent_async(self, agent, agent_type: str, *args, session_id: str = None, turn_id: str... pypi.org - Signature changed
monocle_test_tools.TraceAssertion.run_agent_async
Was async def run_agent_async(self, agent, agent_type: str, *args, session_id: str = None, **kwargs) -> any; now async def run_agent_async(self, agent, agent_type: str, *args, session_id: str = None, turn_id: str = None, **kwargs) -> any. pypi.org
monocle-test-tools 0.8.11 breaking changes
- Behavior changed
Cloud exporters no longer fall back to a default bucket or container name. Users must pass the bucket or container name explicitly. github.com - Signature changed
monocle_test_tools.runner.http_runner.HttpRunner
Was class HttpRunner(AgentRunner); now class HttpRunner(_BaseHttpRunner). pypi.org - Signature changed
monocle_test_tools.runner.http_runner.HttpRunner.get_remote_traces_source
Was def get_remote_traces_source(self) -> str; now def get_remote_traces_source(self). pypi.org - Signature changed
monocle_test_tools.runner.http_runner.HttpRunner.run_agent
Was def run_agent(self, root_agent: str, *args, **kwargs) -> str; now def run_agent(self, root_agent: str, *args, **kwargs) -> Any. pypi.org - Signature changed
monocle_test_tools.runner.http_runner.HttpRunner.run_agent_async
Was async def run_agent_async(self, root_agent: str, *args, **kwargs) -> str; now async def run_agent_async(self, root_agent: str, *args, **kwargs) -> Any. pypi.org - Signature changed
monocle_test_tools.TestGenerator.__init__
Was def __init__(self, spans: List[ReadableSpan], trace_file: str = None, trace_source: Optional[str] = None, trace_id: Optional[str] = None, workflow_name: Optional[str] = None); now def __init__(self, spans: List[ReadableSpan]... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_json_file
Was @classmethod def from_json_file(cls, filepath: str, trace_source: Optional[str] = None); now @classmethod def from_json_file(cls, filepath: str, trace_source: Optional[str] = None, injected_evals: Optional[List[Dict]] = None... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_okahu
Was @classmethod def from_okahu(cls, trace_id: str, workflow_name: str, trace_source: Optional[str] = None); now @classmethod def from_okahu(cls, trace_id: str, workflow_name: str, trace_source: Optional[str] = None, injected_evals... pypi.org
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
monocle-test-tools 0.8.10 breaking changes
- Behavior changed
The scope_name for invoke, ainvoke, stream and astream spans changed from agent.invocation to agentic.invocation. Code that matches spans by the old scope name must be updated. github.com - Signature changed
monocle_test_tools.TraceAssertion.__init__
Was def __init__(self, filtered_spans: Optional[list[Span]] = None, fluent_chain: list[str] = [], is_assertion_failed: bool = False, _eval: Optional[Union[str, BaseEval]] = None) -> None; now def __init__(self, filtered_spans... pypi.org
And 3 more in this version.
monocle-test-tools 0.8.9 breaking changes
- Signature changed
monocle_test_tools.TestGenerator.__init__
Was def __init__(self, spans: List[ReadableSpan], trace_file: str = None); now def __init__(self, spans: List[ReadableSpan], trace_file: str = None, trace_source: Optional[str] = None, trace_id: Optional[str] = None, workflow_name... pypi.org - Signature changed
monocle_test_tools.TestGenerator.from_json_file
Was @classmethod def from_json_file(cls, filepath: str); now @classmethod def from_json_file(cls, filepath: str, trace_source: Optional[str] = None). pypi.org
And 1 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.