Skip to content

Add CloudSaveKit initial release - #1

Merged
backslash-f merged 18 commits into
mainfrom
codex/initial-cloudsavekit
Aug 14, 2026
Merged

Add CloudSaveKit initial release#1
backslash-f merged 18 commits into
mainfrom
codex/initial-cloudsavekit

Conversation

@backslash-f

@backslash-f backslash-f commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Introduces CloudSaveKit 0.1.0: a reusable, UI- and persistence-agnostic CKSyncEngine coordinator for application-owned local data and a private CloudKit database.

It provides:

  • durable pending-change restoration and CKSyncEngine state persistence through CloudSaveClient;
  • custom-zone startup, fetch/send operations, idle-seeded bounded current-state status updates, account-change recovery, and zone recovery;
  • configured-zone filtering and versioned host-ledger reconciliation, including serialized host mutations and ordered replay of app enqueues that race with asynchronous ledger snapshots;
  • post-acknowledgement and absent-record reconciliation that preserves newer same-record mutations, plus throwing materialization failures that enter host recovery instead of silently stalling;
  • independent recovery state for records, zones, explicit operations, and host persistence; checkpoint ordering, failed-engine cancellation barriers, lifecycle-generation guards, post-materialization batch validation, and overlapping-operation drainage prevent actor-reentrant work from reviving a stopped engine, regressing its checkpoint, leaking previous-account records, or clearing recovery early;
  • account-transition gating that blocks synchronization until the host switches account-scoped persistence and restores its authoritative ledger, rejects pre-transition work, removes previous-account recovery state, and immediately publishes the cleared signed-out status;
  • CKSyncEngine-owned transient retry behavior, cancellation-safe lifecycle waits, ledger preflights, and record materialization, explicit pre-start and host-recovery errors, and safe handling of future unknown account-change cases;
  • acknowledgment of already-absent remote record and zone deletions, configured-zone recreation, and accepted-conflict removal from pending state;
  • package-owned ☁️ diagnostics and semantic conflict callbacks, leaving the host application responsible for record schema, local persistence, and merge policy.

Validation

  • AgentGuidelines/Scripts/swift_format.sh format-and-lint Sources Tests
  • AgentGuidelines/Scripts/swift_format.sh lint-strict Sources Tests
  • python3 AgentGuidelines/Scripts/validate_guidelines.py
  • swift test -v — 7 Swift Testing suites passed with 31 tests covering failure and cancellation classification, retry ownership, independent recovery contexts, account-transition reset and snapshot invalidation, host-ledger versioning, operation generations, host recovery, serialized asynchronous work, acknowledgement and absent-record ledger reconciliation, ordered mutation replay across ledger snapshots, overlapping snapshots and operations, initial status delivery, and bounded status buffering.
  • swift package generate-documentation --target CloudSaveKit --warnings-as-errors
  • Deutsch consumer builds succeeded for macOS and iPhone Simulator with the local package; all 15 persistence reducer, middleware, and service tests passed, including newer-reset-during-header-upload and corrupt-system-field materialization regressions.
  • The separate QuickDeutsch target-only build still hits the known direct-target Swift package dependency-resolution issue deferred to a follow-up PR.

Release plan

After approval and merge, tag 0.1.0, publish the GitHub release, and let the release workflow build/deploy DocC. Deutsch will then replace its local package reference with the tagged remote dependency.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b35923d09

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/nightly.yml Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95e1003f1d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2971df20a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fc0322774

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d1fff6d9db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f244511758

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveStatusChannel.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38b6c9d103

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aed85757db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d0511b9fe9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b56e86ab23

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c38992fbb8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveStateMachine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6af0415db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 467e70f46f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift Outdated
Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b314b25aed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveClient.swift Outdated
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b406277eb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveEngine.swift
@backslash-f

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4f279c055

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CloudSaveKit/CloudSaveRetryPolicy.swift
@backslash-f
backslash-f merged commit ae210c8 into main Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant