persistant 0.7.13

A thin persistence layer over Apache OpenDAL for blobs and records by key: declared capabilities, atomic replace, typed records, and a blocking facade for synchronous callers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
# Changelog

## 0.7.13

### Added
- `persistant_relational::sweep(db, table, column, cutoff, batch, max_batches)` (C4): delete rows of a consumer's own table whose timestamp column is below a cutoff, in bounded autocommit batches (PostgreSQL by `ctid`, SQLite by `rowid`, MySQL and MariaDB by `DELETE .. LIMIT`). A mechanism only: no default cutoff, schedule or table list; the retention policy belongs to the table's owner. Names must be plain identifiers; `NULL` timestamps are never deleted; a row refreshed past the cutoff by a concurrent writer is kept. Tested on PostgreSQL, SQLite, MySQL and MariaDB.

## 0.7.12

### Added
- `PgBackend::verify_fresh(&[Migration])` (C2): installs the migrations on an empty scratch schema, in order, then drops it. The target's ledger and tables are never touched; success and failure both leave no schema behind. Migrations naming another schema, or creating cluster-wide objects, escape the scratch schema (documented, not detected).

## 0.7.11

### Added
- `persistant_sqlx::migrations_from_sqlx(&Migrator)`: run `sqlx::migrate!("./migrations")` (or a `Migrator::new(path)`) through `Migrates::migrate`. Same `_sqlx_migrations` ledger and SHA-384 checksums, so a database migrated by `sqlx migrate run` is accepted as it is; down halves are dropped. A `Migrator` that sqlx would run differently (`no_tx`, another ledger table, locking off) is refused with `FromSqlxError`, never run differently.
## 0.7.10

### Added
- docs: ROADMAP section "Adoption candidates: Humboldt" (what a concrete-pool consumer needs; two of its asks are already built). No code change.

## 0.7.9

### Added
- docs: `docs/DESIGN-DURABILITY-MACHINE.md`, a design note for verifying `Machine` (power-loss) durability: options on this PC, a recommended Hyper-V harness, what it proves and what stays unverified. No code change.

## 0.7.8

### Changed
- docs: ROADMAP no longer lists concurrent-migrator tests as still to build; `rel.migrate.concurrent` has been a leaf since 0.7.4, and MariaDB runs it since 0.7.7.

## 0.7.7

### Added
- **MariaDB certifies like MySQL.** `KvOnRelational` translates to UniSQL's `mariadb` target (it refused with "no translation to mariadb yet"), and `kv_on_mysql` runs against MariaDB 11.4 when `PERSISTANT_TEST_MYSQL_FLAVOR=mariadb` (new CI job `mariadb`): every kv, relational and migration leaf is on except `rel.migrate.ddl_atomic`, as on MySQL.

### Fixed
- MariaDB's `ER_CONSTRAINT_FAILED` (4025) is a `CheckViolation`; only MySQL's 3819 was.
- Two simultaneous migrators on MariaDB no longer race (`Duplicate entry '2' for key 'PRIMARY'`): sqlx takes its migration lock with `GET_LOCK(.., -1)`, which MariaDB rejects with NULL, which sqlx ignores. `MysqlBackend::migrate` now takes its own finite `GET_LOCK` first on MariaDB.

## 0.7.6

