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

# Check messages: holes and placeholders

> A rater compiles only when every typed hole and every rewrite placeholder holds its value. These messages name the value still to write.

*Generated from the `rslc` compiler.*

## E-HOLE

**Replace a placeholder with a calculation.**

A placeholder, `nl "…"`, holds a calculation that is still written in plain words. `E-HOLE` is the code for a value that depends on a placeholder. `rslc check` reports the placeholder itself, on a line that starts `obligation: I-0025`, and leaves `E-HOLE` unprinted.

A placeholder lets you sketch a rater and fill it in step by step. `rslc check --allow-incomplete` accepts a rater whose only open findings are placeholders. The strict check fails until each one is RSL, and `rslc export` refuses a rater whose outcomes depend on one.

**Example**

The calculation `premium` is a placeholder that describes the rule in words.

```rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
        },
        step rating {
            premium: Premium [cite: manual:p3] = nl "payroll per 1,000 times the filed rate, rounded to the cent"
        }
    }
```

```sh theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
rslc check bad/rater.rsl
```

```text theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
FAIL bad/rater.rsl (strict)
obligation: I-0025 bad/rater.rsl:26:50: Unresolved typed hole Hole:0 (payroll per 1,000 times the filed rate, rounded to the cent)
cost premium: 1 (each list of size 1: 1, 3: 1, 10: 1)
```

**Fix**

Replace the placeholder with the calculation it describes.

```rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
        },
        step rating {
            premium: Premium [cite: manual:p3] = round(self.payroll / 1000 * rate_per_1000, 2, half_up)
        }
    }
```

> [accordion] Complete files
>
> ```rsl bad/rater.rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
> spec {
>     rsl: "0.4.1",
>     carrier: "Example Mutual",
>     state: AZ,
>     product: "Staffing Liability",
>     effective_date: 2026-01-01
> }
>
> Sources = {
>     manual: Source = {
>         artifact: artifact("00000000-0000-4000-8000-000000000000"),
>         kind: pdf
>     }
> }
>
> Constants = {
>     rate_per_1000 [cite: manual:p3] = 2
> }
>
> Records = {
>     Policy = {
>         inputs {
>             payroll: Num {precision: int} where self in [0, 100000000]
>         },
>         step rating {
>             premium: Premium [cite: manual:p3] = nl "payroll per 1,000 times the filed rate, rounded to the cent"
>         }
>     }
> }
>
> RatingOutcomes = {
>     premium: Policy.premium
> }
> ```
>
> ```rsl good/rater.rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
> spec {
>     rsl: "0.4.1",
>     carrier: "Example Mutual",
>     state: AZ,
>     product: "Staffing Liability",
>     effective_date: 2026-01-01
> }
>
> Sources = {
>     manual: Source = {
>         artifact: artifact("00000000-0000-4000-8000-000000000000"),
>         kind: pdf
>     }
> }
>
> Constants = {
>     rate_per_1000 [cite: manual:p3] = 2
> }
>
> Records = {
>     Policy = {
>         inputs {
>             payroll: Num {precision: int} where self in [0, 100000000]
>         },
>         step rating {
>             premium: Premium [cite: manual:p3] = round(self.payroll / 1000 * rate_per_1000, 2, half_up)
>         }
>     }
> }
>
> RatingOutcomes = {
>     premium: Policy.premium
> }
> ```

## E-PLACEHOLDER

**Fill each placeholder of a rewrite.**

A rewrite marks each value the author writes as a placeholder, such as `"<message>"`. A string that is only a placeholder fails the check, so a rater compiles only after each placeholder holds its text.

**Example**

The refinement on `payroll` keeps the placeholder of its `message`.

```rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
        inputs {
            payroll: Num {precision: int}
                where self in [0, 100000000] [code: "PAYROLL_TOO_HIGH", message: "<message>"]
        },
        step rating {
```

```sh theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
rslc check bad/rater.rsl
```

```text theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
FAIL bad/rater.rsl (strict)
error: E-PLACEHOLDER bad/rater.rsl:24:82: write the text a refused request shows in field `message`, which holds the unfilled placeholder `"<message>"`
```

**Fix**

Write the text that a person reads when the request is refused.

```rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
        inputs {
            payroll: Num {precision: int}
                where self in [0, 100000000] [code: "PAYROLL_TOO_HIGH", message: "The payroll must be at most $100,000,000."]
        },
        step rating {
```

> [accordion] Complete files
>
> ```rsl bad/rater.rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
> spec {
>     rsl: "0.4.1",
>     carrier: "Example Mutual",
>     state: AZ,
>     product: "Staffing Liability",
>     effective_date: 2026-01-01
> }
>
> Sources = {
>     manual: Source = {
>         artifact: artifact("00000000-0000-4000-8000-000000000000"),
>         kind: pdf
>     }
> }
>
> Constants = {
>     rate_per_1000 [cite: manual:p3] = 2
> }
>
> Records = {
>     Policy = {
>         inputs {
>             payroll: Num {precision: int}
>                 where self in [0, 100000000] [code: "PAYROLL_TOO_HIGH", message: "<message>"]
>         },
>         step rating {
>             premium: Premium [cite: manual:p3] = round(self.payroll / 1000 * rate_per_1000, 2, half_up)
>         }
>     }
> }
>
> RatingOutcomes = {
>     premium: Policy.premium
> }
> ```
>
> ```rsl good/rater.rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
> spec {
>     rsl: "0.4.1",
>     carrier: "Example Mutual",
>     state: AZ,
>     product: "Staffing Liability",
>     effective_date: 2026-01-01
> }
>
> Sources = {
>     manual: Source = {
>         artifact: artifact("00000000-0000-4000-8000-000000000000"),
>         kind: pdf
>     }
> }
>
> Constants = {
>     rate_per_1000 [cite: manual:p3] = 2
> }
>
> Records = {
>     Policy = {
>         inputs {
>             payroll: Num {precision: int}
>                 where self in [0, 100000000] [code: "PAYROLL_TOO_HIGH", message: "The payroll must be at most $100,000,000."]
>         },
>         step rating {
>             premium: Premium [cite: manual:p3] = round(self.payroll / 1000 * rate_per_1000, 2, half_up)
>         }
>     }
> }
>
> RatingOutcomes = {
>     premium: Policy.premium
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.