# Samples

> **Status:** Draft 0.2, 2026-11-23. Worked examples of Gravity Keep, all using Tidewater, the fictional lender from the Gravity Standard. Every account number, name, and person is invented.

# Tidewater's AWS estate

Tidewater services loans for about forty partner community banks. Its applications are **Lending**, **Payments**, and **Support Desk**, on the Gravity Standard foundation. Its legacy core, Anchor Core, stays on the mainframe ([Gravity Migration](https://gravitymigration.com/tidewater-estate.md)).

| Account | ID | Holds |
|---|---|---|
| tidewater-management | 111100000001 | AWS Organizations, SCPs, tag policies, billing |
| tidewater-gravity-keep | 111100000002 | The control plane itself |
| tidewater-foundation-prod | 111100000010 | The Standard's foundation infrastructure: Postgres, WAF, DNS, KMS, Verified Permissions |
| tidewater-lending-dev | 111100000020 | Lending, development |
| tidewater-lending-prod | 111100000021 | Lending, production |
| tidewater-payments-prod | 111100000031 | Payments, production |
| tidewater-support-prod | 111100000041 | Support Desk, production |
| tidewater-sandbox | 111100000090 | Experiments, `policy ownership learning` |

Primary region `us-east-2`, recovery region `us-west-2`. Zones are written as IDs (`use2-az1`).

People in the samples: **Eric** (platform engineer, `platform-engineers`), **Alee** (platform lead, `platform-engineers`), **Jordan** (Lending engineer, `lending-engineers`), **Sam** (on-call engineer, granted `hold` and `revert`).

# The samples

| File | Shows |
|---|---|
| [tidewater-configuration.md](tidewater-configuration.md) | Tidewater's whole tree, in hierarchical form |
| [templates.md](templates.md) | The Gravity Standard's Terraform modules written as templates |
| [session-01-first-commit.md](session-01-first-commit.md) | A first session in one account: enter configuration mode, add a bucket, check, commit |
| [session-02-defaults-and-guardrails.md](session-02-defaults-and-guardrails.md) | Stating encryption and tags once, and a guardrail refusing a commit |
| [session-03-application-from-template.md](session-03-application-from-template.md) | Standing up Lending's intake Lambda from `gs-lambda` |
| [session-04-move-under-organization.md](session-04-move-under-organization.md) | The pilot account moving under the organization, replacing nothing |
| [session-05-commit-confirmed.md](session-05-commit-confirmed.md) | A WAF change that would lock out the office, reverted automatically |
| [session-06-drift-and-hold.md](session-06-drift-and-hold.md) | A console change corrected, and a break-glass hold during an incident |
| [session-07-adopt-and-rollback.md](session-07-adopt-and-rollback.md) | Adopting a legacy bucket, a destructive change refused, and a rollback |
| [session-08-pipeline-and-review.md](session-08-pipeline-and-review.md) | Production changes from a Git-sourced namespace: loading forward only, a CLI change refused, a revert written back to Git, and a second-person approval where the namespace is sourced in the control plane |
| [session-09-guardrail-rollout.md](session-09-guardrail-rollout.md) | A new guardrail rolled out: audit first, the default in development, a promotion that reaches production and needs its review, and the guardrail made real |
| [session-10-explore-learn-evict.md](session-10-explore-learn-evict.md) | Exploring a hand-built stack into an observed branch, a sandbox learning from the console, and evicting a branch that leaves for another tool |

Read them in order. Each session picks up where the one before left off.
