# Design

> Why pgsilo exists and the decisions that shaped it.

---

LLMS index: [llms.txt](/llms.txt)

---

This section documents the engineering rationale and internal architecture of `pgsilo`: why the project pairs the Silo S3 frontend with a PostgreSQL `ObjectLayer` backend, how S3 and SQL share a single transactional state machine, and how multi-gateway caches and background workers maintain consistency.

## Design documents {#documents}

| Document | Topic |
| --- | --- |
| [Why a PostgreSQL backend](/docs/s3/design/why/) | Target workloads, lessons from `pgs3`, when to choose PostgreSQL vs. erasure-coded storage, and capacity bounds |
| [Design decisions](/docs/s3/design/decisions/) | The `ObjectLayer` seam, 8 MiB `bytea` segments, `commit_seq` version ordering, lock hierarchy, and rejected alternatives |
| [Integration with Silo](/docs/s3/design/silo-integration/) | Auditing erasure-coded assumptions in Silo, `.minio.sys` persistence, S3 Select snapshots, and why `iam_and_pg` intersects IAM |
| [SQL API design](/docs/s3/design/sql-api/) | Separating `silo`, `silo_api`, and `silo_bucket`, `session_user` security hardening, and per-bucket `security_barrier` ACL views |
| [IAM control plane](/docs/s3/design/iam-control-plane/) | Pool isolation, the 5-second freshness lease, standby heartbeats, and the schema 14 `revision_token` split-brain fix |
| [Lifecycle and Object Lock](/docs/s3/design/lifecycle-lock/) | Database-enforced WORM retention, keyset lifecycle scanning, and epoch-fenced maintenance leases |
| [MVP goal](/docs/s3/design/mvp-goal/) | 2026-11-08: ship as an experimental Silo backend; support tiers, release checklist, merge prerequisites |
| [Status review and baseline, 2026-11-08](/docs/s3/design/review-2026-11-08/) | Why testing did not close, the runtime baseline on `299378b`, the IAM snapshot experiment and the request queue fix |
{.wide}

---

Section pages:

- [Why a PostgreSQL backend](/docs/s3/design/why/): Who it is for, when it beats erasure-coded storage, and the alternatives that were evaluated.
- [Design decisions](/docs/s3/design/decisions/): The ObjectLayer seam, the data model and the rejected alternatives.
- [Integration with Silo](/docs/s3/design/silo-integration/): Where Silo assumes erasure coding, and why IAM and native authorization both apply.
- [SQL API design](/docs/s3/design/sql-api/): Why objects are reachable from SQL and how per-bucket ACL relations work.
- [IAM control plane](/docs/s3/design/iam-control-plane/): Pools, advisory locks, the 5-second bound and the revision token added in schema 14.
- [Lifecycle and Object Lock](/docs/s3/design/lifecycle-lock/): How lifecycle rules and retention work under leases.
- [Status review and baseline, 2026-11-08](/docs/s3/design/review-2026-11-08/): Where pgsilo stood on 2026-11-08, why testing did not close, the runtime baseline on 299378b and the two fixes that followed.
- [MVP goal](/docs/s3/design/mvp-goal/): The 2026-11-08 goal: ship pgsilo as an experimental Silo backend, with a release checklist sized for an MVP.
