Repository navigation
chore(failure-classes): repair nine scope_hints that matched zero paths - #14493
Merged
Merged
Conversation
…aths Eight hints matched zero files (renames, gitignored output, bare directory names). FC-assumed-credential-lifetime's Rust Firestore token cache is gone; retarget to the Python Firestore client and credential constructors that replaced it. Failure-Class: none Co-authored-by: Cursor <[email protected]>
The scenario commits a definition JSON, so a live .github/failure-classes/** hint correctly listed FC-guard-encodes-incident-literals. Pin sibling classes to an unrelated tracked glob so the test controls its own candidates. Failure-Class: none Co-authored-by: Cursor <[email protected]>
summersmile1984
added a commit
to summersmile1984/omi
that referenced
this pull request
Sep 26, 2026
…definition Upstream BasedHardware#18722 (43c27b7) deleted backend/utils/task_intelligence/rollout.py but left its scope_hint in .github/failure-classes/FC-gate-principal-outside-consolidated-entitlement.json; scripts/failure-class treats a hint matching zero tracked paths as an error, so failure-class-protocol fails for any range spanning that deletion — ours does. Retarget the hint to the surviving task_intelligence directory (upstream repairs dead hints the same way: BasedHardware#14493, BasedHardware#14466, BasedHardware#14495). Registered as T1 (max_added_lines 1) with upstream-prs queue row #18. Evidence: scripts/failure-class validate --base origin/main --head HEAD --pr-body-file /tmp/pr-body.md passes the declaration and this error; re-run after commit. Failure-Class: none
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
Nine failure-class definitions carried a
scope_hintsentry that matched zero tracked paths.scripts/failure-class preparematches those hints withfnmatch, so a hint written the way aperson naturally writes one — a trailing slash instead of
**— silently matched nothing and theclass disappeared from candidate narrowing. That is failing open: the author sees a clean run and
invents a new class instead of finding the one that already exists.
Eight are repaired to match what each hint was plainly trying to scope. The ninth,
FC-assumed-credential-lifetime, is retargeted rather than marked dormant: the Rust customGCE-metadata token cache it originally named is gone, but the same credential-and-Firestore
construction is alive in Python at
backend/database/_client.pyandbackend/database/google_credentials.py. A class with a live scope is cheaper to reconsider laterthan one that is dormant and forgotten.
No script changes here, deliberately. The check that catches this class going forward is a
separate PR. Repairs land first so that check never reddens a PR on arrival.
Product invariants affected
none
How it was verified
python3 scripts/failure-class validate --base origin/main --head HEAD→ ok. Every hint inthe registry now matches at least one path under
git ls-files: 0 dead hints remaining, downfrom 9 across 606 hints in 260 definitions.
Failure class (fixes)
Failure-Class: none
This is registry hygiene, not an instance fix — hence
chore(failure-classes):and no classdeclaration. Declaring a fix here would trip
instance_fix_mutates_registry, which existsprecisely so a fix cannot quietly reshape the registry, and which is correct even though these
nine edits are the repair.
🤖 Generated with Claude Code