Skip to content

refactor(codegen): drop fork_session trailing override and verify signature sync - #216

Merged
PsiACE merged 1 commit into
mainfrom
fix/sync-v1-fork-session-signature
Nov 29, 2026
Merged

PsiACE merged 1 commit into
mainfrom
fix/sync-v1-fork-session-signature

Conversation

@PsiACE

@PsiACE PsiACE commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Removes the special-case trailing field override for ForkSessionRequest.cursor_id in signature codegen and verifies generated signatures stay in sync with the schema.

Summary

  • Remove SIGNATURE_TRAILING_FIELDS from scripts/gen_signature.py so both v1 and v2 follow upstream schema field order (cursor_id after cwd). v1 signatures remain unchanged and match published 1.1.0.
  • Align v2 fork_session signatures in src/acp/experimental/v2/interfaces.py and src/acp/experimental/v2/client.py, and update the v2 fork_session test.
  • Add test_generated_signatures_are_in_sync in tests/test_gen_all.py to detect signature drift across v1 and v2 without mutating tracked files.

Verification

  • make gen-check
  • make check
  • make test (684 passed, 1 skipped, 0 warnings)

@PsiACE
PsiACE marked this pull request as draft November 28, 2026 17:11
@PsiACE
PsiACE force-pushed the fix/sync-v1-fork-session-signature branch from d896a09 to 24332fd Compare November 29, 2026 04:01
@PsiACE PsiACE changed the title fix(v1): keep fork_session cursor_id trailing and verify signature sync refactor(codegen): drop fork_session trailing override and verify signature sync Nov 29, 2026
@PsiACE
PsiACE marked this pull request as ready for review November 29, 2026 04:01
@PsiACE
PsiACE merged commit aade9c0 into main Nov 29, 2026
18 checks passed
@PsiACE
PsiACE deleted the fix/sync-v1-fork-session-signature branch November 29, 2026 04:18
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