# Turn on a stricter compiler flag for one package

A stricter compiler setting enabled for one package, with the fallout fixed rather than cast away.

Category: Type safety and lint rules
Source: https://letsship.ai/use-cases/turn-on-a-stricter-compiler-flag
Published: 2026-08-25

## Goal

Enable a stricter compiler flag for one package and fix what it surfaces.

## Acceptance criteria

- The flag is enabled for the package and it builds
- Errors are fixed rather than cast or suppressed
- No new escape hatches are introduced
- The remaining packages are listed in the description

## What lands as proof

A clean build with the flag on and no new casts, which is the only outcome that actually improves safety.

## Prompt

Copy this to an agent to open the ticket:

```text
Create a Linear issue in my team and assign it to the SHIP agent.

Title: Enable {flag} for {package}

Description: Enable a stricter compiler flag for one package and fix what it surfaces.

Acceptance criteria:
- The flag is enabled for the package and it builds
- Errors are fixed rather than cast or suppressed
- No new escape hatches are introduced
- The remaining packages are listed in the description

Before you create the issue, check which strictness flags this repository leaves off and replace {flag} and {package}.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: enable a stricter compiler flag for one package and fix what it surfaces. Work that serves that outcome is in scope, and anything outside it is left for a separate ticket, so the pull request stays reviewable.

### How do I know the work is done?

The pull request carries the evidence, not only the diff. Here that means flag on, package builds, no new casts introduced, so a reviewer can confirm the result without reproducing the work locally.

### How much oversight does this need?

The run stops once the plan is written. Somebody reads the approach and approves it before any code exists, which is the cheapest moment to redirect the work.
