Skip to content

Packs / manufacturing-public

bom-revision-diff

Show what changed between two BOM revisions (added, removed, quantity changed)

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

Install

logicpacks pack use manufacturing-public/bom-revision-diff
get_pack manufacturing-public/bom-revision-diff

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: bomdiff.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A change list between BOM rev A and rev B: added parts, removed parts, quantity deltas, for an ECO/change note.

Verified by: Fixture revisions produce the exact expected add/remove/change lines.

Steps

  1. Export both revisions as flat BOMs (see bom-rollup).
  2. Run python3 code/bomdiff.py revA.csv revB.csv.
  3. Paste the output into the ECO.

Edge cases

  • Same part listed twice in one revision: quantities are summed with a warning.

Don'ts

  • Don't compare a multi-level BOM with a flat one.