Skip to content

fix(contract): accept system-managed machine responses - #59

Merged
robinbraemer merged 1 commit into
mainfrom
codex/fix-machine-list-contract
Sep 11, 2026
Merged

robinbraemer merged 1 commit into
mainfrom
codex/fix-machine-list-contract

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary:

  • Mark the Machine compute configuration reference optional in the generated public CLI contract.
  • Preserve nullable provider public IP validation.
  • Add a generated-command regression for a normal system-managed machine list response.

Verification:

  • bun run test: 184 tests passed.
  • mise run generate:check passed.
  • mise run check passed.

The CLI snapshot now matches the existing public server contract. No server behavior or client validation was weakened.

Rationale: System-managed machines intentionally have no compute configuration, so the generated CLI contract must accept their normal public list response without weakening validation of any present fields.

Tested: bun run vitest run test/generated-command.test.ts --testNamePattern='machines.list accepts a system-managed machine without a compute config'; bun run test; mise run generate:check; mise run check.
@robinbraemer
robinbraemer merged commit 0019e0c into main Sep 11, 2026
7 checks passed
@robinbraemer
robinbraemer deleted the codex/fix-machine-list-contract branch September 11, 2026 13:53
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