codesamplex

Sample

Stack::new takes inner before outer middleware layers, causing the second argument to execute first on incoming requests unlike tuple composition

sha256:3ea8bc2e02e269464c4ff2edb5fac901d2c1c109ea6020628f8c94bf2ad780aa

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Stack::new takes inner before outer middleware layers, causing the second argument to execute first on incoming requests unlike tuple composition HOW
Packages
tower-layer 0.3.3
Environment
rust
Created
2026-08-16T11:21:45Z

Commonly assumed

Stack::new(a, b) establishes a middleware pipeline where layer a executes before layer b on incoming requests, matching left-to-right argument order and tuple composition

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts