Skip to content

Commit b6548e5

Browse files
authored
refactor(state): retire commitments schema (#122176)
* refactor(state): retire commitments schema * fix(state): complete commitments retirement safeguards * test(state): expect doctor retirement report * test(state): prove doctor v7 markers atomically * fix(state): align schema support metadata * fix(state): report actual commitments retirement * fix(state): validate retired commitments schema * fix(state): preserve early commitments upgrades * fix(state): require exact commitments index set * fix(state): reject non-exact retired schemas * fix(state): recognize supported retirement layouts * fix(state): expose commitments retirement to doctor * fix(voice-call): describe commitments retirement * test(state): align v7 rebase proof * fix(state): protect commitments retirement dependencies * fix(state): accept partial commitments layouts * chore(docs): refresh v7 api baselines
1 parent 2335332 commit b6548e5

38 files changed

Lines changed: 1286 additions & 221 deletions

‎apps/macos/Tests/OpenClawIPCTests/PortGuardianRecordStoreTests.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ struct PortGuardianRecordStoreTests {
532532
let fixture = try Self.fixture()
533533
defer { fixture.cleanup() }
534534

535-
for version in [4, 5, 6] {
535+
for version in [4, 5, 6, 7] {
536536
let databaseURL = fixture.root.appendingPathComponent("supported-v\(version).sqlite")
537537
try Self.seedVersionedPortGuardianDatabase(databaseURL, schemaVersion: version)
538538
let store = try PortGuardianRecordStore(databaseURL: databaseURL)
@@ -544,7 +544,7 @@ struct PortGuardianRecordStoreTests {
544544
#expect(try store.records() == [record])
545545
}
546546

547-
for version in [7, 99] {
547+
for version in [8, 99] {
548548
let databaseURL = fixture.root.appendingPathComponent("newer-v\(version).sqlite")
549549
try Self.seedVersionedPortGuardianDatabase(databaseURL, schemaVersion: version)
550550
#expect(throws: PortGuardianStoreError.self) {

‎apps/shared/OpenClawKit/Sources/OpenClawNativeState/OpenClawNativeStateSQLite.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public enum OpenClawNativeStateSQLiteValueType: Equatable, Sendable {
3737
/// One recursive connection lock serializes transactions and statement access.
3838
public final class OpenClawNativeStateSQLite: @unchecked Sendable {
3939
// Keep aligned with OPENCLAW_STATE_SCHEMA_VERSION. Native clients never upgrade this database.
40-
private static let maximumSupportedSchemaVersion: Int64 = 6
40+
private static let maximumSupportedSchemaVersion: Int64 = 7
4141
private static let defaultBusyTimeoutMilliseconds: Int32 = 5000
4242

4343
private struct SchemaObject: Hashable {

‎docs/.generated/plugin-sdk-api-baseline/agent-harness-runtime.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/agent-harness.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-core.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-entry-contract.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-inbound.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-message.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-outbound.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/.generated/plugin-sdk-api-baseline/channel-plugin-common.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)