Companion guide · Check one cost report
Finite stock: allocation before proof
A narrow exact-fill fallback can recover some fully constrained mixed-length jobs. The independent saved-report checker can then prove the objective from the original numerical job. This is a separate argument from an optimum flag.
What becomes mandatory?
Add one kerf to every finished part. For each available stock bar, subtract both end trims, then add one kerf. An exact-fill bar containing n pieces loses only n−1 separation kerfs; this transform accounts for that final edge.
transformed demand = sum((part length + kerf) × quantity) transformed capacity = sum((stock length − both trims + kerf) × quantity)
If all stock rows are finite, all active capacities are positive, and these totals are equal, a complete allocation must use every available bar with no spare transformed capacity. It therefore has fixed supplied acquisition amount, raw length and bar count. This does not imply one unique cutting layout.
Equality alone is not a layout
Two 6 mm parts and one each of 7 mm and 5 mm stock have equal total length, with zero kerf and trims. There is no allocation: neither 6 mm part fits the 5 mm bar. A total-capacity check cannot replace row-by-row placement.
The source seed returns only a complete original-row witness or a bounded unresolved result. The independent witness checker verifies every original part code, length, quantity, stock row and final-edge equation before the retained report builder creates a new report. The separate consumer checks full REPORT geometry, original prices and supplied CSVs before accepting the finite proof. It never calls the producer or seed search.
A kerf example
The kerf-two control has 83 pieces totaling 1448 mm, 19 stock bars totaling 1576 mm, and 2 mm kerf. Transformed demand is 1448 + 83 × 2 = 1614 mm; transformed capacity is 1576 + 19 × 2 = 1614 mm. Its complete checked layout uses 64 separation cuts, losing 128 mm. Supplied acquisition amount is 87.04 cost units. Zero-availability rows remain present with explicit original prices.
These are constructed numerical amounts and dimensions, not a supplier quote, safe machine setup or realized saving.
Try complete saved-file controls
All four REPORT files below are NEW locally generated schema 2.0/component 2.1.0 files. Old component 2.0.0 controls elsewhere remain original. No native run, paid customer or representative success rate is claimed. Keep each original input/report/CSV pair together. The maximum control already has a complete base with an integer-dual proof; it checks version and geometry retention, not a new seed recovery.
| Control | Complete numerical records |
|---|---|
| Mixed lengths, no kerf | Independent full record · Source layout · Original input · REPORT · CUTS · STOCK |
| Mixed lengths, one kerf | Independent full record · Source layout · Original input · REPORT · CUTS · STOCK |
| Two kerf, explicit zero rows | Independent full record · Source layout · Original input · REPORT · CUTS · STOCK |
| 500 pieces, 100 distinct lengths, 20 rows | Independent full record · Source layout · Original input · REPORT · CUTS · STOCK |
cd cost python -m cost_report finite/kerf-two-zero-rows/input.json finite/kerf-two-zero-rows/report.json --cuts finite/kerf-two-zero-rows/cuts.csv --stock finite/kerf-two-zero-rows/stock.csv --record checked-finite.html
Use a new output filename. The checker refuses existing records and unknown producer versions. Read independent proof fields separately from source flags.
Bounded, optional work
The source seed runs only when the ordinary cost base has no complete allocation and has not proved infeasibility. It has a 1.5 s cooperative search budget, at most 5000 nodes, 64 patterns per state and normalized capacities up to 4000. A cutoff, exception or rejected complete witness preserves the original fallback and its proof state. It does not certify infeasibility, guarantee recovery, or enlarge the Actor's 500-piece/100-part-row/20-stock-row input limits.
Raw/default planning stays on its retained engine. The local checker generates no cutting plan, starts no paid job and supplies no physical material identity. Existing same-job, scenario and repricing rules still apply; an original proof never transfers to changed prices or stock.