Repository navigation
fix(protocol): refresh approval reviewer models - #121725
vyctorbrzezowski wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
21c6a4e to
d0bba67
Compare
|
Current |
d0bba67 to
ca17356
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 5:58 PM ET / 21:58 UTC. ClawSweeper reviewWhat this changesThe PR regenerates Swift approval-resolution models with the optional reviewer field and updates the Merge readinessKeep open. Current main still has the schema/prompt-derived inconsistencies, and this narrow branch brings both generated and test surfaces back in sync with no blocking correctness finding. Priority: P2 Review scores
Verification
How this fits togetherGateway protocol schemas feed generated Swift models for native OpenClaw clients. The flowchart LR
A[Gateway approval schemas] --> B[Swift model generator]
B --> C[Native client models]
D[Learn command] --> E[Skill Workshop instruction]
E --> F[Command behavior test]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2, Other +12. Total +14 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge this generated-model and prompt-contract refresh once the exact-head hosted checks complete successfully. Do we have a high-confidence way to reproduce the issue? Yes—source inspection reproduces both inconsistencies: current main’s schemas and emitted prompt disagree with its Swift artifact and focused assertion, respectively. Is this the best way to solve the issue? Yes. Regenerating at the protocol artifact boundary and updating the prompt-contract assertion is narrower and safer than changing the already-canonical schema or reuse-first instruction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e0a4146f551b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
ca17356 to
af94ae2
Compare
|
Superseded by #121751, the requested single consolidated heal lane. It carries the same generator-owned Swift reviewer repair, credits @vyctorbrzezowski in the commit and PR body, and combines it with the remaining dead-export cleanup after the other classes landed directly on main. Closing this conflicting duplicate now that the replacement PR exists. Thank you for tracing and proving the generated-model drift. |
|
Closing as superseded. Every item this PR carried has landed on
Earlier revisions of this branch also carried a madge import-cycle cut and three approval test alignments. Those were superseded first, by Note on the baseline, since it is the one place this branch was actually wrong: its regenerated copy was produced before the type relocation landed, and baseline entries carry a Two observations from this work that outlive the PR:
|
What Problem This Solves
The authoritative approval resolve schemas carry optional reviewer metadata, but the generated Swift gateway models omitted that field. Generated-protocol checks therefore fail, and Swift clients cannot decode or encode reviewer data on those resolve payloads.
Why This Change Was Made
Regenerate the Swift protocol owner output so
ApprovalResolveParams,ExecApprovalResolveParams, andPluginApprovalResolveParamseach expose optionalreviewer, default it tonil, assign it, and include its coding key.The branch previously included a
/learnassertion refresh. Currentmainnow owns a stronger canonical repair in8ae273603d8, so that duplicate change was removed during the final rebase.User Impact
Swift clients remain compatible with payloads that omit reviewer metadata and now preserve reviewer metadata when it is present. No TypeScript runtime, configuration, dependency, or user workflow changes.
Evidence
pnpm protocol:check— passed protocol registry, schema generation, Swift generation check, Kotlin generation, protocol-since guard, and generated-diff guard.git diff --check— passed.