MM-004 collapse Android analytics permission failures - #6
Draft
himattm wants to merge 1 commit into
Draft
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Preserve typed subprocess failures and recognize Android CLI's analytics-spool permission signature. Default output becomes a concise
environment_errorcontaining the blocked path and remediation; global--verboseadds 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_errorpayload.Impact
Agents receive one actionable message by default without losing raw exception data needed for debugging.
Validation
~/.android/cli/analytics/metrics/spool/*.trk: Operation not permittedfailureStack
Depends on #5; base branch:
agent/mm-003-enforce-app-target.