# SOW v0.9.0

> Fault-tolerant flat create and prune with --strict, RPM v6 and native OPENPGP multi-signature verification, sow.yaml support, and direct max_cache_ttl grace.

---

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

---

**v0\.9\.0 · 2026-11-27**
- [View release](https://github.com/pgsty/sow/releases/tag/v0.9.0)
- [Source · tar\.gz](https://github.com/pgsty/sow/archive/refs/tags/v0.9.0.tar.gz)
- [Source · zip](https://github.com/pgsty/sow/archive/refs/tags/v0.9.0.zip)
- [pgsty\/sow](https://github.com/pgsty/sow)

SOW 0.9.0 improves how simple repositories handle bad packages, supports RPM format v6 and native OPENPGP multi-signature verification, and accepts either `sow.yml` or `sow.yaml`. New target GC grace periods follow `max_cache_ttl`. The database stays at schema v13.

## Fault-tolerant flat repositories {#flat-fault-tolerance}

`sow create` skips corrupt or unreadable packages and source RPMs by default. When files have the same package name, architecture, and version but different contents, it uses the first valid file in basename order and warns about subsequent conflicts. DEB versions are compared using Debian version ordering, so `1.0-1` and `1.00-1` compare equal.

`sow prune` operates on RPMs. If equal versions in a name and architecture group have different contents, it keeps the entire group by default. Its `--protect` option keeps every version of a named package and warns if the name has no match. Both commands accept `--strict` to reject bad inputs before writing.

```bash
sow create /srv/flat                 # skip bad inputs with warnings
sow create /srv/flat --strict        # fail fast on any bad or conflicting input
sow prune /srv/flat --dry-run        # preview superseded RPMs safely
```

- When every candidate of one format fails, `create` preserves its old index. With `--pigsty`, an old index needs matching entries in the previous `repo_complete`. If they are unavailable, SOW warns and skips the whole update. If that format had no index yet, the other format can still be built.
- **Mixed-directory prune:** `sow prune` updates the RPM index, leaves the DEB index intact, and carries forward existing `repo_complete` digests for still-present DEBs without prematurely hashing newly arrived unindexed DEBs.
- Text output sends warnings to `stderr`. A successful `--json` run reports diagnostics on `stdout`, with `result.warnings` for warnings and `result.skipped` for skipped files. Both fields are optional.
- **Safe single-pass checks:** SOW retains file-identity, size, and modification-time checks across scan, publication, signed RPM installation, and deletion without repeating full decompression read-backs.

## RPM v6, package parsing, and signing {#rpm-v6-and-signing}

- **RPM format v6 and native OPENPGP signatures:** SOW supports RPM format v6 packages (lead major versions 3 through 6, `PAYLOADSHA256` without `PAYLOADSHA256ALGO`, and native `RPMSIGTAG_OPENPGP` tag `278` OpenPGP v4 and v6 signature arrays) across flat `create`, `prune`, `--sign-with`, and Managed `add`, `build`, and `check`, including dual- and multi-signed RPMs. When tag `278` is present, it is authoritative over legacy signature tags.
- **Real-world RPM and DEB compatibility:** RPM indexing accepts identical duplicate main-header tags (such as the duplicate `SOURCERPM` found in EL10 packages) while still rejecting conflicting main tags and duplicate signature-header tags. Binary `.deb` `control` files with legacy Latin-1 bytes (`>= 0x80`) are normalized to UTF-8, and `.asc` OpenPGP keyrings tolerate comment headers outside armor fences.
- **Broader signing keys and passfiles:** Metadata signing accepts ECDSA and DSA keys alongside RSA and EdDSA (Ed25519/Ed448). `--passfile`, `SOW_GPG_PASSFILE`, and `passfile` support regular files, symlinks (including Kubernetes Secret mounts), and named pipes (FIFOs with a 2-second deadline), strip an optional UTF-8 BOM and final LF/CRLF, and surface bounded helper `stderr` diagnostics on failure.

## Managed workspaces, publication, and CLI {#managed-and-publication}

- **Direct `max_cache_ttl` grace:** New target GC grace records use the configured `max_cache_ttl` directly instead of enforcing a hardcoded 30-day floor and 24-hour padding. Existing recorded `NotBefore` deadlines remain effective, and backward NTP clock steps keep the time-witness high-water mark.
- **Target ergonomics and safety:** `authoritative_workspace`, `single_writer`, and `exclusive_write_authority` default to `true` when omitted (explicit `false` remains rejected). R2 `region` defaults to `auto`, dotted bucket names and shorthand durations such as `24h` or `0` are accepted and normalized, and overlapping R2 targets on the same `(endpoint, bucket, prefix)` are rejected across region spellings such as `auto` vs `us-east-1`.
- Public HTTP verification follows permitted CDN redirects and rejects HTTPS-to-HTTP downgrades at each hop. Unrelated regular files at the target root outside `pool/` and `dists/` can remain in place.
- **Workspace config, SQLite, and recovery:** Workspaces accept either `sow.yml` or `sow.yaml` (preserving support for a legacy repository directory named `sow.yaml` beside `sow.yml`), and explicit `-C`/`--workdir` never falls back to `CWD` or `SOW_DIR`. SQLite resolves the physical database path before probing `-wal`/`-shm`/`-journal` sidecars and enforcing single-hardlink invariants, eliminating Darwin-specific C ABI code. Missing `.sow/workspace.lock` in a populated workspace requires explicit offline recovery, while `sow init` repairs missing per-repository locks under `workspace.lock`.
- **Managed ergonomics:** `sow check` reports `sow.yml` `limit`/`exclude` drift as `dirty` instead of an integrity error, verifies APT `by-hash` files by content digest when hard links are broken, and tolerates `.DS_Store` under `.sow/`. `sow rm --check` stays strictly read-only without touching `.sow/<repo>/stage`, `sow add -R` ignores unreadable non-package files, write operations that require a schema v12 migration exit `6`, and interrupted v0.7.1 local GC plans containing an empty `manifest` array now resume directly.
- Repeating a single-value option uses the last value. `-d`/`--dist` and `--protect` accumulate. Boolean options accept `=true` or `=false`, with `--help` and `--version` taking no value. The CLI accepts `--timeout 0s`, `sow log export FILE` resolves symlinked parent directories such as macOS `/tmp`, and the release archives and Linux packages include `sow` and `LICENSE`.

## Upgrade and downloads {#upgrade}

> [!WARNING]
> Review any publication target configured with `max_cache_ttl: 0s` before upgrading. New target GC grace records now follow `max_cache_ttl` without a 30-day floor, so superseded objects with `0s` TTL can become eligible at the next target GC. Previously recorded later `NotBefore` deadlines remain effective.

Workspaces on 0.5.0 through 0.8.0 stay on schema v13 and need no database migration. Stop workspace writers, back up the complete workspace with hard links preserved, install SOW 0.9.0, and run `sow build` and `sow check` for each repository. Interrupted 0.7.1 local GC plans with an empty `manifest` array now resume directly under 0.9.0 without needing the 0.7.1 binary first. See the [upgrade guide](/docs/start/install/#upgrade-to-090).

Linux and macOS archives and Linux RPM and DEB packages are on the [v0.9.0 release](https://github.com/pgsty/sow/releases/tag/v0.9.0). Verify downloads against [SHA256SUMS](https://github.com/pgsty/sow/releases/download/v0.9.0/SHA256SUMS). See the [full changelog](https://github.com/pgsty/sow/compare/v0.8.0...v0.9.0).

### `.rpm`

| File | Checksum |
| --- | --- |
| [sow\-0\.9\.0\-1PGSTY\.aarch64\.rpm](https://github.com/pgsty/sow/releases/download/v0.9.0/sow-0.9.0-1PGSTY.aarch64.rpm) | SHA-256 · `0da15045da7480cc04221ec27f47bffa5f8312535604d4061a0ea9ef4b9407a8` |
| [sow\-0\.9\.0\-1PGSTY\.x86\_64\.rpm](https://github.com/pgsty/sow/releases/download/v0.9.0/sow-0.9.0-1PGSTY.x86_64.rpm) | SHA-256 · `d14739581e3bdbdd0717538d42c1fd45e3bc535e3e5c22b6aba9924115f53006` |

### `.deb`

| File | Checksum |
| --- | --- |
| [sow\_0\.9\.0\-1PGSTY\_amd64\.deb](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0-1PGSTY_amd64.deb) | SHA-256 · `324de319cc18a57554295663718604664e217a9b456088b8661d985da38bc8a6` |
| [sow\_0\.9\.0\-1PGSTY\_arm64\.deb](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0-1PGSTY_arm64.deb) | SHA-256 · `e44285d96635aa98fc49920cbadbfe03a2f900ade4b9f68faa4a56bfe3583467` |

### `.tar.gz`

| File | Checksum |
| --- | --- |
| [sow\_0\.9\.0\_darwin\_amd64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0_darwin_amd64.tar.gz) | SHA-256 · `3dc63c798a99593ab38f83ab6e8cef3b771e597a91f106751298038b069bbbd7` |
| [sow\_0\.9\.0\_darwin\_arm64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0_darwin_arm64.tar.gz) | SHA-256 · `1d0011597c1e39799e12d8ffd7d1616ef90c835f5675b7b97cc397e7d7d93fd2` |
| [sow\_0\.9\.0\_linux\_amd64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0_linux_amd64.tar.gz) | SHA-256 · `2e5210cfdd771f7042889ed22df5fcde408bb3d412ede69cbf601ec2a8eaacdc` |
| [sow\_0\.9\.0\_linux\_arm64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.9.0/sow_0.9.0_linux_arm64.tar.gz) | SHA-256 · `15cca2d9e90016ef2f345f33b3182245db60ad074fc93756e0ee1436e97b7443` |
