# Linear Cut Planner · offline companion 1.6.0

Fully extract this folder and open **Start.html** in a current browser. The
local tools are free under the included MIT licence. JavaScript is needed
for preparation and checking; the guide and static fallback explanations
remain available without it. There is no installation or local account.

## Before a run: original input

Open prepare/cut-input-preflight.html. Load or paste parts and stock CSV,
or reopen a saved original input JSON. Use one material/profile and one
unit, mm or in; selecting another unit performs no conversion. The native
common-end-allowance contract supports up to 100 part rows, 500 pieces and 20 stock
rows. Part codes are workshop codes only, not names or order identifiers.
Stock quantity 0 means none; use the literal unlimited for unlimited stock.
All rows, including zero inventory, must leave positive usable length after
both end allowances. Decimal dot, at most three fractional digits.

A saved UTF-8 JSON file may contain only partsCsv, stockCsv, unit, kerf, trimStart,
trimEnd, minReusableOffcut. Both CSV strings are required; allowance settings
must be JSON numbers when present. Omitted settings become 0 and omitted unit
becomes mm. This differs from the example's 3 / 100 prefills: review every visible
setting. Extra or duplicate fields, wrong types, nesting and invalid CSV are
rejected before form values change. Escaped names still count as duplicates.
One UTF-8 BOM is tolerated; comments, trailing commas or text, and nonfinite numbers are
not. Saved JSON limit 1 MiB; each decoded CSV remains limited to 64 KiB.

Loading fills the form but does not prepare an export or establish a layout.
Click Check current input explicitly. Row diagnostics distinguish physical
CSV line and planner row. A passing necessary bound only says that these tests
have not ruled a layout out. Different lengths compete for shared stock.
The 7, 7, 4, 2 into two 10-unit bars control passes every necessary test yet is impossible.
A valid numerical shortage remains exportable with its warning. Edits, new
files, presets and clear revoke old results and unfinished reads. A failed saved
input retains previous form values, with old prepared output closed.

## Separate deliberate platform action

A real cutting plan requires a run you choose to start on the existing paid
Actor. Read its current platform price and controls. This companion submits
nothing and runs no inference service. Keep the original JSON actually used,
complete REPORT object, cuts CSV, stock CSV and ordinary layout.html. A report
cannot substitute for the original request. No local tool generates,
improves or replaces a cutting plan.

## After a completed plan: saved files

Open checker/cut-current-report-checker.html. Choose original input JSON,
complete REPORT and optional output CSVs. It reconstructs quantities, stock,
coordinates, kerf, common allowances, offcuts and totals. Supplied CSVs are
checked separately; a bad supplied CSV prevents a checked-layout download.
The checker supports report schema 1.1 and producer 1.1.4, 1.1.5, 1.1.6 or 1.1.7 with
common allowances. Unknown producer/schema tags stay rejected. Package version
1.6.0 does not change the producer or a saved report's contents.

An optional independent optimum check has explicit piece/length/resource
limits and a cooperative deadline. A cutoff or stopped check remains
unverified. Only a completed independent proof establishes the best raw-length/
bar-count pair. A numerical layout can pass without such a proof. See
checker/README.md and PROOF-METHOD.md for all proof and certificate limits.

Eligible repetitive layouts can save a self-contained checked HTML view. It
preserves every original bar/code assignment and the original cut order. Its
scope is Numerical layout verified, with independent optimality unasserted.
It never inherits an unchecked optimum flag or lower bound. Print the checker
result separately for the current proof outcome. Other layouts retain normal
numerical checking and the planner's original layout.html route.

## Compare two existing plans for the same job

Open comparison/Compare-Cut-Plans.html. Choose ONE original input JSON and
both complete A/B reports for that exact numerical job. Optional A/B cuts and
stock CSVs must each match their own report. Each selected file is UTF-8 text,
at most 2 MiB. A mismatch refuses the entire comparison; absent CSVs remain
unassessed. File changes, clear and late reads revoke old results/records.

Raw stock length takes precedence, then bar count at that raw length. Every
delta is exactly B minus A: integer-thousandth lengths in the shared unit,
or whole bar counts. A checked lower feasible score refutes the other plan
being optimal for this model. It does not prove the preferred plan globally
optimal; the single-report checker has the separate bounded optimum check.
A reported optimum flag is never accepted as independent proof.

Equal scores can leave different offcuts. For parts 6, 4, 4, 2 on two 10-unit
bars with zero trim/kerf and reusable threshold 3, (6+4)/(4+2) leaves a reusable
4; (6+2)/(4+4) leaves two 2-unit scrap offcuts. Both score 20 raw / 2 bars. Numerical reuse
categories do not confirm physical usability or cash value. Equal-length stock
rows retain their separate identities and finite inventories.

Save comparison record (HTML) or print the CURRENT result. These script-free
records retain the shared model, balances, stock use and offcut distributions,
without individual cut positions or complete original files. Keep the originals
to recheck or reproduce full layouts. The linked FILES.html guide explains
INPUT versus STOCK output, raw REPORT versus run metadata/dataset wrappers,
and keeping A/B run files separate. It opens in a new tab, preserving the
comparison. Source documentation is not a live account inspection.

The seven comparison folders contain four explicit synthetic pairs and three
reused source-fixture pairs. They are seven complete file controls, not seven
additional standalone report examples or native runs. Load all files for a
pair from the SAME folder. Never mix numerical jobs or physical profiles.

## Included controls and practical limits

There are 15 report example folders under checker/examples, including deliberate
suboptimal claims and out-of-scope proof cases. Three complete cross-tool
controls reuse those existing reports. Their preparation CSV/settings and
canonical JSON are under prepare/workflow: composed-bound, shared-geometry-485, 
finite-20-stock-500. They are not three additional report examples. Three
separate input-only JSON samples are under prepare/examples. Every control is
original synthetic numerical data, not a customer job/native performance test.

The tools process files locally, without telemetry, browser storage, names,
accounts or automatic network calls. An explicit download saves a local file;
clicking the external Actor link is a separate navigation. Local-browser/tablet
restrictions may apply. Check print preview; generated summaries are numerical
records, not machine instructions. These models do not measure stock, certify
physical suitability or promise setup-time, material or paper savings.

Original AI-assisted code/text with OpenAI Codex. See CREDITS.md and the
included MIT licences. No third-party runtime libraries or fonts are needed.
