Skip to content

fix(cli): adopt required product-quality API contract - #58

Merged
robinbraemer merged 1 commit into
mainfrom
codex/adopt-product-quality-cli-contract
Sep 11, 2026
Merged

robinbraemer merged 1 commit into
mainfrom
codex/adopt-product-quality-cli-contract

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary

  • adopt CNAP b45c0af’s operations.list Akua-Context header in the canonical CLI OpenAPI snapshot
  • adopt the producer-declared optional machines.create.compute_config_id contract
  • regenerate only the required command/API/executor artifacts and cover both supported CLI inputs

Scope

Exactly five files; no handwritten executor path, no unrelated endpoint adoption, and no production mutation.

Verification

  • bun run test -- test/generated-command.test.ts
  • mise run generate:check
  • mise run check (19 files, 183 tests)
  • git diff --check

Rationale: the prior snapshot rejected a required workspace context envelope and a valid system-managed machine request before transport. The two source fragments match CNAP commit b45c0af936f0e3c01429480229f3b02cc95a53db.

Rationale: The checked-in public OpenAPI snapshot predates CNAP b45c0af’s operations.list Akua-Context header and the explicit system-managed machine-selection contract. Regenerating from those two producer-backed corrections makes the supported CLI accept and forward the workspace context and permit omitted compute_config_id.

Rejected: Hand-editing the generated executor would bypass the sole-source OpenAPI contract and fail deterministic generation checks. Fetching the complete latest public snapshot would pull unrelated product evolution into this targeted launch-blocker repair.

Risk: This updates only the two snapshot fragments proven against b45c0af; a future full snapshot adoption remains independently auditable.

Tested: bun run test -- test/generated-command.test.ts; mise run generate:check; mise run check; git diff --check.
@robinbraemer
robinbraemer merged commit 2ff18e8 into main Sep 11, 2026
13 of 14 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