Skip to content

feat(engine): support extension on rejected k3po transport streams - #2110

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

Copy link
Copy Markdown
Contributor

Description

Wires the k3po language extension added to rejected (aklivity/k3po#17, aklivity/k3po#18) into zilla's k3po test transport (runtime/engine/.../test/internal/k3po/ext/), so rejected zilla:reset.ext ${...} actually carries the extension on the RESET frame sent for the rejected accept, instead of only affecting parsing.

Changes

  • ZillaTarget: add a doReset(channel, originId, routedId, streamId, sequence, acknowledge, traceId, maximum) overload that reads any RESET extension staged on the channel (mirrors the existing extension-carrying doAbortInput), defaulting to empty when nothing was staged — so existing bare rejected specs are unaffected.
  • ZillaPartition: routes the reject-path RESET (handleBeginInitial) through the new extension-aware overload, so the k3po driver's WriteConfigHandler — installed by k3po's GenerateConfigurationVisitor when rejected carries a config type — has somewhere to land its encoded bytes before the RESET is written.
  • IT coverage: added handshake.reset.ext.rejected scenarios to SimplexIT, HalfDuplexIT, and DuplexIT, proving a server can rejected zilla:reset.ext [...] and the client observes connect aborted. Verified with a negative control (temporarily corrupting the config type name) that the test fails as expected when the wiring is broken, and that it passes cleanly when restored.

Dependency note

This requires a k3po version with aklivity/k3po#18 merged and released. pom.xml's k3po.version (currently 3.4.3) is intentionally left unchanged in this PR — it was tested locally by overriding with -Dk3po.version=develop-SNAPSHOT against a local k3po build. The version bump should happen once k3po cuts a release containing #18, as a separate follow-up.

Follow-up

The connect (client) side currently has no way to assert the extension it received on the RESET that caused a connect aborted — filed as aklivity/k3po#19, since it needs its own grammar/AST change plus a fix to zilla's own RESET-extension capture on the connect-abort path (currently discarded).

Fixes # (relates to aklivity/k3po#17)


Generated by Claude Code

claude added 2 commits July 10, 2026 16:03
Wires the k3po language extension to `rejected` (issue aklivity/k3po#17)
into the zilla k3po test transport so `rejected zilla:reset.ext ${...}`
actually carries the extension on the RESET frame sent for the rejected
accept, instead of only affecting parsing.

- ZillaTarget: add a doReset(channel, ...) overload that reads any staged
  RESET extension off the channel (mirrors the existing doAbortInput
  extension-carrying reset), defaulting to empty when nothing was staged.
- ZillaPartition: route the reject-path RESET through the new
  extension-aware overload so the k3po driver's WriteConfigHandler
  (installed by k3po's GenerateConfigurationVisitor when `rejected` carries
  a config type) has somewhere to land its encoded bytes.
- Add handshake.reset.ext.rejected IT scenarios (simplex/half-duplex/duplex)
  proving the server can reject a handshake with a zilla:reset.ext
  extension and the client observes `connect aborted`; verified with a
  negative control (bogus config name) that the test fails as expected
  when the wiring is broken.

Requires a k3po version with aklivity/k3po#17 merged; tested locally
against a k3po develop-SNAPSHOT build.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
Picks up aklivity/k3po#18 (rejected extension support), which the
handshake.reset.ext.rejected ITs in runtime/engine depend on. Verified
by rebuilding the full reactor and re-running those ITs against the
real released 3.4.4 artifacts (no local SNAPSHOT override).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
@jfallows
jfallows merged commit 537d8d1 into develop Jul 10, 2026
42 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