Skip to content

Reject empty handshake histories consistently - #17

Merged
edidx merged 1 commit into
mainfrom
fix/empty-handshake-validation
Jul 27, 2026
Merged

Reject empty handshake histories consistently#17
edidx merged 1 commit into
mainfrom
fix/empty-handshake-validation

Conversation

@edidx

@edidx edidx commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

Align handshake validation across the canonical schema, semantic validator, Python SDK, and CLI.

The SDK previously accepted empty handshake histories even though the canonical schema requires messages with minItems: 1.

Changes

  • Validate every Handshake mapping through validateHandshake
  • Reject empty and missing handshake histories in the SDK
  • Add semantic validator regression coverage
  • Add SDK regression coverage
  • Add CLI rejection coverage
  • Remove obsolete empty-handshake fixture assertions

Validation

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests
    • 58 tests passed
  • bash tools/check-public-task-repo.sh
    • Passpod v0.1 public repository gate passed

Scope

No schema, protocol, dependency, configuration, packaging, Profile, Trustpod, or unrelated cleanup changes.

@edidx
edidx merged commit cba8fc3 into main Jul 27, 2026
1 check passed
@edidx
edidx deleted the fix/empty-handshake-validation branch July 27, 2026 18:36
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