- `KvEngine::Postgres` slotted in: all six kv-op dispatch arms, the
`KvCursor::Postgres` materializing body behind `AnyCursor`'s kv arm
(the recorded sub-enum design point, landed as predicted), and the
engine-neutral `ensure_gc_schema` call creating `gc_pins` +
`gc_window` in the fresh schema at construction (the fleet host's
both-tables row, ADR-012 §5)
- The two named constructors behind feature `postgres` (default-off):
`dual_tier_postgres_local(config, opts, root, threshold,
window_delay)` — the fleet-capable-kv production shape — and
`kv_only_postgres(config, opts, threshold, window_delay)`; the DSN
connection settings + engine opts ride the constructor parameters,
never invented defaults. `PgOpts` is pub and re-exported from
`lib.rs` (it is on the public constructor signature now)
- The sweep's durable form runs on the postgres host: the form body
extracted into `sweep_window_durable<W: EngineWindowState>` (sqlite's
arm delegates, behavior unchanged), both SQL-backed arms keyed off
the kv-engine enum, never a flag — wave 5's pg-lo dormancy slots in
without reshaping
- Non-fleet posture recorded on both constructors (ADR-012 §3):
implicitly `fleet: false`, the ADR-005 in-process protocol verbatim,
the `fleet: true` declaration is wave 6 and slots in without
reshaping
- Stale scope notes updated to the landed state (engine-representation
doc, `KvCursor` design point, fleet-declaration paragraph,
one-window-host paragraph, postgres module doc, gc.rs companion-seam
note); the batch-delete helper's scope note stays (wave 6 consumer)
- 5 new env-driven construction tests (skipping server-less): the
modes construct and introspect, both GC tables exist in the fresh
schema, the window-delay default is the pinned 5-min constant and
tunable (`0` legal), the kv-only rejection wiring is unchanged, the
dual-tier shape round-trips through both tiers, and the durable
form is observed staging/executing across sweeps on the postgres
host
Verification: `cargo test` 69/19/3 ok; `cargo test --features postgres`
102/19/3 ok live (pglo-poc harness) and green server-less;
`cargo test --no-default-features --features postgres` (the pg-pure
build, ADR-013 §4) 75/2/3 ok server-less; `cargo test --all-features`
157/54/4 ok; clippy `-D warnings` green (default, postgres, pg-pure,
all-features); `cargo fmt --check` green; `cargo doc --no-deps` clean.