Skip to content

fix: preserve durable setup metadata in Platform SDK - #545

Merged
alongubkin merged 1 commit into
mainfrom
alon/alien-628-preserve-platform-sdk-state
Aug 31, 2026
Merged

alongubkin merged 1 commit into
mainfrom
alon/alien-628-preserve-platform-sdk-state

Conversation

@alongubkin

Copy link
Copy Markdown
Member

Summary

  • regenerate the checked-in Platform OpenAPI artifacts from the authoritative Platform schema
  • preserve durable setup revision metadata through generated reconciliation requests
  • add a regression for the generated SDK serialization boundary

Validation

  • cargo test -p alien-platform-api reconcile_state_preserves_runtime_update_metadata
  • repository generator is idempotent over the checked-in artifacts

@alongubkin
alongubkin force-pushed the alon/alien-628-preserve-platform-sdk-state branch from ac00b10 to f4edb7b Compare August 31, 2026 03:40
@greptile-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown

Greptile Summary

This PR regenerates the Platform OpenAPI artifacts so generated Rust reconciliation requests preserve durable setup revision metadata.

  • Adds nullable directSetupRevision metadata consistently across the Platform and Rust OpenAPI inputs.
  • Extends the Rust SDK regression test to verify the metadata survives the serialization boundary.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete blocking or independently actionable non-blocking issue identified in its intended Rust SDK scope.

The regenerated schema artifacts consistently introduce the nullable metadata field, and the regression covers its preservation through the generated Rust reconciliation serialization boundary.

Important Files Changed

Filename Overview
client-sdks/platform/openapi.json Regenerates the shared Platform contract with nullable durable setup revision metadata.
client-sdks/platform/rust/openapi.json Aligns the Rust generator input with the regenerated Platform contract.
client-sdks/platform/rust/openapi-3.0.json Aligns the OpenAPI 3.0 Rust generator artifact with the same runtime metadata field.
client-sdks/platform/rust/src/lib.rs Adds a focused regression assertion proving the generated reconciliation state retains the setup revision.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Authoritative Platform schema] --> B[Checked-in Platform OpenAPI]
  B --> C[Rust SDK generated model]
  D[Deployment state with directSetupRevision] --> C
  C --> E[Reconciliation request]
  E --> F[Serialized runtime metadata preserves revision]
Loading

Reviews (1): Last reviewed commit: "fix: preserve durable setup revision in ..." | Re-trigger Greptile

@alongubkin
alongubkin merged commit c00dc49 into main Aug 31, 2026
24 checks passed
@alongubkin
alongubkin deleted the alon/alien-628-preserve-platform-sdk-state branch August 31, 2026 03:49
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