Skip to content

fix(protocol): make Swift model checks non-mutating - #115793

Merged
vincentkoc merged 3 commits into
mainfrom
fix/swift-protocol-compat
Jul 29, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/swift-protocol-compat

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a problem where Swift gateway model verification rewrote generated files before reporting drift, leaving native contributors with a generic Git diff instead of a direct repair command.

The existing compatibility suite also lacked small envelope-level regressions for the request, response, and event frames consumed by OpenClawKit.

Why This Change Was Made

Adds a non-mutating protocol:check:swift command and uses it from the existing protocol and pre-push checks. The generator now reports the stale file and the exact regeneration command.

Adds focused OpenClawKit regressions for request, response, and event round trips plus additive unknown fields. This intentionally does not add a compatibility manifest, enum policy, generated fixture matrix, or additional release gate.

User Impact

No runtime behavior changes. Native contributors get a clearer generated-model failure and a short documented update flow. Established Swift decoding behavior has focused regression coverage without expanding the release process.

AI-assisted: yes.

Evidence

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 09:55
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof completed for head 6a9ae94842aa81843c9f8f1b04bb9016e3e88e49.

No open review threads, no ClawSweeper rank-up moves, and no known proof gaps.

@vincentkoc
vincentkoc merged commit 951e7a3 into main Jul 29, 2026
157 of 160 checks passed
@vincentkoc
vincentkoc deleted the fix/swift-protocol-compat branch July 29, 2026 10:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

pull Bot pushed a commit to yann0001/openclaw that referenced this pull request Jul 29, 2026
* origin/main:
  fix(codex): restore connected apps for token-authenticated runs (openclaw#115075)
  fix(codex): classify hosted search timeouts (openclaw#115837)
  fix(msteams): keep attachment replies in channel threads (openclaw#94348)
  fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125)
  fix(protocol): make Swift model checks non-mutating (openclaw#115793)
  fix(searxng): avoid duplicating search endpoint (openclaw#113661)
  fix(agents): preserve tool-result middleware identity (openclaw#115821)
  refactor(meetings): consolidate runtime facades (openclaw#115819)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(protocol): make Swift drift checks non-mutating

* test(protocol): cover core Swift gateway frames

* docs(protocol): clarify Swift model update flow
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(codex): restore connected apps for token-authenticated runs (openclaw#115075)
  fix(codex): classify hosted search timeouts (openclaw#115837)
  fix(msteams): keep attachment replies in channel threads (openclaw#94348)
  fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125)
  fix(protocol): make Swift model checks non-mutating (openclaw#115793)
  fix(searxng): avoid duplicating search endpoint (openclaw#113661)
  fix(agents): preserve tool-result middleware identity (openclaw#115821)
  refactor(meetings): consolidate runtime facades (openclaw#115819)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant