Skip to content

MM-003 enforce the active Android app target - #5

Draft
himattm wants to merge 1 commit into
agent/mm-011-resolve-semantic-selectorfrom
agent/mm-003-enforce-app-target
Draft

MM-003 enforce the active Android app target#5
himattm wants to merge 1 commit into
agent/mm-011-resolve-semantic-selectorfrom
agent/mm-003-enforce-app-target

Conversation

@himattm

@himattm himattm commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What changed

Infer the debug Android application ID from standard Gradle application modules, report missing or ambiguous package configuration in doctor, and verify ADB's top resumed package before every device-backed command. An explicit --allow-package-mismatch override remains available.

Why

A blank android_package allowed Minimap to capture whichever app happened to be foreground, polluting a repository's navigation graph with unrelated UI.

Impact

Wrong-app captures are rejected before Android layout execution and before graph writes. Standard single-app Gradle projects initialize with the correct debug package automatically.

Validation

  • GetGoing-style applicationId plus applicationIdSuffix inference
  • Missing and ambiguous package doctor cases
  • Wrong-app layout and whereami regressions, including no graph write
  • Explicit override coverage
  • Live API 36 foreground package inspection
  • Full workspace tests, Clippy, formatting, and binary build

Stack

Depends on #4; base branch: agent/mm-011-resolve-semantic-selector.

Reproduction: a blank android_package allowed Minimap to capture and record whichever app happened to be in the foreground.

Infer a standard Gradle debug application ID, report missing or ambiguous targets in doctor, and guard every device-backed command with the top resumed package. Refuse mismatches before capture or graph writes while retaining an explicit one-command override.

Verified with Gradle inference contracts, missing and ambiguous doctor cases, wrong-app layout and whereami regressions, override coverage, 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