Skip to content

Delete AppClient methods no build calls (#2782) - #3274

Merged
erskingardner merged 1 commit into
masterfrom
step7-appclient-dead-methods
Nov 10, 2026
Merged

erskingardner merged 1 commit into
masterfrom
step7-appclient-dead-methods

Conversation

@erskingardner

Copy link
Copy Markdown
Member

Problem

Since #3268, AppClient is public only under test-support. Eleven of its methods had no caller in any build: no
production path, test, host, simulator, incident replay or campaign runner calls them. A dead-code allowance was the
only thing keeping them from warnings. Nobody outside the codebase is affected.

Fix

Delete the eleven. Hosts already call a MarmotAppRuntime method of the same name for each one, and that method
reaches the same client helper through the account worker, so no behaviour loses its only route. The other eighteen
methods with the allowance are called only by tests. The default build still reports each of them as unused, so they
keep the allowance.

Verification

  • Local: removed all 29 allowances, renamed the methods and ran cargo check --all-targets --all-features --keep-going over marmot-app, wn-cli, marmot-uniffi, marmot-c, the simulator, incident-replay, the campaign runner and agent-connector. The same eleven methods had no caller.
  • Local: cargo clippy -p marmot-app -- -D warnings on the lib, --all-targets and --all-targets --all-features, plus --all-targets --all-features over those eight crates
  • Local: 27 marmot-app tests on the runtime routes and intent builders the deleted methods duplicated (prewarm, unreact, agent activity, operation, group system, text stream), with and without test-policy-overrides
  • Local: end-to-end smoke (simulator public_app_03 + process adapters; wn-cli DM workflow + daemon)
  • Local: just c-header (marmot.h byte-identical), just binding-docs-gate, just naming-gate, cargo fmt --all --check
  • Review: Codex (gpt-6.1-sol) and Cursor (grok-4.7-high-fast) recommend merge at a0382fe

Part of #2782

🤖 Generated with Claude Code

Eleven AppClient methods had no caller in any build: production, tests,
hosts, simulator, incident replay or the campaign runner. Each has a
MarmotAppRuntime method of the same name that hosts already call, which
reaches the same client helper through the account worker. The remaining
18 test-only methods keep their dead-code allowance: none has a
production caller.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 82 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: f157f9b2-f9cf-4bd4-a792-d5529142f23b
Commits

Reviewing files that changed from the base of the PR and between d9e54ee and a0382fe.

Files selected for processing: 3

  • crates/marmot-app/AGENTS.md
  • crates/marmot-app/CHANGELOG.md
  • crates/marmot-app/src/client/mod.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@erskingardner
erskingardner added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit d4e6005 Nov 10, 2026
48 checks passed
@erskingardner
erskingardner deleted the step7-appclient-dead-methods branch November 10, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant