Skip to content

feat(session): add compact ACK refs - #669

Merged
yyjeqhc merged 1 commit into
yyjeqhc:mainfrom
ITSGJY:feat/ack-ref
Sep 25, 2026
Merged

yyjeqhc merged 1 commit into
yyjeqhc:mainfrom
ITSGJY:feat/ack-ref

Conversation

@ITSGJY

@ITSGJY ITSGJY commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a bounded ack_ref for compact request-scoped evidence of the exact retained ACK-required Workflow Session message set
  • bind each ref to the exact Session owner/incarnation, the full current open ACK-required membership, and the retained membership bitmap
  • keep ack_session_message_ids available for exact-ID compatibility and Window Peer ACKs
  • preserve existing Session authorization, message resolution, completion, and non-sticky model-context semantics

Behavior

session_attention can return an ack_ref representing 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 -- --check
  • git diff --check
  • cargo check --locked -p webcodex
  • full webcodex-workflow-session library tests passed
  • full webcodex-tool-contracts library tests passed (234 tests)
  • focused Runtime/MCP coverage passed for ACK replay, retained-set accumulation, changed membership, canonical encoding, tampered membership, foreign-principal denial, HTTP Stateless MCP flow, wrapper validation, and compact tools/list size budgets
  • full fork GitHub Actions passed on the exact submitted tree, including server, workspace crates, runner, tooling, contract, MCP conformance, and native aggregate checks

Closes #573.

Copilot AI lite review requested due to automatic review settings September 25, 2026 01:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yyjeqhc
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

@yyjeqhc
yyjeqhc merged commit a33dd85 into yyjeqhc:main Sep 25, 2026
15 checks passed
@ITSGJY
ITSGJY deleted the feat/ack-ref branch September 27, 2026 10:06
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.

Compress repeated Session message ACK evidence without weakening ACK semantics

3 participants