Repository navigation
fix(ci): fail the MCP write audit at the module seam in the diagnostics test - #7761
Conversation
…cs test Since 605ca6e the MCP write audit lives in the TinyMCP module, which picks its storage provider once per process at load. A file as the workspace no longer reaches it, so diagnostics reported recent_rows Some(0) instead of the expected None. The test now disables modules on the broken config, so the module client is unavailable and the diagnostics report the audit as failed (recent_rows None, non-empty last_error). That is the surface this test owns. Storage failures inside the audit are tinymcp's to cover (storage/failing.rs).
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The test disables modules to fail the write audit at the module seam;
check last_error names that seam ("MCP module unavailable", from
mcp/audit/mod.rs) instead of only being non-empty.
Tiny Sweeper reviewTiny Sweeper completed its review; deterministic results follow. State: Ready for maintainer review Review snapshot
Completeness: Complete Features
TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. FindingsNo active actionable findings. Before mergeNone. Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0019 · 134,915 in / 26,777 out · 36,992 cached (27%) · ladder/vectors-oai3, deepseek-v4.1-flash · 93 embedded
critique: $0.0010 · 55,712 in / 14,155 out · 17,536 cached (31%) · deepseek-v4.1-flash
security: $0.0003 · 51,629 in / 4,100 out · 14,336 cached (28%) · deepseek-v4.1-flash
description: $0.0004 · 25,615 in / 5,542 out · 5,120 cached (20%) · deepseek-v4.1-flash
Summary
openhuman-cli::raw_coverage_all tool_registry_approval_raw_coverage_e2e::tool_registry_diagnostics_reports_config_and_audit_store_failuresin CI Fast on main (run 38441930612; same failure on main5a5c68ab00in run 38447185171).Problem
Since 605ca6e the write audit lives in the TinyMCP module (
mcp::audit::list_writes→McpConfiguredClient). In tinymcp v0.18.0 the module picks its storage provider once per process, at load: host storage if it can connect, otherwise an in-memory default (tinybus_module/mod.rssetup). A file used asworkspace_dirtherefore no longer breaks the audit.list_writessucceeds with zero rows, and the diagnostics reportSome(0).Solution
modules.enabled = false.McpConfiguredClient::for_configreturnsUnavailable,list_writeserrors, and the existing assertions hold as written:recent_rows == Noneand a non-emptylast_error.crates/tinymcp/src/storage/failing.rs).raw_coverage_all.Submission Checklist
Impact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
N/A
Validation Run
rustfmt --checkon the changed file.Summary by CodeRabbit