refactor(agents)!: remove the session write lease (#121113)

* refactor(agents): remove session write lease

* refactor(plugin-sdk): deprecate session write lease

* refactor(doctor): remove session lock checks

* test(agents): remove session lease fixtures

* test(agents): align writer rebound assertion

* refactor(infra): remove retired session lock exports

* test(tooling): preserve embedded abort race shard
This commit is contained in:
Peter Steinberger
2026-08-09 15:30:48 -07:00
committed by GitHub
parent 67e653e580
commit ce53f7e82e
139 changed files with 1139 additions and 7467 deletions
@@ -76,11 +76,9 @@ Normal Gateway writes flow through the session accessor, which serializes per-ag
OpenClaw no longer creates automatic `sessions.json.bak.*` rotation backups during Gateway writes. The current schema rejects the legacy `session.maintenance.rotateBytes` key, and `openclaw doctor --fix` removes it from older configs.
Transcript mutations use the session write queue for the SQLite transcript target:
Session write locks use fixed production defaults. The corresponding
`OPENCLAW_SESSION_WRITE_LOCK_*` environment variables remain available for
process-level diagnostics and emergency overrides.
Transcript mutations pass through the session accessor and SQLite writer queue.
Each mutation verifies the active run's durable writer claim inside its commit
transaction, so a superseded run cannot write to the transcript.
### Downgrading After The SQLite Flip