# End is not done. Author: Bee Rosa Davis Source: https://www.davisgeometric.com/notebook/end-is-not-done.html Collection: Bee’s notebook Status: Public post. Published: 2026-12-01 Text edition of the public page, with links, equations, figure descriptions and expanded details. Interactive readouts describe the initial displayed state, not every possible input. Use the linked interactive page and its evidence files for other states. Publication here does not change the source’s research status, assumptions or limitations. --- [← Bee’s notebook](https://www.davisgeometric.com/notebook/) Experiments & connections # End is not done. [Bee Rosa Davis](https://www.davisgeometric.com/about.html) · December 1, 2026 Did the machine actually finish the cut or just stop? I started with [*CNC Mill Tool Wear*](https://www.kaggle.com/datasets/shasun/tool-wear-detection-in-cnc-mill), a set of 18 experiments from the University of Michigan’s SMART Lab. [Kaggle](https://www.kaggle.com/docs/datasets) is a site where people share datasets and run competitions. This is a public dataset, not a Kaggle competition. The researchers suggested two things to look for in the records: wear on the cutting tool, and whether the clamp held the wax firmly enough. I wanted to answer a smaller question first: **What work did the log actually record before it said `End`?** Every one of the 18 logs ends with that word, even the unfinished ones. ## Picture the cut. A CNC mill is a computer-controlled cutting machine. In these experiments the mill was set up to carve an S in a block of wax in three layers. Each layer takes two trips along the cut, labeled Up and Down in the log. Each trip is one **pass** . I used [GIGI](https://www.davisgeometric.com/gigi/), my database, to compare the recorded sequence with the plan. Did the log record all six passes in the right order before `End`? Only afterward did I compare the audit with the researchers’ separate record of which runs finished. Real CNC logs / An ordered completion audit ## Both say End. Did both finish? Run 02 and Run 07 both used wax. The tool was set to travel along the cut at 20 mm/s, and the clamp holding the wax was set to 4 bar. Compare the two runs to see what made it into the log. The dataset labels one tool worn and the other unworn. This comparison does not establish why one run stopped early. **Recorded reference:** Run 02 contains all six passes. Run 07 contains three; after Layer 2 Up at rows 506–544, End starts at row 545 where Layer 2 Down should come next. The interactive audit runs when JavaScript and WebAssembly are available. The reference figure, source rows and full-series table below remain readable without them. ## Stopping is not the same as finishing. I don’t want a system to tell me the work is finished just because it stopped. I want it to show me what happened in between. Run 07 makes the difference visible. Its last cutting block says **Layer 2 Up** , rows 506–544. At row 545, the log says **End** . There is no recorded Layer 2 Down, Layer 3 Up or Layer 3 Down. Those empty slots are the evidence; End by itself hides them. [[Image: Run 02 records all six required passes. Run 07 records only the first three. Both logs contain End.](https://www.davisgeometric.com/notebook/assets/cnc-audit/two-runs.svg)](https://www.davisgeometric.com/notebook/assets/cnc-audit/two-runs.svg) Recorded comparison from the published stage labels. Solid teal slots have a recorded pass; dashed copper slots do not. This is a process-order diagram, not a reconstructed machine trajectory. Read the source row ranges without running the demo ### Run 02 · experiment_02.csv | Stage | Data rows | | --- | --- | | Start | Synthetic anchor | | Layer 1 Up | Rows 175–386 | | Layer 1 Down | Rows 387–618 | | Layer 2 Up | Rows 872–1014 | | Layer 2 Down | Rows 1015–1218 | | Layer 3 Up | Rows 1366–1509 | | Layer 3 Down | Rows 1510–1643 | | End | Rows 1644–1668 | ### Run 07 · experiment_07.csv | Stage | Data rows | | --- | --- | | Start | Synthetic anchor | | Layer 1 Up | Rows 52–246 | | Layer 1 Down | Rows 247–339 | | Layer 2 Up | Rows 506–544 | | End | Rows 545–565 | Start is a synthetic comparison anchor, not a measured operation. Original files and all retained row spans are linked below. ## What improved in these 18 runs? Only check for End **14 / 18** Agreement with published completion labels. All logs contain End, so this rule accepts all four incomplete runs. Check the ordered recipe **18 / 18** Agreement on this same series. Runs 04, 05, 07 and 16 are identified as incomplete. This comparison uses every run in the supplied series, with no exclusions. The ordered audit records its decisions before reading the completion outcomes. But the dataset and stage structure were inspected while designing the audit: this is a **retrospective check, not a blinded test or a trained fault detector** . It establishes a useful correction to an End-only rule, not superiority over other sequence-auditing methods. | Run | Passes recorded | End marker | Ordered audit | Published completion | Visual inspection | | --- | --- | --- | --- | --- | --- | | 01 | 6 / 6 | Present | Complete | Completed | Passed | | 02 | 6 / 6 | Present | Complete | Completed | Passed | | 03 | 6 / 6 | Present | Complete | Completed | Passed | | 04 | 1 / 6 | Present | Incomplete | Incomplete | Not reported | | 05 | 1 / 6 | Present | Incomplete | Incomplete | Not reported | | 06 | 6 / 6 | Present | Complete | Completed | Failed | | 07 | 3 / 6 | Present | Incomplete | Incomplete | Not reported | | 08 | 6 / 6 | Present | Complete | Completed | Failed | | 09 | 6 / 6 | Present | Complete | Completed | Failed | | 10 | 6 / 6 | Present | Complete | Completed | Failed | | 11 | 6 / 6 | Present | Complete | Completed | Passed | | 12 | 6 / 6 | Present | Complete | Completed | Passed | | 13 | 6 / 6 | Present | Complete | Completed | Passed | | 14 | 6 / 6 | Present | Complete | Completed | Passed | | 15 | 6 / 6 | Present | Complete | Completed | Passed | | 16 | 2 / 6 | Present | Incomplete | Incomplete | Not reported | | 17 | 6 / 6 | Present | Complete | Completed | Passed | | 18 | 6 / 6 | Present | Complete | Completed | Passed | Four logs with every required pass—06, 08, 09 and 10—have a failed visual-inspection label. That is a different question. A complete log is not proof of a usable part, correct physical motion or safe machine operation. The audit reads the supplied stage labels; it does not independently validate those labels against the sensors. ## Why the order matters. A checklist of names is not enough either. Swapping two passes preserves their count and both endpoints, but changes the recipe. The verification includes a deliberately swapped sequence, a missing pass and a repeated pass. They must all fail; the complete recipe must pass. This uses the same GIGI comparison kernel as [*Close endpoints. Different route.*](https://www.davisgeometric.com/notebook/what-the-endpoints-missed.html), with a different measurement contract. There, the coordinates are recorded hand positions. Here, they are symbols for layer and direction. We ask for an exact match of the ordered stages, not closeness of a physical route. The mathematical rule, one layer down The categorical chart is Start = (0,0), Layer k Up = (k,1), Layer k Down = (k,−1), and End = (4,0). Distinct stages get distinct points. These coordinates do not describe positions in the mill. The clock is ordinal pass index, not seconds. Discrete Fréchet comparison pairs the two lists in order while covering every point on both. Zero separation requires identical symbols at every pairing. After consecutive equal stage labels are collapsed, distance zero is equivalent to the same ordered stage sequence. Nonconsecutive repeats are retained; ambiguous separated blocks of the same pass are refused. The wrapper accepts only a discrete interval exactly [0,0], rejects an interval with a strictly positive lower bound, and otherwise returns unresolved. It does *not* use the kernel’s continuous-polyline verdict for this symbolic audit. Run 02 has discrete distance zero; Run 07’s numerical interval encloses √2. The interval’s size is not a fault-severity score. An ordinary ordered-list comparison can express this acceptance rule too. GIGI contributes an implementation with a declared chart, ordered alignment and inspectable witness. The wrapper translates that result into stage names and the first disagreement. Discrete Fréchet distance is credited to [Thomas Eiter and Heikki Mannila, *Computing Discrete Fréchet Distance* (1994)](https://www.kr.tuwien.ac.at/staff/eiter/et-archive/files/cdtr9464.pdf). ## Where this could help. A final status can be useful without being sufficient. For a workflow with an explicit recipe, retaining the ordered steps lets an auditor ask a stronger question: show me that the required sequence was recorded, and point to the first departure when it wasn’t. That could support process audits where a terminal marker is being treated as completion. Applying it elsewhere would require that system’s own recipe, trusted stage labels and tests. Detecting an unlabelled physical fault from raw measurements remains a separate task. ## Data, method and verification - **The measurements:** Sharon Sun and University of Michigan SMART Lab, [*CNC Mill Tool Wear*, version 4](https://www.kaggle.com/datasets/shasun/tool-wear-detection-in-cnc-mill). The Kaggle card lists CC0: Public Domain. Original experiments date to April 2018. This page uses `Machining_Process` from the 18 experiment CSVs and the separate `machining_finalized` and inspection fields from `train.csv`. The README uses “machining_completed” for the completion concept; the actual v4 CSV field is `machining_finalized`. - **The public inputs:** [All 18 stage sequences, source row ranges and declared recipe](https://www.davisgeometric.com/notebook/assets/cnc-audit/fixture.json) · [Display-only outcome and condition metadata](https://www.davisgeometric.com/notebook/assets/cnc-audit/run-metadata.json) · [Recorded audit protocol and scope](https://www.davisgeometric.com/notebook/assets/cnc-audit/protocol.txt). - **The computation:** [Pinned Rust kernel](https://github.com/nurdymuny/gigi/blob/4c7df4ed6468606c4b4e5c65cbb6dafe45d41788/src/path_compare/math.rs) · [Browser audit wrapper](https://www.davisgeometric.com/notebook/assets/cnc-audit/cnc-audit.mjs) · [Code licence](https://www.davisgeometric.com/notebook/assets/cnc-audit/gigi-compare-paths-LICENSE.txt). A fresh computation uses stage labels only. Outcome fields are displayed afterward and are not passed to the audit. - **The checks:** [Native/browser parity receipt](https://www.davisgeometric.com/notebook/assets/cnc-audit/parity.json) covers 18 runs, four planted controls and 179 witness rows. [Artifact hashes and provenance](https://www.davisgeometric.com/notebook/assets/cnc-audit/verification.json) pin the archive and serving files. Every exported source span was also checked against the original CSV. These checks verify this supplied experiment and implementation; they do not certify a machine. For a browser replay, load the published wrapper and WASM, call `createCncAudit(binary, fixture)`, then `engine.audit(run.stages)`. The native query is shown in the demo. The thin WASM build harness remains unpublished; asset parity is not independent build reproduction. No production GIGI API change is part of this example.