# Session 9: Rolling Out a Guardrail and Promoting a Default

> **Status:** Draft 0.2, 2026-11-23. Tidewater's auditors ask for two years of logs instead of 400 days. Alee rolls the change out the way a careful team would: an audit guardrail to see the reach, the new default in development first, a promotion to the top of the tree with every production namespace's review, and last, the audit guardrail made real. Shows `guardrails audit`, `show findings`, reach in commit check, `promote`, and a guardrail refused while something still violates it.

# Seeing the reach first

Alee starts with an audit guardrail at `/tidewater`. It changes nothing and blocks nothing; it only finds ([tree-model 5](../tree-model.md#5-defaults-and-guardrails)).

```
[edit /tidewater]
alee@tidewater# set guardrails audit logs.log-group retention-in-days minimum 731
alee@tidewater# commit check
configuration check succeeds
findings  +214  logs.log-group retention-in-days below minimum 731 (audit guardrail at /tidewater)
plan against observed state as of 2026-12-01 09:12:40 CST:
  no changes to AWS

alee@tidewater# commit comment "Audit: two-year log retention (AUD-77)"
commit complete: COMMIT-61
```

An audit guardrail reaches nothing in AWS, so no production review was needed.

```
alee@tidewater> show findings /tidewater | count
214 findings

alee@tidewater> show findings /tidewater | except "retention-in-days 400 (from defaults at /tidewater)"
/tidewater/support/prod/logs.log-group/ticket-exports   retention-in-days 400 (stated on the resource)
```

Two hundred and thirteen log groups take their retention from the default at `/tidewater`. One, Support's ticket export, states 400 on itself, so changing the default won't reach it.

# Development first

```
[edit /tidewater/lending/dev]
alee@tidewater# set defaults logs.log-group retention-in-days 731
alee@tidewater# commit check
configuration check succeeds
reach    /tidewater/lending/dev defaults logs.log-group retention-in-days 400 -> 731
         affects 12 resources: dev 12
plan against observed state as of 2026-12-01 09:20:03 CST:
  update  12   logs.log-group/*   (retention-in-days)

alee@tidewater# commit and-wait comment "Two-year log retention in Lending dev (AUD-77)"
commit complete: COMMIT-62
COMMIT-62 converged (12 resources, 9s)
```

The nearer default wins, so only Lending's development log groups moved. Alee leaves it for a day and watches the log costs.

# Promoting to the top

```
[edit /tidewater/lending/dev]
alee@tidewater# promote defaults logs.log-group retention-in-days to /tidewater
promoted: set at /tidewater, deleted the copy at /tidewater/lending/dev

[edit /tidewater/lending/dev]
alee@tidewater# commit check
configuration check succeeds
reach    /tidewater defaults logs.log-group retention-in-days 400 -> 731
         affects 201 resources: dev 49, staging 58, production 94
         unchanged: 12 resources at /tidewater/lending/dev (already 731)
review   required: reaches /tidewater/lending/prod, /tidewater/payments/prod, /tidewater/support/prod,
         /tidewater/foundation/prod, /tidewater/gravity-keep (commit mode reviewed)
confirm  not required: no type listed by policy
plan against observed state as of 2026-12-02 10:02:18 CST:
  update 201   logs.log-group/*   (retention-in-days)
findings -201

alee@tidewater# commit request comment "Two-year log retention everywhere (AUD-77)"
commit request 23 created (base COMMIT-62)
approvers: platform-engineers (not alee)
```

Alee edited only `/tidewater`, which isn't reviewed. But the change reaches five reviewed namespaces, so it needs a second person ([CTL-073](../rules.md#access-and-governance)). That includes `/tidewater/lending/prod`, which is Git-sourced: its source governs its own statements, and this change isn't one of them.

```
eric@tidewater> request commit approve 23
commit complete: COMMIT-63 (approved by eric, author alee)
COMMIT-63 converged (201 resources, 2m 14s)
```

# Making the guardrail real, too early

```
[edit /tidewater]
alee@tidewater# delete guardrails audit logs.log-group retention-in-days
alee@tidewater# set guardrails logs.log-group retention-in-days minimum 731
alee@tidewater# commit check
error: configuration check fails
  guardrail  logs.log-group retention-in-days minimum 731 at /tidewater
             /tidewater/support/prod/logs.log-group/ticket-exports   retention-in-days 400 (stated on the resource)
```

Exactly the one finding that the default couldn't reach. Support removes its own statement, so the log group takes the default, in a commit request Alee approves. Then:

```
alee@tidewater# commit check
configuration check succeeds
findings -1 (audit guardrail removed; guardrail at /tidewater holds everywhere)
plan against observed state as of 2026-12-03 11:30:55 CST:
  no changes to AWS

alee@tidewater# commit comment "Two-year log retention is now a guardrail (AUD-77)"
commit complete: COMMIT-66
```

Making the guardrail real changed nothing in AWS: everything already complied, which is what the audit stage was for. From now on, a log group anywhere beneath `/tidewater` that states less than 731 days fails commit check.
