Skip to content

MM-004 collapse Android analytics permission failures - #6

Draft
himattm wants to merge 1 commit into
agent/mm-003-enforce-app-targetfrom
agent/mm-004-concise-android-analytics-error
Draft

MM-004 collapse Android analytics permission failures#6
himattm wants to merge 1 commit into
agent/mm-003-enforce-app-targetfrom
agent/mm-004-concise-android-analytics-error

Conversation

@himattm

@himattm himattm commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What changed

Preserve typed subprocess failures and recognize Android CLI's analytics-spool permission signature. Default output becomes a concise environment_error containing the blocked path and remediation; global --verbose adds the untouched command status, stdout, and stderr.

Why

In restricted filesystems, Android CLI aborts while creating its analytics spool. Minimap previously duplicated the complete Java and Rust stack traces inside a large config_error payload.

Impact

Agents receive one actionable message by default without losing raw exception data needed for debugging.

Validation

  • Reproduced the real ~/.android/cli/analytics/metrics/spool/*.trk: Operation not permitted failure
  • Concise-output size and no-stack assertions
  • Verbose raw-stderr contract
  • Negative classification for non-Android commands
  • Full workspace tests, Clippy, formatting, and binary build

Stack

Depends on #5; base branch: agent/mm-003-enforce-app-target.

Reproduction: Android CLI aborted in a restricted filesystem while creating its analytics spool, and Minimap duplicated the resulting Java and Rust stack traces inside a config_error payload.

Preserve typed subprocess failures, recognize the analytics spool permission signature, and return a concise environment error with the blocked path and remediation. Add global --verbose output for the untouched underlying command exception.

Verified with the captured Android CLI failure shape, concise and verbose CLI contracts, non-Android negative classification, cargo test --workspace, Clippy with warnings denied, formatting checks, and the minimap binary build.
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