Files
openclaw/docs/cli
Peter Steinberger 10453a8d8b fix(doctor): migrate every agent database before repairs open it (#158584)
* fix(doctor): migrate every agent database before repairs open it

Complete configured session-store targets before media/schema repair.
Recognize intact pre-journal v1 state without releasing lost-history holds,
and fail explicit Doctor repair when those holds remain unresolved.

Refs #158359.

* fix(tooling): include journal admission in wrapper inventory

* fix(doctor): admit pre-journal v1 stores with writer metadata

Treat app_version as optional writer metadata rather than evidence that a
schema-v1 store had a deletion journal. Keep the schema, ownership, newer-table,
journal-receipt, and recovery-hold guards intact.

Register the agent database ordering regression with the runtime-build
prerequisite owner so it runs in a clean checkout. The two CI runtime-inventory
expectation updates add exactly this newly registered test input; they preserve
exact equality, runtime preparation, ownership, and worker-bound checks.

Refs #158359.

* test(state): require initialized journal after v1 admission

The accepted production behavior intentionally initializes the canonical
agent_deletion_journal when admitting a valid pre-journal v1 store. Update the
v2026.7.1-2 fixture contract to require the complete canonical schema and assert
that the deletion-history owner reports known-empty history.

This expectation changes because journal initialization changed intentionally
in production, not to silence the check. Preserve the full schema comparison,
frozen fixture hashes, retained-data checks, and modern lost-history assertions.

Refs #158359.
2026-09-26 13:38:18 +00:00
..