Repository navigation
feat(session): add compact ACK refs - #669
Merged
Merged
Conversation
ITSGJY
force-pushed
the
feat/ack-ref
branch
from
September 25, 2026 01:16
206031e to
f901e91
Compare
yyjeqhc
enabled auto-merge (squash)
September 25, 2026 01:41
auto-merge was automatically disabled
September 25, 2026 01:44
Head branch was pushed to by a user without write access
ITSGJY
force-pushed
the
feat/ack-ref
branch
from
September 25, 2026 01:44
19c0cda to
d715440
Compare
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ack_reffor compact request-scoped evidence of the exact retained ACK-required Workflow Session message setack_session_message_idsavailable for exact-ID compatibility and Window Peer ACKsBehavior
session_attentioncan return anack_refrepresenting the ACK-required Session messages explicitly retained across the current exchange: ACK evidence accepted on the request plus ACK-required messages newly projected in the response. Echoing the ref on a later Stateless MCP 2026 call expands it only after the exact authorized attention Session has been established.The ref is non-authoritative and Session-only. Its integrity tag covers the canonical Session identity, immutable owner authority, the full current open ACK-required set, and the retained membership bitmap. Editing the bitmap therefore cannot acknowledge another message from the same open set. Adding, resolving, withdrawing, replacing, or otherwise removing an ACK-required message changes the full-set fence, so an older ref acknowledges nothing instead of absorbing new membership. ACK observation alone does not change membership, which keeps exact replay safe.
Malformed, foreign-Session, foreign-principal, stale, tampered, and non-canonical refs fail closed. The original tool still executes normally; ACK evidence never becomes execution authority, message resolution, todo completion, or sticky Window/Session state. Window Peer ACK continues to use the existing exact-ID form.
Validation
cargo fmt --all -- --checkgit diff --checkcargo check --locked -p webcodexwebcodex-workflow-sessionlibrary tests passedwebcodex-tool-contractslibrary tests passed (234 tests)Closes #573.