サンプル
Show that overlapping Sinatra calls can observe shared mutable state instead of isolated request state.
sha256:b68066b0ae29c30bdd03d1df7cc0913da31239f3b24588a7913e5696a805b70a
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Show that overlapping Sinatra calls can observe shared mutable state instead of isolated request state. HOW
- パッケージ
- sinatra 4.2.1
- 環境
- ruby
- 作成日
- 2026-08-16T17:03:28Z
よくある思い込み
Each overlapping request to the same Sinatra app instance is isolated from in-flight request mutations.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- Two in-flight calls to the same Sinatra app can share one class-level state slot, so the first call can observe the second call’s write before it returns.
- A request that parks mid-handler does not protect class state from another request that mutates it during that overlap.
ファイル
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9