allocate-scarce-stock-by-promised-servicelisted
Install: claude install-skill alisonjieli-png/loop-engine
# Allocate scarce stock by promised service
## When to use
Use for one item and decision cutoff when verified available units are fewer than the units requested by eligible orders. This method proposes an allocation; it does not reserve stock or change an order.
## Inputs
- Item identity, location and cutoff; gross usable on-hand quantity, holds, and active reservations linked to exact orders and stock lots.
- Order identities, item and revision, fulfillable location, ordered, fulfilled and cancelled quantities, promised times, and per-order hold, release and priority status as of the cutoff. Include the effective eligibility, handling, transit, partial-shipment and priority policies.
- Any confirmed inbound lot, quantity and evidenced stock-ready time after receipt and quality gates. The policy must explicitly permit planning with future supply.
## Procedure
1. Compute free on-hand stock as gross usable on-hand minus holds and **all** active reservations against that on-hand pool. Reconcile the reservation ledger to exact orders and lots. A negative free balance or unlinked reservation is a hold, not extra supply.
2. Reject duplicate order identities. Before ranking, check each order against the effective policy: exact requested item and revision, fulfillable location, active customer or order holds, release status, priority class or status, and any other required eligibility field at the cutoff. Exclude a mismatched or held order from **new** allocation. An unknown ho