Skip to content

fix(apple): decode reason_code in Contract 1.1 rest suggestion - #23

Merged
make-it-realll merged 1 commit into
mainfrom
fix/contract-1.1/decode-reason-code
Jul 25, 2026
Merged

fix(apple): decode reason_code in Contract 1.1 rest suggestion#23
make-it-realll merged 1 commit into
mainfrom
fix/contract-1.1/decode-reason-code

Conversation

@make-it-realll

Copy link
Copy Markdown
Collaborator

The 1.1 evaluate response (restSuggestionV1_1Schema) always includes a required reason_code, but the Apple client's RestSuggestionResponse decoder and RestDecision dropped it. Add the field and thread it through so it is available to UI/telemetry. Pure client-side, backward compatible.

任务

  • Task/Issue:
  • Owner:
  • 允许修改目录:

改动

契约影响

  • OpenAPI
  • JSON Schema
  • Fixture
  • Swift Codable
  • TS Zod
  • Contract version:

真实性

  • REAL:
  • MOCK:
  • CACHED:
  • UI 是否显示 SAMPLE MODE:

测试

  • 命令:
  • 结果:
  • 手工路径:

风险与降级

检查

  • 未修改禁区
  • 未提交密钥
  • 未自动发送邮件
  • 未保存 Guided Drift 答案
  • main Sample Mode 主线可运行

The 1.1 evaluate response (restSuggestionV1_1Schema) always includes a
required reason_code, but the Apple client's RestSuggestionResponse
decoder and RestDecision dropped it. Add the field and thread it through
so it is available to UI/telemetry. Pure client-side, backward compatible.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@make-it-realll
make-it-realll merged commit 276f790 into main Jul 25, 2026
1 check 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