Skip to content

V1.0.0 alpha.4 - #50

Merged
leogdion merged 2 commits into
mainfrom
v1.0.0-alpha.4
Nov 27, 2026
Merged

leogdion merged 2 commits into
mainfrom
v1.0.0-alpha.4

Conversation

@leogdion

@leogdion leogdion commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added export --snapshot <file.json> to create a read-only release-data snapshot containing SDK, Xcode, and simulator runtime records. Exports are limited to Development by default; --allow-production permits Production access.
    • CloudKit sync and export summaries now include SDK version and simulator runtime counts, with sync also reporting deleted SDK version records.
  • Documentation
    • Added guidance for snapshot exports, including supported options and conditions that cause an export to fail.

leogdion and others added 2 commits November 27, 2026 14:54
* Add `swoopmist export --snapshot` for the release-data snapshot

Writes SDKVersion, XcodeVersion and SimulatorRuntime as SwoopKit's
ReleaseDataSnapshot, byte for byte what Stewed's StewedTools
`release-data-snapshot` wrote, so Stewed can drop StewedTools
(brightdigit/Stewed#194).

- Queries only those three types with queryAllRecords (paged), maps every
  record with from(recordInfo:), and fails on an empty type or an
  unmapped record.
- Sorted by record name, whole-second fetchedAt, SwoopKit's
  JSONEncoder.iso8601PrettySorted plus a trailing newline.
- Read-only. Development unless --allow-production is passed, which is a
  flag only, with no environment variable.
- A fixture JSON written by StewedTools' own code over fixed records
  proves byte identity.

Needs SwoopKit 1.0.0-beta.2 (brightdigit/SwoopKit#3) for
ReleaseDataSnapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3TXo46UssMPhwYSboRtyK

* Resolve SwoopKit 1.0.0-beta.2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3TXo46UssMPhwYSboRtyK

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The sync and export summaries only counted restore images, Xcode and
Swift versions, so SDKVersion and SimulatorRuntime (added in #44) never
showed up. Add both, plus the SDKVersion records the sync deletes.

Also drop the stale "limited to 200 records per type" notes: MistKit
1.0.0-beta.6's queryAllRecords follows continuation markers (#17).


Claude-Session: https://claude.ai/code/session_01V3TXo46UssMPhwYSboRtyK

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Adds a read-only snapshot export for SDK versions, Xcode versions, and simulator runtimes. The CLI supports Development-only access by default, validates export options, and writes sorted JSON. CloudKit sync-action reporting now includes SDK versions and simulator runtimes.

Changes: Release-data export

Layer / File(s) Summary
Configure and validate snapshot exports
Sources/SwoopMistKit/Configuration/*, Sources/SwoopMistKit/Snapshot/SnapshotExportError.swift, Sources/SwoopMistKit/Snapshot/ReleaseDataSnapshotExport+Validation.swift, Tests/SwoopMistKitTests/Configuration/*, Tests/SwoopMistKitTests/Snapshot/ReleaseDataSnapshotExportValidationTests.swift
Adds --snapshot and --allow-production configuration, typed errors, and validation for conflicting options and Production access. Tests cover configuration and validation behavior.
Fetch, map, and write release-data snapshots
Package.swift, Sources/SwoopMistKit/CloudKit/SyncEngine+Snapshot.swift, Sources/SwoopMistKit/Snapshot/*, Tests/SwoopMistKitTests/Snapshot/*, Tests/SwoopMistKitTests/Fixtures/release-data-snapshot-stewedtools.json
Queries SDK, Xcode, and simulator-runtime records; rejects empty or unmapped results; sorts records; truncates fetchedAt to whole seconds; and encodes and writes the snapshot. Tests cover record counts, ordering, errors, and byte-identical output.
Route the CLI and document snapshot export
Sources/SwoopMistKitCLI/Commands/*, README.md, AGENTS.md, Sources/SwoopMistKit/SwoopMistKit.docc/*, .agents/memory/*
Routes configured snapshot exports through SnapshotExportCommand, which validates, exports, writes, and reports the snapshot. Updates command and API documentation and records fixture provenance.
Update CloudKit sync-action reporting
.github/actions/cloudkit-sync/action.yml
Updates pagination documentation and includes SDK-version and simulator-runtime counts in sync totals, export totals, and summaries.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant ExportCommand
  participant SnapshotExportCommand
  participant SyncEngine
  participant ReleaseDataSnapshotExport
  participant CloudKitService
  ExportCommand->>SnapshotExportCommand: Route configured snapshot path
  SnapshotExportCommand->>ReleaseDataSnapshotExport: Validate export configuration
  SnapshotExportCommand->>SyncEngine: Export snapshot
  SyncEngine->>ReleaseDataSnapshotExport: Build snapshot using cloudKitService
  ReleaseDataSnapshotExport->>CloudKitService: Query SDKVersion, XcodeVersion, and SimulatorRuntime
  CloudKitService-->>ReleaseDataSnapshotExport: Return records
  ReleaseDataSnapshotExport-->>SyncEngine: Return snapshot
  SyncEngine-->>SnapshotExportCommand: Return snapshot
  SnapshotExportCommand->>ReleaseDataSnapshotExport: Encode and write snapshot
Loading
Merge Risk: Minimal · up to 8bdb9 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title "V1.0.0 alpha.4" only gives a version label. It does not describe the main change, which adds swoopmist export --snapshot to export SDKVersion, XcodeVersion, and SimulatorRuntime records a… Rewrite the title to name the main change. For example: "Add export --snapshot for release-data snapshots". A version label alone does not tell a reviewer what changed.
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "V1.0.0 alpha.4" only gives a version label. It does not describe the main change, which adds swoopmist export --snapshot to export SDKVersion, XcodeVersion, and SimulatorRuntime records as a ReleaseDataSnapshot. The title is vague and non-descriptive, so the check is inconclusive.

Resolution

Rewrite the title to name the main change. For example: "Add export --snapshot for release-data snapshots". A version label alone does not tell a reviewer what changed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b8e35a8e-e103-4632-8440-351da4e4b9dd
Commits

Reviewing files that changed from the base of the PR and between b381a08 and 8bdb938.

Files ignored due to path filters: 1

  • Package.resolved is excluded by !**/Package.resolved
Files selected for processing: 26

  • .agents/memory/MEMORY.md
  • .agents/memory/release-data-snapshot-export.md
  • .github/actions/cloudkit-sync/action.yml
  • AGENTS.md
  • Package.swift
  • README.md
  • Sources/SwoopMistKit/CloudKit/SyncEngine+Snapshot.swift
  • Sources/SwoopMistKit/Configuration/ConfigurationKeys.swift
  • Sources/SwoopMistKit/Configuration/ConfigurationLoader+Loading.swift
  • Sources/SwoopMistKit/Configuration/ExportConfiguration.swift
  • Sources/SwoopMistKit/Snapshot/Date+WholeSeconds.swift
  • Sources/SwoopMistKit/Snapshot/ReleaseDataSnapshotExport+Validation.swift
  • Sources/SwoopMistKit/Snapshot/ReleaseDataSnapshotExport.swift
  • Sources/SwoopMistKit/Snapshot/SnapshotExportError.swift
  • Sources/SwoopMistKit/SwoopMistKit.docc/ExportingData.md
  • Sources/SwoopMistKit/SwoopMistKit.docc/SwoopMistKit.md
  • Sources/SwoopMistKitCLI/Commands/ExportCommand.swift
  • Sources/SwoopMistKitCLI/Commands/SnapshotExportCommand.swift
  • Tests/SwoopMistKitTests/Configuration/ConfigurationLoaderTests+SnapshotFlags.swift
  • Tests/SwoopMistKitTests/Configuration/DocumentedFlag.swift
  • Tests/SwoopMistKitTests/Fixtures/release-data-snapshot-stewedtools.json
  • Tests/SwoopMistKitTests/Snapshot/FixtureRecordService.swift
  • Tests/SwoopMistKitTests/Snapshot/ReleaseDataSnapshotExportFailureTests.swift
  • Tests/SwoopMistKitTests/Snapshot/ReleaseDataSnapshotExportTests.swift
  • Tests/SwoopMistKitTests/Snapshot/ReleaseDataSnapshotExportValidationTests.swift
  • Tests/SwoopMistKitTests/Snapshot/SnapshotFixture.swift

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@leogdion
leogdion added this pull request to stack #51 November 27, 2026 20:10
@claude

claude Bot commented Nov 27, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@leogdion
leogdion merged commit 57cdd01 into main Nov 27, 2026
16 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