@unhinged-labs/tenant-roulette
v1.0.0
Published
Bounded defensive tenant-isolation regression testing for controlled Node.js fixtures
Readme
tenant-roulette
A Node.js regression harness for checking tenant isolation in trusted test fixtures with synthetic data. Compare what each tenant should be able to see with what the fixture independently observed. Deliberately incomplete runs say so instead of passing on a lack of evidence.
1.0.0 defensive profile. Use only trusted synthetic fixtures you own. The package provides no exploit reproductions or remote attack capability.
The canonical HTTP example reports incomplete ingress and store-effect coverage in every scenario. Only the paired HTTP scenario qualifies for correlation coverage. The CLI returns an inconclusive result when required evidence is missing.
On development commit f8d536b, the default direct example completed 187 of 200 planned schedules in 118.19 seconds on Linux x64 with Node 24.22.3 and seed 1. Its 563 trials observed 1,126 operations and 2,252 receipts. The 120-second suite budget can return a partial report. Check completed schedules before interpreting a run.
Try the local example from a source checkout
pnpm install --frozen-lockfile --ignore-scripts
pnpm test
node dist/cli.js check examples/local-suite.mjs --max-schedules 1 --jsonThe included example writes synthetic data to each tenant's own record. It runs both directions and returns exit 4 because the demo doesn't include the full runtime calibration matrix. That is an honest incomplete result, not an isolation failure or certification.
What is observed
- The harness owns the plan. A fixture independently reports the credential it actually used and the controlled receiver's state.
- Cooperative gates schedule the invocation itself. The repeated baseline and altered world must replay the same enabled gates.
- The optional Node HTTP adapter and HTTP reference receiver use their own localhost listeners. Neither accepts a URL or an external target.
- Summary reports omit raw values. A witness is data, not a command or a path to executable code. Replay accepts only the explicitly selected local suite.
The CLI loads the suite in a supervised controller and runs each trial in a fresh process. It can independently recheck a bounded received checkpoint before disposal, but it cannot recover observations the worker did not send. This is not a sandbox. In-process calls can't preempt synchronous user code. Running against a bounded fixture cannot prove that a deployed application is safe.
For scope and outstanding gates, see scope, release evidence, and research refresh.
Contributing
New to the project? The contributor guide walks through setup, a small local check, and your first pull request. For a security or privacy issue, use GitHub private vulnerability reporting.
