Skip to content

feat(protocol): enforce command capability requirements#18

Merged
msmps merged 1 commit into
mainfrom
feat/protocol-capability-enforcement
Jul 11, 2026
Merged

feat(protocol): enforce command capability requirements#18
msmps merged 1 commit into
mainfrom
feat/protocol-capability-enforcement

Conversation

@msmps

@msmps msmps commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • declare exhaustive minimum protocol versions for commands, response payloads, and errors
  • probe a daemon through an established legacy-safe command before transmitting future version-gated commands
  • reject incompatible operations client-side with actionable restart guidance
  • guard daemon request dispatch and substitute legacy-compatible responses when a client cannot decode a newer result
  • preserve the single-roundtrip path for every existing command

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all --benches --tests --examples --all-features -- -D warnings
  • cargo test --all (196 passed, 1 intentionally ignored)
  • git diff --check

Story

This is Slice A item 6. It establishes the compatibility contract required before the retention ring and logs command introduce the first version-gated wire variants.

Declare exhaustive minimum protocol versions for commands, response payloads, and errors. Probe legacy daemons before future version-gated commands, reject incompatible operations before transmission, and substitute legacy-compatible upgrade errors at daemon dispatch.
@msmps
msmps merged commit 8d98d6e into main Jul 11, 2026
6 checks passed
@msmps
msmps deleted the feat/protocol-capability-enforcement branch July 11, 2026 15:58
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