git:20260820.1cddfe2 to git:20260829.8218fd2
1 added, 0 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
description: "AI rules for com.example.service.NewAnnotationsShowcase"
globs: ["**/NewAnnotationsShowcase.java"]
alwaysApply: false
---
<!-- VIBETAGS-START -->
# Rules for NewAnnotationsShowcase
### Rules for method executeSecureDatabaseWipe
- **Allowed Callers**: [com.example.service.PricingService, com.example.payment.PaymentProcessor]
### Rules for method calculateFastFibonacci
- **Policy**: ZERO_ALLOCATION
- **Rule**: Strictly limit or prevent object allocations.
### Rules for method calculateFastFibonacci
- **Rule**: Must remain a pure function. Forbid state modifications and side effects.
+ - **Reason**: Memoized elsewhere on the assumption it is referentially transparent; adding logging or a cache mutation here would corrupt those callers
### Rules for parameter NewAnnotationsShowcase.executeDatabaseQuery(java.lang.String)#sqlRawInput
- **Target Filters**: SQL_INJECTION
- **Rule**: Run raw input strings through approved sanitizers.
## Secure Logging Masking
- **Rule**: Never pass these raw variables to log appenders or stdout streams.
### Rules for parameter NewAnnotationsShowcase.registerUserSession(java.lang.String,java.lang.String,java.lang.String)#creditCardNumber
- **Policy**: MASK_CREDIT_CARD
### Rules for parameter NewAnnotationsShowcase.registerUserSession(java.lang.String,java.lang.String,java.lang.String)#passwordRaw
- **Policy**: HASH
### Rules for method runComplexMatrixMath
- **Complexity Level**: HIGH
- **Rule**: Any logic modification requires updating a walkthrough/markdown file with structured architectural rationale.
### Rules for method deprecatedLegacyCalculatePrice
- **Status**: Strict Deprecation (No new references)
- **JIRA Ticket**: DEBT-742
- **Replacement**: com.example.service.PricingService
### Rules for method temporaryUpstreamBypass
- **Expiration**: 2028-12-31
- **Reason**: Hotfix workaround until upstream payment provider updates their API.
- **Rule**: Hotfix or stub that must be removed before expiration.
<!-- VIBETAGS-END -->