Repository navigation
SCA-411: remove unused imports that #12563 landed on main - #12567
Merged
Merged
Conversation
PR #12563 merged with Dart Analyze & Tests red, leaving two unused_import violations in home_content.dart (app_snackbar and enums leftovers from the deleted get-started orbs). The unused_import baseline is 0, so this blocked later PRs that run the mobile job. Register FC-merged-past-red-analyzer-ratchet for merging past a red analyzer ratchet. Do not raise the unused_import baseline to clear it. Failure-Class: new Co-authored-by: Cursor <[email protected]> Co-authored-by: multica-agent <[email protected]>
There was a problem hiding this comment.
1 issue found across 2 files
Confidence score: 5/5
- In
.github/failure-classes/FC-merged-past-red-analyzer-ratchet.json, theapp/lib/hint does not match nested Dart files, sopreparewill miss this failure class forapp/lib/...changes; update the hint toapp/lib/**.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/failure-classes/FC-merged-past-red-analyzer-ratchet.json">
<violation number="1" location=".github/failure-classes/FC-merged-past-red-analyzer-ratchet.json:13">
P3: The `app/lib/` hint never matches Dart files below that directory, so `prepare` will not suggest this class for `app/lib/...` changes. Use `app/lib/**` instead.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| ], | ||
| "evidence_prs": [12563], | ||
| "scope_hints": [ | ||
| "app/lib/", |
There was a problem hiding this comment.
P3: The app/lib/ hint never matches Dart files below that directory, so prepare will not suggest this class for app/lib/... changes. Use app/lib/** instead.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/failure-classes/FC-merged-past-red-analyzer-ratchet.json, line 13:
<comment>The `app/lib/` hint never matches Dart files below that directory, so `prepare` will not suggest this class for `app/lib/...` changes. Use `app/lib/**` instead.</comment>
<file context>
@@ -0,0 +1,19 @@
+ ],
+ "evidence_prs": [12563],
+ "scope_hints": [
+ "app/lib/",
+ "app/scripts/analyze_ratchet.sh",
+ "app/analysis_baseline.json",
</file context>
Suggested change
| "app/lib/", | |
| "app/lib/**", |
5 tasks done
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 and why
mainis red on the Flutter analyzer ratchet because PR #12563 ("Complete the home refresh") merged at 2026-09-01T21:46:43Z with itsDart Analyze & Testscheck failing. That landed twounused_importviolations ontomain(unused_import: 2 found, baseline 0) and is blocking PRs that run the mobile job, including #12564.Both leftovers are in
app/lib/pages/home/home_content.dart: after #12563 deleted the get-started orbs /_startPhoneRecording, theapp_snackbar.dartandenums.dartimports were unused. This PR deletes those two import lines and leaves theunused_importbaseline at 0.Closes SCA-411
Product invariants affected
none
How it was verified
Local
bash app/scripts/analyze_ratchet.shat this branch head (Flutter 3.44.5 / Dart 3.12.2):Baselines for the improved categories were left alone.
unused_importis back to 0.Tests
No new Dart test. The analyzer ratchet (
unused_importbaseline 0) is the regression guard for this class of failure; a unit test that the import lines are absent would be a static tripwire, not behavioral coverage.Failure class (fixes)
Failure-Class: new
Failure-class transition narrative (only when needed)
Registering
FC-merged-past-red-analyzer-ratchet. Violated contract: a PR whose Dart Analyze & Tests job is red must not merge tomain; #12563 did, and the two unused imports it left blocked later mobile PRs. Canonical prevention is already in-tree:app/scripts/analyze_ratchet.shwithunused_importbaseline 0, run by.github/workflows/mobile-app-checks.yml. Do not raise that baseline to clear a red check, and do not merge while it is red.evidence_prscites #12563 as the merged incident; this PR is the first instance fix.🤖 Generated with Claude Code