Skip to content

feat(engine): support connect aborted zilla:reset.ext matcher - #2115

Merged
jfallows merged 2 commits into
developfrom
claude/k3po-issue-17-a6baie
Jul 10, 2026
Merged

jfallows merged 2 commits into
developfrom
claude/k3po-issue-17-a6baie

Conversation

@jfallows

@jfallows jfallows commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Wires zilla's k3po test transport into the connect aborted zilla:reset.ext ... matcher syntax added by k3po#20 (fixes k3po#17), so scripts can assert the RESET extension bytes sent when a handshake is rejected, not just that the connect aborted.

  • ZillaTarget.Throttle.onResetBeforeHandshake now captures the RESET extension bytes and writes them into the read-ext buffer, mirroring the existing mid-stream onReset handling.
  • AbstractReadExtHandler now implements k3po driver's DecodingHandler marker interface, exposing its internal ChannelDecoder so ConnectAbortedHandler can reuse it to verify the extension.
  • Updated the three handshake.reset.ext.rejected client scripts (duplex, half-duplex, simplex) to assert the RESET extension content instead of just connect aborted.
  • Bumps k3po.version to 3.4.5, which contains k3po#20.

Test plan

  • ./mvnw -pl runtime/engine clean verify -Dit.test=DuplexIT,SimplexIT,HalfDuplexIT — 0 failures against released k3po 3.4.5, including genuine byte-level verification of the RESET extension (confirmed with a negative control: a deliberately mismatched extension fails with a clear diff)

claude added 2 commits July 10, 2026 17:53
Wires the k3po language extension added to connect aborted (aklivity/k3po#19)
into zilla's k3po test transport, so the client side of a rejected
handshake can assert the exact RESET extension it received instead of
just observing connect aborted with no verification:

    connect aborted zilla:reset.ext [0x12 0x34] [0x0c] "Hello, world"

- ZillaTarget.onResetBeforeHandshake: capture the incoming RESET's real
  extension bytes and stage them (channel.writeExtBuffer(RESET, false)),
  mirroring the existing mid-stream onReset staging. Previously this
  method discarded the extension entirely.
- AbstractReadExtHandler: implement k3po's new DecodingHandler marker
  interface (getDecoder()) so the existing CONFIG_RESET_EXT read-config
  factory registration can be reused by ConnectAbortedHandler outside its
  usual WRITE_ABORTED-event-triggered context.
- Strengthened the handshake.reset.ext.rejected client scripts
  (simplex/half-duplex/duplex) to assert the extension content instead of
  a bare `connect aborted`, closing the gap where the prior test only
  proved the server didn't crash, not that the bytes arrived correctly.

Verified with a negative control (corrupting the expected byte content)
that the assertion genuinely fails with a clear expected-vs-actual diff,
and passes once restored.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
Includes k3po#20 (connect aborted zilla:reset.ext matcher), released as 3.4.5.
@jfallows
jfallows marked this pull request as ready for review July 10, 2026 18:12

@jfallows jfallows left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jfallows
jfallows merged commit 7fe9fd2 into develop Jul 10, 2026
3 checks passed
jfallows pushed a commit that referenced this pull request Jul 10, 2026
Pulls in upstream fixes for the sandbox trust-store override (#2112) and
IPv6 unavailability (#2111) that this branch previously worked around
manually, plus new k3po reset-extension matching support (#2110, #2115)
and a vault entry resolution fix (#2114).
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.

2 participants