docs: make multi-worker consistency semantics executable - #280
Merged
Conversation
dgenio
marked this pull request as ready for review
August 11, 2026 06:10
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Makes the multi-worker consistency semantics explicit and verifiable by turning key deployment claims into executable tests and documenting a component-by-component consistency matrix.
Changes:
- Added a new pytest module that asserts cross-worker behavior for token verification, revocation, rate limits, and handles.
- Added a deployment consistency document that summarizes default state locality and links to the tests as evidence.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| tests/test_multi_worker_consistency.py | Adds tests intended to “pin” multi-worker consistency semantics across key components. |
| docs/deployment-consistency.md | Documents default consistency/state-sharing expectations and points to the new tests as executable evidence. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Closes #226.
What changed
docs/deployment-consistency.mdwith an explicit component-by-component consistency matrix for multi-worker deployments.tests/test_multi_worker_consistency.pyso the load-bearing claims are executable documentation rather than prose that can silently drift.The tests pin four current facts:
Why
The mixed stateless/stateful model is non-obvious: sharing
WEAVER_KERNEL_SECRETshares token verification ability, not revocation/limit/handle state. This is a security and operations boundary that adopters need to know before horizontal scaling.Architecture decision
This PR deliberately does not build a sidecar or shared-state control plane. It documents the evidence first and states that #227 should earn its complexity from real adopter consistency requirements. A small shared-store protocol may be sufficient for some guarantees.
Validation
The new test file uses existing component APIs and should run in the normal CI matrix. No runtime behavior is changed.