# tolerance-stackup

Compute a 1D tolerance stack-up (worst case and RSS) and say whether an assembly gap stays in spec

- **Space:** manufacturing-public (https://github.com/Tech-Realm/space-manufacturing-public/tree/main/tolerance-stackup)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use manufacturing-public/tolerance-stackup` or MCP `get_pack manufacturing-public/tolerance-stackup`
- **Files:** CHANGELOG.md, code/stack.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/chain.csv, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Nominal gap, worst-case min/max and RSS (statistical) range for a chain of dimensions, with PASS/FAIL against the required gap.

Verified by: Fixture chain gives the hand-computed nominal 0.5, WC +-0.35, RSS +-0.2062.

## Steps

1. List each dimension in the loop with its sign (+ adds to the gap, - subtracts).
2. Run `python3 code/stack.py chain.csv --min 0.1 --max 1.0`.
3. If worst case fails but RSS passes, decide with the process capability data.

## Edge cases

- Asymmetric tolerances: convert to mean-shifted nominal with symmetric tol first.

## Don'ts

- Don't use RSS for small lots or non-normal processes without justification.



---

Canonical URL: https://logicpacks.io/packs/manufacturing-public/tolerance-stackup

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
