Skip to content

chore(failure-classes): repair nine scope_hints that matched zero paths - #14493

Merged
Git-on-my-level merged 2 commits into
mainfrom
task/msd-ci-scope-hint-repairs
Sep 18, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
task/msd-ci-scope-hint-repairs

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Nine failure-class definitions carried a scope_hints entry that matched zero tracked paths.
scripts/failure-class prepare matches those hints with fnmatch, so a hint written the way a
person naturally writes one — a trailing slash instead of ** — silently matched nothing and the
class 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 custom
GCE-metadata token cache it originally named is gone, but the same credential-and-Firestore
construction is alive in Python at backend/database/_client.py and
backend/database/google_credentials.py. A class with a live scope is cheaper to reconsider later
than 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 in
the registry now matches at least one path under git ls-files: 0 dead hints remaining, down
from 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 class
declaration. Declaring a fix here would trip instance_fix_mutates_registry, which exists
precisely so a fix cannot quietly reshape the registry, and which is correct even though these
nine edits are the repair.

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 2 commits September 18, 2026 11:02
…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]>
@Git-on-my-level
Git-on-my-level merged commit b067466 into main Sep 18, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-ci-scope-hint-repairs branch September 18, 2026 08:13
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
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