> ## 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-PACKAGE-0305: Trust policy names a backend crate that is not a direct dependency.

> Trust policy names a backend crate that is not a direct dependency.

`SIFR-PACKAGE-0305` belongs to the **Package management** diagnostic family. It means: trust policy names a backend crate that is not a direct dependency.

## Why It Happens

Sifr package or workspace metadata violates the package model. Inspect `sifr.toml`, Cargo metadata, source roots, trust policy, archive contents, package selectors, or projection files as named by the diagnostic.

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

## Erroneous Code

```toml theme={null}
[package]
name = "demo"
```

## How To Fix It

Repair the package manifest, workspace selection, projection files, archive rules, or publish options named by the diagnostic.

## Fixed Code

```toml theme={null}
[package]
name = "demo"
version = "0.1.0"

[sifr]
source-root = "src"
```

## Details

| Field                  | Value                                                                                                            |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Code                   | `SIFR-PACKAGE-0305`                                                                                              |
| Family                 | `PACKAGE`                                                                                                        |
| Severity               | Error                                                                                                            |
| Stability              | stable                                                                                                           |
| Owner                  | `sifr_package::cargo::trust`                                                                                     |
| Representative fixture | `crates/sifr_package/src/cargo_backend_integration_tests.rs::backend_trust_rejects_stale_non_direct_trust_entry` |

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