> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-META-0002: Package const specialization reported a hard warning.

> Package const specialization reported a hard warning.

`SIFR-META-0002` belongs to the **Package metaprogramming** diagnostic family. It means: package const specialization reported a hard warning.

## Why It Happens

Deterministic package specialization either reported a bounded issue or declared issue data that does not match its compiler-checked template. Fix the static schema input or the package issue declaration named by the diagnostic.

<Info>
  Use `sifr --explain SIFR-META-0002` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
@const_specialize
def describe[T]() -> ConstSpecializationOutcome[str]:
    return produced_with_warning("shape", "shape.deprecated", {})
```

## How To Fix It

Update the static declaration identified by the package warning. Const-specialization warnings are hard compiler warnings and are intentionally not lint suppressions.

## Fixed Code

```python theme={null}
@const_specialize
def describe[T]() -> ConstSpecializationOutcome[str]:
    return produced("shape")
```

## Details

| Field                  | Value                                              |
| ---------------------- | -------------------------------------------------- |
| Code                   | `SIFR-META-0002`                                   |
| Family                 | `META`                                             |
| Severity               | Warning                                            |
| Stability              | stable                                             |
| Owner                  | `sifr_frontend::const_specialization`              |
| Representative fixture | `crates/sifr_frontend/src/const_specialization.rs` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
