Skip to content

[agent-guidance] Not every action ID is a plugin.xml registration - #9237

Draft
pq wants to merge 1 commit into
flutter:mainfrom
pq:review-tuner/action-id-registration
Draft

pq wants to merge 1 commit into
flutter:mainfrom
pq:review-tuner/action-id-registration

Conversation

@pq

@pq pq commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Say that not every action ID is a plugin.xml registration. Runtime-created actions (per-app FlutterAppAction subclasses, OpenEmulatorAction) use ID only as an analytics id or a ProjectActions key. On #9236 the bot claimed renaming OpenEmulatorAction.ID breaks a plugin.xml registration that doesn't exist.

NOTE: This one is low on evidence since review-tuner doesn't pickup the WIP but replays support it's value.

Evidence

Source What it shows Who (role)
#9236 The bot said renaming OpenEmulatorAction.ID without updating plugin.xml breaks lookups. A maintainer replied that the action isn't registered and the id is analytics-only maintainer (PR author)
#9188 The bot listed OpenEmulatorAction among "registered actions" (same misconception, not rebutted on this point) (context)

Replay results

Quick check (simulated reviewer, inherit model, 1 run per arm):

Case Want Baseline Candidate
#9236 (motivating) no flag 1/1 (false flag reproduced) 0/1
Guard: a real plugin.xml rename with a stale getAction("…") lookup flag 1/1 1/1
#9223 (unrelated negative) no flag 0/1 0/1

Verdict: helps (2/3 → 3/3). In both arms the guard was flagged as a MUST-FIX, so the rule still catches real registration mismatches. Informally, two more replays without this rule (from a separate check) also raised the same id-rename concern on #9236, so it appeared in 3/3 runs without the rule and 0/1 with it.

Limitations

  • The simulator isn't the real bot, and the sample is small (one run per case).
  • The rule names example classes. If those are renamed or start being registered in plugin.xml, the examples need updating.

Prepared with review-tuner (agent-assisted evidence and replay workflow) and reviewed by @pq.


Review the contribution guidelines below:

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
  • I've included the required information in the description above.
  • My up-to-date information is in the AUTHORS file.
  • I've updated CHANGELOG.md if appropriate.
Contribution guidelines:
  • See
    our contributor guide and
    the Flutter organization contributor guide
    for general expectations for PRs.
  • Larger or significant changes should be discussed in an issue before creating a PR.
  • Dart contributions to our repos should follow the Dart style guide and use
    dart format.
  • Java and Kotlin contributions should strive to follow Java and Kotlin best
    practices (discussion).

Runtime-created actions (per-app FlutterAppAction subclasses, OpenEmulatorAction) use their ID constant only as an analytics id or ProjectActions key. The review bot assumed a plugin.xml registration on flutter#9236.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

This branch has not been deployed

No deployments
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