### Added
- **`MysqlBackend::connect_with(secret, &ConnectOptions)`: a typed TLS policy for MySQL and MariaDB**, the same `TlsPolicy` and `ConnectOptions` as PostgreSQL (`Disable`, `Prefer`, `Require` by default, `VerifyCa`, `VerifyFull`; `VerifyFull` is sqlx's `VERIFY_IDENTITY`). The policy overrides the URL's `ssl-mode`. `MysqlBackend::connection_is_encrypted` asks the server (`Ssl_cipher`). `tests/tls_mysql.rs` runs against a TLS server and a `--tls-version=` (no TLS) server started by `.github/scripts/mysql-tls.sh`.

### Changed
- persistant-kv now takes unisql 0.24.11 (was 0.24.7), which no longer demands a text collation for a BIGINT column in `DO UPDATE .. WHERE`.

## 0.7.5

### Changed
- **`rel.upsert_where` is now on for MySQL and MariaDB.** They have no `ON CONFLICT .. DO UPDATE .. WHERE`, but `ON DUPLICATE KEY UPDATE n = IF(t.n < VALUES(n), VALUES(n), t.n)` holds the row back the same way. The leaf and `speed.rel.upsert_where` spell it that way for those dialects; the known-bad control (the unconditional `VALUES(n)`) is still caught. Checked on MySQL 8.4.11 and against unisql 0.24.9's `UpsertWhereAsIf` output, which is the same statement. MariaDB is not run here. Only `rel.migrate.ddl_atomic` stays off on MySQL. `bench/sqlx-rel-speed.tsv` regenerated: MySQL now has a number.

## 0.7.4

### Added
- **`rel.migrate.concurrent`**: two migrators started at once against one database apply each migration exactly once between them and both finish cleanly; none runs twice.

### Fixed
- **`MigrateReport.applied` was wrong under concurrency** (found by the new leaf, on MySQL and SQLite): the ledger was read before and after the run *outside* sqlx's lock, so two simultaneous runs each reported every version as theirs. It is now read on the migrating connection inside the lock. The migrations themselves always ran once. SQLite: sqlx takes no lock there, so runs through one `SqliteBackend` (and its clones) now take turns on an in-process mutex; a second *process* migrating the same file is not excluded. `persistant-sqlx` gains an optional `tokio` (sync) dependency under its `sqlite` feature.

## 0.7.3

### Added
- **Two relational speed workloads**: `speed.rel.savepoint` (in one open transaction, `SAVEPOINT`, an `INSERT`, `ROLLBACK TO SAVEPOINT`: three statements per sample) and `speed.rel.upsert_where` (`INSERT .. ON CONFLICT (id) DO UPDATE .. WHERE` over 100 rows, always taking the update branch, each result read back). Each needs the contract leaf of the same name (`rel.savepoint`, `rel.upsert_where`), so MySQL gets an excluded row for `upsert_where`, not a number. `Workload::ALL` is now six. `bench/sqlx-rel-speed.tsv` regenerated.

## 0.7.2

### Added
- **Migrations as leaves**: `persistant_relational::Migrates` (`migrate`, `applied_versions`) and `migrate_conformance`, five leaves on a **disposable ledger** (a scratch schema, a scratch database or a fresh file; each leaf drops the ledger and its own tables first and last): `rel.migrate.apply` (ordered, ledger lists them, a second run applies nothing), `rel.migrate.checksum` (an edited applied migration is refused), `rel.migrate.newer` (a program older than the database is refused), `rel.migrate.atomic` (a failing migration leaves none of its row changes, keeps the migrations before it, and is a classified failure), `rel.migrate.ddl_atomic` (the same for tables it created). Known-bad control: `Defect::NoMigrationLedger`, a migrator with no ledger, checksum or transaction. `Migration`, `MigrateError` and `MigrateReport` moved into `persistant-relational` and are re-exported by `persistant-sqlx` under the same names. `Migrates` is implemented for PostgreSQL (as before), and now MySQL and SQLite. **`rel.migrate.ddl_atomic` is off on MySQL**: DDL commits implicitly.

### Fixed
- **A failed migration no longer wedges the next run.** sqlx takes a session advisory lock for a migration run and does not release it when a migration fails; the pooled connection kept it, and the next run, on another connection, waited for it forever (MySQL 8.4: `GET_LOCK(.., -1)` still waiting after 550 s; PostgreSQL held it too and only escaped because the pool handed back the same session). Migrations now run on one connection, and after a failure that session is closed rather than returned to the pool (`run_direct`, sqlx's own route round the `Acquire` lifetime error). Regression test with a timeout on PostgreSQL and MySQL.

## 0.7.1

### Added
- **Relational kind, stages 1, 3 and 4 of backend benchmarking** (`persistant_relational::{contract, speed, choose}`), on the same core types as kv and blob. `contract::check` decides eligibility from a leaf subset (`conformance::certify_leaves`, new; `certify` is now `certify_leaves` over every leaf). `speed` has four workloads (`speed.rel.insert`, `select_by_key`, `update`, `transaction`), each timed only on a backend that passes the leaf it depends on (`rel.values` or `rel.transaction`); the rest are excluded with the reason, never ranked. `choose` ranks by a workload within an environment and excludes by leaf or by declared durability. Relational durability is **declared and not verified** (`verified: None` for SQLite, PostgreSQL and MySQL); no power-loss test exists.
- `examples/rel_speed` and `bench/sqlx-rel-speed.tsv` (one dated run on a developer machine: Windows, PostgreSQL 16 and MySQL 8.4 in Docker Desktop, so their figures include the VM network). CI times SQLite and uploads the data; nothing compares a figure to a constant.

## 0.7.0

### Breaking
- **`RelationalBackend::begin` takes an `Isolation`** (`ReadCommitted`, the default, `RepeatableRead`, `Serializable`). Migration: pass `Isolation::ReadCommitted` (re-exported from `persistant_relational`) to every `begin()` call to get exactly what `begin()` gave before; implementers of the trait add the parameter and map the level (PostgreSQL `BEGIN ISOLATION LEVEL ..`, MySQL `SET TRANSACTION ISOLATION LEVEL ..; START TRANSACTION`; SQLite ignores it, every transaction there is `BEGIN IMMEDIATE`). `Isolation` is `non_exhaustive`: a backend that does not know a level returns `RelError::Unsupported`.

### Added
- `rel.isolation.serializable` (relational leaf 11). PostgreSQL: of two concurrent serializable transactions that each read both rows and write a different one, one is refused with a serialization failure; the control is that at read committed both commit. MySQL: a plain read in a serializable transaction locks the row (another connection's `FOR UPDATE NOWAIT` is refused, and is not at read committed or after the transaction). Known-bad control: `NoTransactions`. **Off on SQLite**, with the reason in the row: `BEGIN IMMEDIATE` holds the write lock so the probe cannot run.
- `rel.isolation.repeatable_read` now begins its transaction at that level instead of asking inside it, so it is **on for MySQL** too (it was off in 0.6.8); still off on SQLite.

## 0.6.8

### Added
- `rel.isolation.repeatable_read` (relational leaf 10): inside one transaction a row read twice reads the same and a table counted twice counts the same, though another connection committed an update and an insert in between. Known-bad control: `NoTransactions`. **Off on MySQL, honestly**: its `begin` starts READ COMMITTED (the deadlock fix of 0.6.4) and InnoDB cannot raise the level inside an open transaction; reaching it needs a level argument on `begin` (breaking, 0.7.0). PostgreSQL asks for the level with `SET TRANSACTION`.
- Not yet covered: `rel.isolation.serializable` (needs the same level argument to be probed on MySQL).

## 0.6.7

### Added
- `rel.upsert_where` (relational leaf 9): `INSERT .. ON CONFLICT (..) DO UPDATE .. WHERE ..` inserts when absent, updates only when the condition holds. Known-bad control: the same statement without the `WHERE` must fail it. **Off on MySQL and MariaDB, honestly**: they have no such clause (the MySQL matrix records `missing`). PostgreSQL and SQLite rows come from CI.

### Fixed
- Conformance harness: the `NoTransactions` known-bad control ran `SAVEPOINT` straight on the pool, which on SQLite opened a transaction on one pooled connection and never closed it, so any later leaf that wrote hit `SQLITE_BUSY`. Savepoint statements are now no-ops in that control. Latent since 0.6.5 (no later leaf wrote on SQLite until `rel.upsert_where`).

## 0.6.6

### Added
- `rel.row_lock` (relational leaf 8): a row locked `FOR UPDATE` by an open transaction cannot be locked by another connection (probed with `SKIP LOCKED`) until the transaction ends. Known-bad control: `NoTransactions`. **Off on SQLite, honestly**: it has no row locks (a write locks the whole database), so the SQLite matrix records the leaf as `missing`. PostgreSQL and MySQL rows come from CI.

## 0.6.5

### Added
- `rel.savepoint` (relational leaf 7): inside a transaction, `ROLLBACK TO SAVEPOINT` undoes the work after the savepoint, keeps the work before it, and the transaction still commits. Known-bad control: the `NoTransactions` defect must fail it. Verified locally; CI supplies the matrix rows.

## 0.6.4

### Fixed
- **`KvOnRelational::batch` on PostgreSQL and MySQL: racing committers could be handed "deadlock detected"** instead of `Ok(false)`.
  Found by the Synapse mailbox consumer check (8 threads, unseeded version key, `Require(ver, None)` first). Cause: a `Require` of an *absent*
  key locks nothing that excludes a second batch (a gap lock on MySQL, an in-flight insert on PostgreSQL), so racing batches took row locks in
  opposite orders and the server aborted one. Now every batch first locks one row of a new table `persistant_kv_batch` (created by `open`, one row,
  additive), so batches queue instead of deadlocking; SQLite already excludes. A batch the server still aborts as a deadlock or serialisation victim
  is run again (up to 16 times), since it was rolled back whole. Trade-off: batches on one database now run one at a time.

### Added
- `kv.batch_atomic.absent_race` (17th kv leaf): concurrent read-then-batch committers racing for a version key that starts absent; every batch is
  answered true or false, none gets an error, and no commit is lost. Red before the fix on PostgreSQL 16 and MySQL 8.4 (0/5 runs, "deadlock detected"),
  green after. Known-bad control: `BatchIgnoresRequire`.


## 0.6.3

### Added
- `rel.isolation.no_dirty_read` (relational leaf 6): a write inside an open transaction is invisible to
  another connection until it commits, and visible after. Known-bad control: the `NoTransactions` defect
  (statements run at once) must fail it. Verified on SQLite locally; PostgreSQL and MySQL rows come from CI.
  Not yet covered: the other `rel.isolation` levels (repeatable read, serializable).


## 0.6.2

### Fixed
- **The `kv_on_mysql_certifies_every_leaf_on` flake: found and fixed.** Reproduced on the 8th of 8
  full-suite runs (and not in 14 isolated runs, nor 6 under a 40-process CPU burn): the failing leaf was
  `kv.ordered_scan_values`, "scan with values returned keys [... s/gone ...]": the 100 ms entry was
  still listed 250 ms later. Cause: that leaf waits on the clock but was the one wall-clock leaf missing
  from the three-attempt retry list. The trigger is real and measured: the clock inside the Docker
  Desktop VM running MySQL stepped by up to about 1.2 s against the host (offset -1209..+862 ms over six
  minutes, round trips under 20 ms), so the server sometimes judges an entry unexpired after the client
  slept past its time to live. `Leaf::wall_clock` now decides the retry set and is an exhaustive match,
  so a new leaf must choose; a test shows a one-attempt clock step is retried and a real defect (which
  fails every attempt) is not hidden, and fails if the leaf is dropped from the set (mutation-checked).
  This is a property of that test environment, not of MySQL or of PersistAnt; a Linux CI runner shares
  its kernel's clock with its service containers and has not shown it.

## 0.6.1

### Added
- `persistant-relational`: `conformance::{certify, run_leaf, Leaf, Defect, Defective}`, the relational
  kind's own leaves, so it has something to measure: `rel.values` (integers, text, bytes, floats and
  NULL round-trip), `rel.transaction` (commit visible, rollback and drop-without-commit not),
  `rel.error.unique`, `rel.foreign_key`, `rel.check_constraint` (violations come back as the typed
  `RelError`, not as opaque backend text). **Known-bad controls are real:** a `Defective` wrapper makes
  the same target have no transactions, lose bytes or hide error kinds, and the two constraint leaves
  are also run on a schema created *without* the constraint, which must be caught accepting the bad
  row. **The positive control is weaker than in kv and blob** (there is no reference relational engine
  to pass against): it is only that the leaf's schema could be created on the target. Statements are
  written per dialect (a probe of the dialect, not of translation); booleans are left out because how
  a driver returns one is a documented difference.
- All five are on for PostgreSQL 16, SQLite and MySQL 8.4; the three `matrix/sqlx-*.tsv` files gain five
  rows each (21 per backend) and the matrix examples emit them.

### Fixed
- `persistant-sqlx` (PostgreSQL): a `NULL` parameter was sent with type `text`, which the server rejects
  for a `bigint`/`bytea` column (`expression is of type text`) on any pooled connection that had not
  already prepared the statement: a failure that depended on which connection the pool handed out. A
  `NULL` is now sent with an unspecified type and the server infers it. Found by `rel.values` (it first
  passed alone and failed in the matrix run); pinned by `a_null_parameter_works_on_every_pooled_connection`,
  which fails without the fix.

### Changed
- The PostgreSQL and MySQL integration tests take a lock: they share one server and the kv table's
  fixed key prefixes, so two tests certifying at once deleted each other's keys.

## 0.6.0

### Breaking (pre-1.0: the second number)
- The kind-agnostic half of benchmarking moved to `persistant-core`: `bench` (`Environment`, `Stats`,
  `Outcome`, `SpeedRow`, `SpeedTable`, `Comparison`, `compare`, the data file) and `choose`
  (`Durability`, `Declared`, `Need`, `Candidate`, `Choice`, `choose`, `LeafFailure`, `Eligibility`).
  `persistant_kv::speed` re-exports the types it had, so those paths still work. What changed shape:
  `persistant_kv::choose::Need` names leaves and the ranking workload by **id string** (build one with
  `persistant_kv::choose::need(&[Leaf], min, Workload, env)`), a `Candidate`'s eligibility is the core
  `Eligibility`/`LeafFailure` (string leaf ids), and `Why::Contract` carries `LeafFailure`s.
  `persistant_kv::speed::ParseError` is now the core `SpeedParseError` under the old name.

### Added
- `persistant-blob`: `contract::{check, evaluate}`, `speed::{run, Workload}` (write, read, stat, list,
  create_exclusive, replace_atomic, append; 4 KiB values) and `choose::{choose, candidate, need,
  declared_durability}`: stages 1, 3 and 4 for the blob kind, on the shared core types. Only a backend
  that passes the leaf a workload needs is timed; the rest are listed as excluded. **Blob durability is
  declared and not verified at all** (`verified: None`): the kv process-kill test exercises the same
  services through `KvOnBlob`, but there is no blob-level one, and there is no power-loss test.
- `persistant-blob`: `conformance::certify_leaves` (certify a chosen set of leaves, controls included),
  as kv already had.
- `persistant-opendal --example speed` also times the blob kind on the memory and fs services; a test
  runs the blob contract, speed and `choose` together over real OpenDAL services (and allows for a
  case-insensitive filesystem excluding the fs service, as the contract intends).
- Not covered, stated: the relational kind (no leaves of its own yet: nothing to measure, owner the
  PersistAnt lane), blob concurrency in speed, and value sizes other than 4 KiB.

## 0.5.8

### Added
- `persistant-kv`: `durability::{certify_process, verify, child_loop, maybe_run_child, cleanup}` and the
  leaf `kv.durability.process`: a writer process is killed hard after it has acknowledged writes, the
  store is opened again, and every acknowledged key must be there. **Known-bad control:** the same child
  in `AckFirst` mode acknowledges before writing and must be caught losing keys; the leaf is recorded on
  only if the honest run lost nothing *and* the lying run was caught. Verified now: SQLite (file),
  OpenDAL fs, PostgreSQL and MySQL (a killed *client*; the server outliving it). **A memory store
  fails it, as it must** (SQLite `:memory:` and the OpenDAL memory service are in the tests as the
  harness's own negative control).
- `choose::Declared::verified`: the highest class a test has checked. The log line for a ranked
  backend now says `verified: up to process by kv.durability.process` or `verified: no`. **`Machine`
  (power loss, an OS crash) is still only declared** for PostgreSQL and MySQL: a process kill leaves
  the OS and its caches intact, and a test of the rest needs a VM hard reset. A test asserts nothing
  is marked verified above `Process`.
- Harness tests (`harness = false`, the binary re-runs itself as the writer): `durability_sqlite`,
  `durability_fs` (OpenDAL), `durability_postgres`, `durability_mysql`; the last two run in the CI jobs
  that provide the server.
- Not covered, stated: the `Machine` class, durability of the blob kind, and a crash inside a `batch`.

## 0.5.7

### Changed
- `ROADMAP.md`: status of the benchmarking row (kv: all four stages) and the queued items in order
  (durability verification, `choose` for blob and relational, the Synapse mailbox consumer check).
  No code change.

## 0.5.6

### Added
- `persistant-kv`: `choose::{choose, candidate, Need, Candidate, Choice, Entry, Durability,
  declared_durability}`, benchmarking stage 4: "best backend for X". The consumer states the contract
  leaves it needs, the minimum durability class (`Volatile` < `Process` < `Machine`), the one workload
  to rank by and the environment the ranking is for. The answer is the eligible backends fastest
  first, each with the measurement it was ranked on (date, image digest, re-run command) and its
  declared durability; the eligible ones with no measurement in that environment (listed, not
  hidden); and every excluded backend with its reason. Nothing eligible is `Err(NoneEligible)` with
  the exclusions: no silent fallback. `Choice::log_lines` is the decision as lines to log.
- **Durability is declared, not verified.** `declared_durability` is a table of what the backends
  document (PostgreSQL and MySQL defaults: `Machine`; SQLite file and OpenDAL fs: `Process`; memory:
  `Volatile`), each with its basis. There is no power-loss test yet (`blob.durable` is not built); a
  backend with no entry is excluded as unknown once the need asks for more than `Volatile`.
- Not covered, stated: ranking by more than one workload, concurrency-aware ranking, durability
  verification, and the blob and relational kinds (no `choose` for them yet).

## 0.5.5

### Added
- `persistant-kv`: `speed::{run, Workload, Environment, SpeedRow, SpeedTable, compare}`, benchmarking
  stage 3. Seven workloads (put, get, put_if_absent, compare_and_swap, batch, ordered_scan,
  ordered_scan_values) timed per operation in nanoseconds (nearest-rank p50/p95/p99, max). **Only a
  backend that passes the contract leaf the workload needs is timed**; the rest get an `excluded` row
  with the reason and are never ranked. Every row carries its `Environment` (CPU model and cores, OS,
  architecture, date, the server image digest when there is one) and the command that re-runs it;
  `compare` orders backends only within one environment, so a ranking never crosses machines. Results
  are a tab-separated data file that round-trips.
- Examples: `persistant-opendal --example speed` (MemoryKv, KvOnBlob over memory and fs),
  `persistant-sqlx --example speed` (SQLite; PostgreSQL and MySQL when their URLs are set),
  `persistant-kv --example speed_report` (prints per workload and environment, from the files).
- `bench/`: a first dated run on one machine (a Windows desktop; PostgreSQL and MySQL in Docker
  Desktop containers, so their round trip includes the VM). CI runs the same examples on its runner,
  uploads the files as artifacts and prints the report; nothing compares a figure to a constant.
- Not covered, stated: concurrency (every workload is one caller at a time), value sizes other than
  256 bytes, warm-up beyond the first operations, the lock and relational kinds (no leaves of their own
  yet: nothing to measure, owner PersistAnt lane), and the "best backend for X" API (stage 4).

## 0.5.4

### Added
- `persistant-blob`: `stats::{measure, LeafStats, Instrumented, OpCount}`, benchmarking stage 2 for the blob
  kind (same shape as `persistant_kv::stats`): each leaf run `runs` times with one attempt each, counted
  as passed / wrong / errored, with per-operation calls and errors by kind. Exact only if every run
  passed. Test over the OpenDAL memory service: the concurrency leaves it offers are exact on five
  runs; the append leaves it does not offer fail every run as `Unsupported`, not as a contract break.


## 0.5.3

### Changed
- `kv.ttl` runs with a 1000 ms time to live and a 1200 ms sleep (was 300/450). On a shared CI runner
  the 300 ms window was missed once by a correct backend (SQLite, 2026-10-16, passed on rerun). The
  window is wall-clock time on a loaded machine: a limit of the method, not a verdict on the
  backend, and now said so in `conformance`'s docs. The `kv.ttl` row is re-keyed in all four
  `matrix/*.tsv` files (metadata only; every row stays on).

## 0.5.2

### Added
- `persistant-kv`: `stats::{measure, LeafStats, Instrumented, OpCount}` and `conformance::run_leaf_once`:
  benchmarking stage 2 (ROADMAP.md). `measure` runs each leaf `runs` times, one attempt each (no retry), and
  reports passed / wrong / errored with the first failure; `Instrumented` counts per-operation calls and
  errors by kind. A leaf is exact only if every run passed; a fraction is never rounded up. No timing.
- Tests: on SQLite, PostgreSQL and MySQL the six sampled-concurrency leaves must be exact on five
  consecutive runs (real-time leaves are left out: a stalled CI machine would fail them for the wrong
  reason).

## 0.5.1

### Added
- `persistant-sqlx` (feature `mysql`): `MysqlBackend` (`connect`, `connect_secret`, `from_pool`);
  the dialect is read from the server (`MySql` or `MariaDb`). Transactions run at `READ COMMITTED`
  (under InnoDB's default REPEATABLE READ, concurrent insert-if-absent deadlocks on gap locks: the
  suite found it). Errors classified from MySQL error numbers. TLS policy is the URL's `ssl-mode`
  for now, not typed.
- `persistant-kv`: `KvOnRelational` over MySQL 8.4 through UniSQL 0.24.7. Keys are
  `VARBINARY(1024)` (bytewise; a longer key is rejected by the server), values `LONGBLOB`. A
  conditional insert-if-absent is two statements there (`claim_two_step`): sqlx connects with
  `CLIENT_FOUND_ROWS`, under which an upsert that changed nothing reports the same count as an
  insert (measured; `ROW_COUNT()` follows the same flag), so no single upsert can say whether it
  stored. Allowances: `LenientCast` and `UpsertAnyUniqueKey`; UniSQL's `UpsertWhereAsIf` is not used.
- `matrix/sqlx-mysql.tsv` and a CI job (MySQL 8.4 service container pinned by digest, read from the
  registry 2026-10-16) that regenerates and compares it: all 16 leaves certified, controls included.
- Not covered, stated: MariaDB (the dialect is detected, KvOnRelational refuses it), a typed TLS
  policy, keys over 1024 bytes.

## 0.5.0

### Added
- `persistant-sqlx` (feature `sqlite`, bundled library): `SqliteBackend` (`open(path)` / `from_pool`),
  WAL, a bounded wait for the write lock, write transactions as `BEGIN IMMEDIATE`, errors classified
  from SQLite's extended result codes. No server, so its tests cannot skip.
- `persistant-kv`: `KvOnRelational` over SQLite. The statements are still written once, in PostgreSQL
  SQL, and now translated by UniSQL 0.24.7 (`unisql`, from crates.io); PostgreSQL is passed through
  unchanged. Allowances granted, each with its reason in `translate.rs`: `LenientCast`,
  `ClockIsStatementStart` (SQLite reads the clock once per statement), `UpsertAnyUniqueKey`. The
  table definition is per dialect (DDL is outside UniSQL's IR). `SELECT ... FOR UPDATE` is dropped
  on SQLite, whose write transaction is already exclusive. SQLite older than 3.42 is refused
  (`unixepoch('now','subsec')`).
- `matrix/sqlx-sqlite.tsv` and a CI job that regenerates and compares it: all 16 kv/lock leaves
  certified on SQLite, controls included.
- **Breaking (pre-1.0 minor): the minimum Rust version is 1.94 for every crate** (was 1.91; UniSQL
  0.24 needs 1.94). CireSnave permitted raising it, 2026-10-08.
- Not covered, stated: MySQL/MariaDB (next), a shared in-memory SQLite database across connections
  (use a file, or a one-connection pool), crash safety of SQLite itself.

## 0.4.35

### Added
- `persistant-kv`: leaf `kv.batch_atomic.optimistic_sequence` (the Synapse mailbox pattern: read, yield,
  `batch([Require(read value), Put])`, retry on refusal). Callers must each get a distinct number and the
  counter must end at the number of increments. Known-bad controls: `BatchIgnoresRequire` and
  `BatchNotAtomic` (Synapse measured 74 duplicates of 100 without the `Require`s). `KvOnBlob` is
  `Missing`. Certified matrix rows 15 -> 16.


## 0.4.34

### Added
- `persistant-kv`: `contract::{check, evaluate, Eligibility, Exclusion}` and `conformance::certify_leaves`:
  backend benchmarking stage 1 (ROADMAP.md). A consumer names the leaves it needs; a backend that does
  not pass every one is `Excluded` with the reason per leaf (`Missing`, `Wrong`, `Untested`), never ranked
  slower. A required leaf with no test is excluded as `Untested`. Tests: correct backend eligible;
  `KvOnBlob` excluded as `Missing` for batch; a defective `MemoryKv` excluded as `Wrong`.

## 0.4.33

### Added
- `ROADMAP.md`: the backend benchmarking and ranking row (contract suite, statistics, speed, ranked
  `best backend for X` with evidence) and the SQLite/MySQL row. No code change.


## 0.4.32

### Added
- `persistant-kv`: `BatchOp::{Put { key, value, ttl }, Delete { key }, Require { key, expected }}`
  and `KvBackend::batch(&[BatchOp]) -> Result<bool>`: all-or-nothing. `Ok(false)` means a `Require`
  precondition was unmet and nothing changed. Also `ordered_scan_values`. Implemented by `MemoryKv`
  and `KvOnRelational` (PostgreSQL). `KvOnBlob` does not offer `batch`.
- Three conformance leaves: `kv.batch_atomic.rollback`, `kv.batch_atomic.concurrent_read`,
  `kv.ordered_scan_values`. Certified matrix rows 12 -> 15.
- Not covered, stated: the full `kv.batch_atomic` crash leaf stays off.

## 0.4.31

### Added
- `persistant-sqlx`: `TlsPolicy` (`Disable`, `Prefer`, `Require`, `VerifyCa`, `VerifyFull`, the last
  two with an optional root certificate file) and `ConnectOptions { tls, max_connections,
  acquire_timeout }`; `PgBackend::connect_with(&ConnectionSecret, &ConnectOptions)`. The policy
  **overrides** the URL's `sslmode`, so a connection string cannot weaken it. The default is
  `Require` and the default acquire timeout is bounded (10 s), so a saturated pool is an error, not
  a hang. `PgBackend::connection_is_encrypted()` asks the *server* (`pg_stat_ssl`).
- Tests against a real PostgreSQL with `ssl = on` (private CA, CA:FALSE leaf for `localhost`; a CA
  certificate presented as the server certificate is rejected by rustls as `CaUsedAsEndEntity`,
  which the first attempt hit): Require encrypts and the server agrees; Disable is plain (control
  for the probe); Require against a server without TLS fails while Prefer connects unencrypted;
  the policy overrides `sslmode=disable` in the URL; VerifyFull refuses an untrusted certificate and
  accepts the trusted one; an exhausted pool errors after its bound.
- `.github/scripts/postgres-tls.sh` and a CI step starting that server (pinned image, same waiver
  reason as the plain service container).
- Not covered, stated: client certificates (mTLS), certificate revocation, TLS to SQLite (n/a).

## 0.4.30

### Added
- `persistant-sqlx`: `PgBackend::migrate(&[Migration])` and `applied_versions()`: ordered,
  checksummed, per-migration-transaction schema migrations that **keep sqlx's own ledger**
  (`_sqlx_migrations`, written by sqlx's `Migrator`, SHA-384 of the text), so `sqlx migrate run`
  and `sqlx::migrate!` read the same table and Humboldt's version-and-checksum comparison keeps
  working (DESIGN-KINDS §5). Typed outcomes `MigrateError::{ChecksumMismatch, NewerThanProgram,
  Dirty, Failed}` and a `MigrateReport` of what was applied. Tests against a real PostgreSQL, in
  their own schema each: apply in order and re-run applies nothing, add a version to an existing
  ledger, an edited applied migration is refused, a database newer than the program is refused, a
  failing migration rolls back and names its version and error class, and the ledger's columns and
  checksums are sqlx's (SHA-384, computed independently in the test).
- sqlx feature `migrate` enabled; dev-dependency `sha2` for that independent check.

## 0.4.29

### Added
- `persistant-relational`: `ConnectionSecret` (an environment variable, a file, or a literal) and
  `Redacted`. A connection string is a reference or a value that prints as `<redacted>`; `Debug`
  never shows it and resolution errors name the variable or file, never a value (DESIGN-KINDS §5,
  "secret-handle connection config"). The text comes out only through `Redacted::expose`.
- `persistant-sqlx`: `PgBackend::connect_secret`. `connect(&str)` stays and its doc points at it.
  A test connects through a literal secret and asserts that neither the secret nor the backend
  prints the password.

## 0.4.28

### Added
- D7 option A (PM ruling 2026-10-14): `persistant` re-exports the new crates behind opt-in features,
  **off by default and additive**. `Store`, `Config`, `Need`, `Error` and the blocking facade are
  untouched. Features and modules: `core` as `persistant::capability`, `blob` as `persistant::blob`,
  `kv` as `persistant::kv`, `relational` as `persistant::relational`, `opendal-driver` as
  `persistant::opendal_driver`, `sqlx-driver` as `persistant::sqlx_driver` (needs Rust 1.94; the rest
  build on 1.91). `persistant-opendal` joins `[workspace.dependencies]`.
- `tests/reexports.rs` exercises each re-export under its feature; CI runs it with `--all-features`.
- `deny.toml`: allow `CDLA-Permissive-2.0`, the licence of `webpki-roots` (Mozilla's CA bundle as
  data) that sqlx pulls through `tls-rustls-ring-webpki`. A policy call for the PM at the gate: the
  alternative is sqlx's `tls-rustls-ring-native-roots` (system roots, no webpki-roots).

## 0.4.27

### Added
- `persistant-opendal::crash`: the crash half of `blob.replace_atomic` ("a crash leaves the whole
  old value or the whole new one"), decided by killing a process mid-replace. A host binary re-runs
  itself as the child (`PERSISTANT_CRASH_CHILD`); the parent kills it hard 12 times at varied delays
  and requires the key to hold the whole `A...` or the whole `B...` 16 MiB value. Controls: a std
  write-then-rename passes (positive), a slow in-place truncate-and-write is found torn
  (known-bad). Not covered, stated: power loss (`blob.durable`), since a process kill leaves the
  page cache intact.
- Findings recorded in `matrix/opendal.tsv`: `blob.replace_atomic` is **on** for `opendal-fs` with
  `atomic_write_dir`, and **missing** without it (the driver refuses: it writes in place).
- This is the prerequisite `docs/FACADE-MIGRATION.md` named for any matrix-gated `AtomicReplace`.
- `persistant-opendal` gains a normal dependency on `tokio` (feature `rt`), for the child's runtime.

## 0.4.26

### Changed
- `docs/FACADE-MIGRATION.md`, docs only, no code: a design note on moving the `persistant` facade
  onto the new crates. Gap table, the finding that a matrix-gated `AtomicReplace` needs a crash test
  nobody has written, three options, a recommendation (additive re-exports now; a crash test next;
  a breaking 0.5.0 only after it) and one decision (D7) for the PM and CireSnave.

## 0.4.25

### Changed
- `docs/DESIGN-KINDS.md`, docs only, no code: D4, D5 and D6 recorded as ruled/done; a status section
  (section 11) says what was built, nine things building found (each asserted in a test) and what
  is not built (SQLite/MySQL until UniSQL is published, migrations, TLS/secret handles, crash and
  power-cut tests, consumer migration); the opening no longer claims "no code".

## 0.4.24

### Added
- `persistant-kv`: `KvBackend::ttl_remaining` and `purge_expired` (default `Unsupported`), asked for
  by the auth-framework lane (`get_kv_ttl`, `cleanup_expired`; ADR-011). Certified leaves
  `kv.ttl_remaining` (a 10 s entry reports 0 < d <= 10 s, falling; none for no ttl, absent or
  expired) and `kv.purge_expired` (expired entries counted and gone, live ones and timed ones
  untouched). Known-bad: `TtlRemainingIsConstant`, `PurgeRemovesLive`.
  `KvOnRelational` gives both (`expires_ms - now`; one `DELETE`); `KvOnBlob` gives `ttl_remaining`
  but not `purge_expired` (deleting an expired entry races a concurrent put and a blob store has no
  compare-and-delete). Memory gives both.
- `persistant-core` vocabulary: `kv.purge_expired`.

### Changed
- `persistant-kv` conformance: the wall-clock leaves (`kv.ttl`, `kv.ttl_remaining`,
  `kv.purge_expired`, `lock.lease`, `kv.prefix_list`) get three attempts, so a stalled machine
  cannot turn a correct backend off; a defective backend fails every attempt.
- Recorded matrices regenerated for the two new leaves.

## 0.4.23

### Added
- `matrix/opendal.tsv` and `matrix/sqlx-postgres.tsv`: the recorded results of the certification
  (68 and 10 rows), written by `cargo run -p persistant-opendal --example matrix` and
  `cargo run -p persistant-sqlx --example matrix` (the second needs a server). Each row names its
  test and its environment (`os`, `arch`); there is no clock field, the commit date is the date.
  CI regenerates both on Linux and fails if they differ, so a backend or crate bump that changes
  what is certified shows up in review. The sqlx matrix is checked by the `relational` job against
  its pinned PostgreSQL.
- Tests that read the checked-in files through `persistant_core::Matrix` and ask the gate's
  question (`create_exclusive` on fs with and without `atomic_write_dir`; an uncertified version and
  an untested leaf are off).

### Changed
- `KvOnBlob` and `KvOnRelational` report their version as `<major>.<minor>+<backend version>`, so a
  patch release does not re-key every recorded row (pre-1.0 the second number is the major).

## 0.4.22

### Added
- Member crate `persistant-relational` (name held at 0.0.0; not published by this change): the small
  `RelationalBackend` / `RelationalTx` trait (execute, query, begin; dialect and server version),
  portable `Value` / `Row`, and `RelError` with typed classification (unique, foreign key, check,
  serialization, deadlock, unavailable, unsupported). No driver.
- Member crate `persistant-sqlx` (name held at 0.0.0; not published by this change): `PgBackend` over
  sqlx 0.9 (`rust-version = "1.94"`, only this crate), SQLSTATE classification, transactions that
  roll back on drop, and the concrete `PgPool` through `PgBackend::pool` for `sqlx::query!`.
- `persistant-kv`: `KvOnRelational<R>`, the KV kind native on a relational backend (D1, C+).
  PostgreSQL SQL, `BYTEA` keys (bytewise order, never collation), server-clock expiry, `ON CONFLICT`
  put_if_absent that reclaims an expired row, compare-and-swap and compare-and-delete as single
  statements. Certified against a real PostgreSQL 16.15: **all ten kv/lock leaves on**, including
  `lock.lease`, `kv.compare_and_swap` and `kv.compare_and_delete`. Any other dialect is refused
  until a translator is a published dependency.
- New known-bad control `ScanIsCaseInsensitive` (the collation trap) and two seed keys, `a/a` and
  `a/B`, which a case-insensitive or locale order puts the wrong way round.
- Finding, from the first Windows CI run of the above: **OpenDAL `fs` on a case-insensitive
  filesystem (Windows, default macOS) treats keys that differ only in letter case as one key**
  (and a file `a/B` collides with a directory `a/b`). `blob.read` and `kv.get` now include a
  case-distinct-keys check (known-bad control `KeysFoldCase` in both memory backends); on such a
  filesystem both are off with reason `wrong`, and the opendal tests probe the filesystem rather
  than assume the OS. The seed key `a/b/c` is now `a/c/d` so the harness does not itself provoke a
  file/directory clash.
- CI: a `relational` job runs the sqlx tests against a PostgreSQL 16 service container pinned by
  digest (`PERSISTANT_REQUIRE_DATABASE=1`, so a missing server fails instead of skipping), and an
  `msrv-sqlx` job; the workspace MSRV job excludes `persistant-sqlx`.

## 0.4.21

### Changed
- `persistant-kv` **(behaviour change, pre-publish)**: `KvOnBlob::new` is strict: `put` needs the
  blob store's `replace_atomic` and is refused where it has none, instead of silently writing in
  place. `KvOnBlob::with_in_place_put` opts in explicitly; `KvOnBlob::config()` reports
  `put_mode=atomic|in_place` so a row is recorded under the mode. Its backend name is now
  `kv-on-blob:<blob backend>` and its version `<crate>+<blob version>`, so rows for different
  blob stores do not collide.

### Added
- `persistant-opendal` tests run `KvOnBlob` over the real `fs` (three configurations) and `memory`
  services. Findings, asserted: fs without `atomic_write_dir`, strict, gives no `kv.put` and only
  the write-once `kv.put_if_absent` (every other leaf test starts by putting); with `with_in_place_put` it gives get/put/delete/ttl/put_if_absent/prefix_list/
  ordered_scan; fs with `atomic_write_dir` gives atomic put but not `kv.put_if_absent`; memory gives
  all but the compare-and-swap family. A strict `KvOnBlob` over fs gives `put` or `put_if_absent`,
  never both (README 0.4.7).

## 0.4.20

### Added
- `persistant-opendal`: `ProcessLock` (`lock.process`), an operating-system advisory file lock
  (`std::fs::File::try_lock`, std only), local only, released by the OS when its holder dies. The
  deciding test runs a child process (this test binary), locks in it, kills it hard and checks the
  lock is free; the known-bad control shows a marker file still excludes everyone after the same
  kill. It does not produce a matrix row from the library, because the child must be the host's own
  executable.

## 0.4.19

### Added
- `persistant-kv`: `KvBackend::compare_and_swap` and `compare_and_delete` (default `Unsupported`),
  `Lease` (`lock.lease`: acquire = `put_if_absent` with a time to live, renew = compare-and-swap,
  release = compare-and-delete; no approximation on a backend lacking them), and contract tests for
  `kv.compare_and_swap`, `kv.compare_and_delete` and `lock.lease` (free, held, renew, release,
  expiry and reclaim, a former owner cannot renew or release the new owner's lease, 16 concurrent
  reclaimers x 5 rounds; parameters in the row). Known-bad controls: `CasIgnoresExpected`,
  `CasNotAtomic`, `CadIgnoresExpected`, `CadNotAtomic`, plus `PutIfAbsentNotExclusive` for the lease.
- `persistant-core` vocabulary: `kv.compare_and_delete`.
- `put_if_absent` documents that an expired entry counts as absent.
- `KvOnBlob` offers none of the three: it has no compare-and-delete, so they are off (`missing`).

## 0.4.18

### Added
- Member crate `persistant-kv` (name held at 0.0.0 on crates.io; not published by this change):
  - `KvBackend` (get, put with optional time to live, delete; optional put_if_absent, prefix_list,
    ordered_scan, default `Unsupported`), `MemoryKv` with injectable defects, and
    `conformance::certify` for `kv.get`, `kv.put`, `kv.delete`, `kv.ttl` (real time: 300 ms window,
    450 ms sleep, expired entries invisible to get and listing), `kv.put_if_absent` (16 x 20
    sampled), `kv.prefix_list` (literal prefix incl. `%` and `[`, paging, expired absent) and
    `kv.ordered_scan` (bytewise order). Each leaf is on only with the target passing, the positive
    control passing and every known-bad control failing.
  - `KvOnBlob<B: BlobBackend>`, a wrapper type (not a blanket impl) storing a version/expiry
    envelope under `kv/<key>`. `put_if_absent` needs `blob.create_exclusive` and refuses a time to
    live and the reclaim of an expired entry (that needs compare-and-delete). Not offered:
    `compare_and_swap`, `take`, `batch_atomic`, `ttl_remaining`, `count`.
- `persistant-blob`: `concurrency` module (`Task`, `join_all`, `yield_now`), shared with the kv tests.

## 0.4.17

### Added
- `persistant-blob`: `BlobBackend::append` (default `Unsupported`) and the contract tests for
  `blob.append` (call order) and the new leaf `blob.append.concurrent_whole` (16 appenders x 10
  records of 64 bytes: every record whole, exactly once, none interleaved; parameters recorded in the
  row). Known-bad controls: `AppendOverwrites`, `AppendTearsRecords`.
- `persistant-core` vocabulary: `blob.append.concurrent_whole`.
- `persistant-opendal`: `append` through OpenDAL's append write. Findings asserted in tests: `fs` gives
  both leaves; the `memory` service does not support append (off, `missing`).

## 0.4.16

### Added
- `persistant-blob`: `BlobBackend::create_exclusive` and `replace_atomic` (default: `BlobError::Unsupported`,
  a new variant), the contract tests for `blob.create_exclusive` and the new leaf
  `blob.replace_atomic.concurrent_read` (a reader sees only whole old or whole new values), run by
  sampled concurrency with the trial parameters (`contenders=16;rounds=20`, `readers=4;replaces=40`)
  recorded in the row, and the defects `CreateNotExclusive` and `ReplaceTearsReads` as known-bad controls.
- `persistant-core` vocabulary: `blob.replace_atomic.concurrent_read`. `blob.replace_atomic` (which
  also requires crash safety) has no test yet and stays off.
- `persistant-opendal`: `create_exclusive` and `replace_atomic`. Findings, asserted in tests: `fs`
  without `atomic_write_dir` creates exclusively and does not replace atomically; `fs` with it replaces
  atomically and cannot create exclusively (the driver says `Unsupported`, README 0.4.7); `memory` gives both.

## 0.4.15

### Added
- Member crate `persistant-opendal` (name held at 0.0.0 on crates.io; not published by this change):
  `OpendalBlob` implements `persistant_blob::BlobBackend` for OpenDAL's `fs` and `memory` services,
  with no OpenDAL type in its public API. Rows are recorded under the fact `atomic_write_dir=set|unset`.
  `list` is emulated by a directory scan, as in `persistant::Store`.
- Tests run `conformance::certify` against real `fs` (with and without `atomic_write_dir`) and `memory`
  and a root that cannot hold keys (control: every leaf off, reason `missing`).

### Changed
- `persistant-blob` conformance: the literal-prefix test uses `%` and `[` (valid in a Windows file name)
  instead of `*`; the `ListPrefixIsGlob` defect is now `ListPrefixIsPattern`.
- The `persistant` crate is unchanged and does not yet use these crates.

## 0.4.14

### Added
- Member crate `persistant-blob` (name held at 0.0.0 on crates.io; not published by this change):
  the `BlobBackend` trait (read, write, delete, stat, list), `MemoryBlob` with injectable `Defect`s,
  and `conformance::certify`, which runs the contract tests for `blob.read`, `blob.write`,
  `blob.delete`, `blob.stat` and `blob.list` and returns matrix rows. A leaf is on only when the target
  passed, the reference backend passed (positive control) and every defect failed (known-bad control).
  Leaves needing concurrency, a crash or a power cut have no test yet and stay off.
- `persistant_core::Matrix::from_rows`.
- The `persistant` crate is unchanged; it does not yet implement `BlobBackend`.

## 0.4.13

### Added
- Workspace. New member crate `persistant-core` (the name is held on crates.io at 0.0.0; this version
  is not published by this change): `CapabilityId`, `Config` (`k=v;k=v`), `Row`/`Matrix` (the
  `docs/DESIGN-KINDS.md` section 2.4 matrix file: read, write, merge, and the gate's lookup where an
  unknown version, an unreadable config or no row is off and a matching `no` wins), `Verdict` (the four
  test outcomes; an `on` row needs both the positive and the known-bad control), and a seed vocabulary
  with a written contract per id, all off until tested. No I/O, no third-party dependencies.
- CI runs `--workspace`; the licence-gate floor is 18.

### Changed
- The `persistant` crate is unchanged in API and behaviour; its version now comes from
  `[workspace.package]`.

## 0.4.12

### Changed
- `docs/DESIGN-KINDS.md`, docs only: D1 recorded as ruled (C+, board 181, CireSnave 2026-10-14); adds the
  `kv.prefix_list` and `kv.prefix_list.exactly_once` leaves agreed with the auth-framework lane. No code
  or behaviour change.

## 0.4.11

### Changed
- Add `.github/CODEOWNERS` (`* @ciresnave`), the portfolio owner rule WSP-001. No code or behaviour change.

## 0.4.10

### Changed
- `docs/DESIGN-KINDS.md` revised, docs only, no code: a capability is a boolean that is off until an
  automated test passes (no declared/emulated/conditional status); the vocabulary is named by
  feature-space coverage rather than consumer demand; the matrix row schema (with `config`) and the
  trait / adapter / driver crate plan (`persistant-core`, `-blob`, `-relational`, `-kv`, `-opendal`,
  `-sqlx`) are written down; open decisions D2, D3 and D6 reworded.
- README: states the versions crates.io lists (0.4.1, 0.4.4, 0.4.8, 0.4.9 at 2026-10-13).

## 0.4.9

### Added
- `Error::Reentrant` (the enum is `#[non_exhaustive]`, so this is additive): a `blocking::Store` call
  made from a thread that is a blocking worker is refused instead of waiting on its own reply.
  Before, such a call parked the worker's only thread and deadlocked. No public API of this crate runs
  caller code on a worker, so this guards an invariant; it was found by audit, not reported in use.
  Also: dropping a worker from its own thread no longer tries to join itself.

## 0.4.8

### Changed
- `docs/DESIGN-KINDS.md`: design for PersistAnt as the one persistence layer for every kind, relational
  included (consumer inventory, one capability vocabulary, crate hierarchy, relational API options,
  adoption order, non-goals). Not shipped in the package; no code changes.
- README: the "no SQL" scope line is now "no SQL yet" with a pointer to the design, and states which
  versions crates.io holds (0.4.1 and 0.4.4 at 2026-10-11).

## 0.4.7

### Changed
- Docs only: the README says that `fs` cannot give atomic replace and exclusive create together.

## 0.4.6

### Added
- `Store::stat(key) -> Entry { key, len, modified }`; an absent key or a directory is `Error::NotFound`.
  Needs `Need::Stat`. `modified` is `Option`: `None` is unknown.
- `Store::list(prefix, after, limit) -> Page { entries, next }`, sorted by key, at most `limit` entries
  (`NonZeroUsize`), `next` is the cursor to pass as `after`. Needs `Need::List` and `Need::Stat`.
  **Emulated**: the prefix is a string prefix; the directory part is scanned and filtered, so memory is
  bounded by `limit` but each page rescans the tree.
- `Store::create_if_absent(key, bytes)`; `Error::AlreadyExists(key)` when the key has a value. Needs
  `Need::Write` and `Need::CreateIfAbsent`. Native, never emulated: `fs` with `atomic_write_dir` set is
  refused at open (OpenDAL checks then renames there, so it is not exclusive).
- The same three operations on `blocking::Store`; `Entry` and `Page` exported.
- Dependency: `futures-util` (already in the tree through OpenDAL), to read OpenDAL's lister.

## 0.4.5

### Changed
- CI only: every third-party GitHub Action is pinned to a full commit SHA read from upstream
  (the ref is kept as a comment). No crate change.

## 0.4.4

### Added
- `Error::NotFound(key)`: `Store::read` (and the blocking facade) of a key with no value now returns
  it instead of `Error::Backend(String)`, so a caller can tell an absent key from a disk error
  without matching message text. `Error` is `#[non_exhaustive]`, so this is additive, but code that
  matched `Backend` for a missing key must now match `NotFound` (closes #7).

## 0.4.3

Fixes from the independent retrospective review of PRs 2 and 3.

### Fixed
- `Needs::with` no longer records a need twice, so a refusal lists each missing need once.
- The fault-injecting fake now also faults `begin_replace` (previously only `replace`); an
  interrupted piece-wise replace half-writes each piece and fails at `commit`.
- `Faults::interrupt_writes_after` writes half rounded up, so a one-byte value is still a partial
  write; if the partial write itself fails the error is `Error::Injected`, not `Error::Backend`.
- An upgraded record that does not fit the current type is `Error::UpgradeFailed`, not `Corrupt`.

### Added
- `Error::UpgradeFailed` (`Error` is `#[non_exhaustive]`, so this is additive).
- Test: an interrupted replace leaves the old value on `memory`, which `AtomicReplace` acceptance relies on.

### Changed
- Docs: what `Faults` counts (attempts, not successes), that nested `Config::Faulty` keeps only the outermost.

## 0.4.2

### Fixed
- `blocking::Store`: an operation that panicked was reported as `Error::Backend("worker failed before
  replying")` with the panic lost. It is now `Error::Panicked(message)` and the store keeps working.

### Added
- `Error::Panicked` (`Error` is `#[non_exhaustive]`, so this is additive).

### Changed
- Crate description now mentions the blocking facade (a published description changes only with a new
  version). Docs: dropping a `blocking::Store` waits without a timeout for in-flight operations;
  the README cost numbers name the commit they were taken at.

## 0.4.1

### Changed
- Packaging only, no code change: an explicit `include` list so the published crate holds the source,
  tests, example, licences, README, CHANGELOG and SECURITY.md; `SECURITY.md` added (GitHub private
  vulnerability reporting).

## 0.4.0 (internal, never published)

### Added
- `persistant::blocking::Store`: the same operations for synchronous callers, on a private worker
  thread (safe inside any tokio runtime, from many threads). Tests include calls from inside current-thread
  and multi-thread runtimes. OpenDAL's own blocking operator was evaluated and rejected (see rustdoc).
- `examples/blocking_cost.rs`: per-call cost against `std::fs`.

## 0.3.0 (internal, never published)

### Added
- Typed records: `Record` trait (`KIND`, `SCHEMA`, `upgrade`), `Store::put_record` / `get_record`
  (JSON envelope `{kind, schema, data}`; newer schema, other kind and corrupt bytes are typed errors;
  older schema goes through `upgrade`), `Store::delete`.
- Fault-injecting fake: `Config::Faulty` with `Faults::{none, fail_writes_after, interrupt_writes_after}`.
  Wrappers (`Faulty`, `Masked`) nest.
- README usage example, compiled as a doctest.
- New errors: `Corrupt`, `Encode`, `KindMismatch`, `SchemaUnsupported`, `Injected`.

## 0.2.0 (internal, never published)

### Added
- `Store::open(config, needs)`: declare the guarantees a program needs (`Need`: read, write, delete,
  stat, list, create-if-absent, atomic replace, max value size); a backend that cannot give them is
  refused with `Error::Refused`, naming every unmet need. No silent downgrade.
- Atomic replace (`Store::replace`, `Store::begin_replace`) on the `fs` and `memory` backends. `fs`
  is accepted for `AtomicReplace` only when `atomic_write_dir` is configured (OpenDAL writes straight
  to the target otherwise); using replace without declaring it is `Error::NotDeclared`.
- `Config::Masked`: a capability-masking test fake.
- Depends on `opendal` 0.59 (`services-fs` only, default features off).

## 0.1.0 (internal, never published)

### Added
- Repository skeleton, CI (fmt, clippy, tests on ubuntu and windows; MSRV; cargo-deny; licence-header
  check), `MIT OR Apache-2.0` licence files. No storage API yet.