Skip to content

Packs / manufacturing-public

tolerance-stackup

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

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-manufacturing-public

Install

logicpacks pack use manufacturing-public/tolerance-stackup
get_pack manufacturing-public/tolerance-stackup

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-python
  • Checks: 1 in outcome/checks.yaml
  • Code: stack.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from 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.