Advertisement
Data Processing

Fabric Widths and the One Width a Ten-Inch Grid Steals: The Carried Forty-Five

Migrate a fabric catalogue to ten-inch storage and six of its seven standard widths come through untouched. The seventh does something stranger than b...

Migrate a fabric catalogue to ten-inch storage and six of its seven standard widths come through untouched. The seventh does something stranger than being rounded: it is carried away. The 45 in fabric rounds to 50 in on the grid, and 50 in is not a width anyone sells, so the filing rule looks for the nearest real width and finds 54 in, nine inches above the truth and four inches past the grid point itself. The record ends up filed under a width further from its true size than the rounding that displaced it. Measured across a 300-draw test built for this piece, the ten-inch grid is lossless for the 36, 54, 60, 72, 90 and 108 in widths and wrong for every sampled record of exactly one width, the 45. This piece follows that width through a migration, because a switch that harms one size in seven, always the same size, is not noise. It is a mapping decision nobody made.

What The Carried Forty-Five means

The Carried Forty-Five is a register entry whose grid-rounded value is not an entry, and whose nearest entry is not itself, so the two-step filing, round then match, transports the record past the grid point to a different rung. The nearest prior concept in this series is The Tie Point, "a rounding value that lies exactly halfway between two register entries" (SmartDataAI, batch 80 of this series). The tie point's victims stood on a boundary and were awarded to one side by a rule. The 45 in fabric never reaches a boundary to contest: its rounded value, 50, sits between 45 and 54 at distances of five and four, so no tie occurs and no rule is invoked; the record is simply closer to the wrong rung once rounded than it was to its own. A tie is an adjudication. A carrying is a drift, and it is harder to catch, because every step of the pipeline behaved reasonably and the sum of the steps is a nine-inch error.

Fabric Widths and the One Width a Ten-Inch Grid Steals: The Carried Forty-Five

The test and the register

The register is the seven standard fabric widths in inches: 36, 45, 54, 60, 72, 90 and 108. Three hundred draws sampled the register and were written in five forms, then matched back against it by an automated cleaning harness (Source: SD measurement group AN304, this batch's harness register). The forms: the width in inches; its centimetre equivalent at 2.54 cm to the inch converted back; that centimetre figure read as inches; the width rounded to the nearest ten inches; and half the width read as the width. The full run gave 953 clean filings out of a possible 1,500. Inches and converted centimetres filed perfectly, 300 of 300 each. The ten-inch grid filed 260 of 300. The centimetres-as-inches form filed 47, and the half-width form 46. The grid's forty lost records are, to the last one, the 45 in fabric's forty sampled draws: no other width lost a single record to the grid.

One width, five ways

Follow the 45 in fabric. In inches it files as itself. Its centimetre spelling, 114 cm rounded from 114.3, converts back to 44.88 in and files as itself; the centimetre round trip is lossless on every width in this register. Read those 114 cm as inches and the record files as the 108 in fabric, the register's ceiling: the centimetres-as-inches form sends six of the seven widths to the 108, and only the 36 escapes upward less far, filing as the 90; the form's 47 clean filings are exactly the ceiling's own 47 draws. Under the ten-inch grid the 45 rounds to 50 and files, as traced above, as the 54: carried. Halved, 22.5 in files as the 36 in fabric, the register's floor. One bolt of cloth, four addresses: 45 to its owner, 108 to a unit-blind pipeline, 54 to the migration grid, and 36 to a halving error. Note the grid's address is the most dangerous of the four, precisely because it is the most plausible: a 54 in fabric exists, sells, and differs from the truth by an amount a receiving clerk might not question.

The migration, before and after

Stage the switch honestly and its ledger is short. Before: seven widths, each filing as itself under both honest spellings. The migration replaces exact storage with the ten-inch grid, promising simpler shelving logic. After: the 36 rounds to 40 and files home, the 54 rounds to 50 and files home, the 60, 90 are grid points, the 72 rounds to 70 and files home, the 108 rounds to 110 and files home, and the 45 alone is carried to the 54. The 60 in fabric makes the asymmetry plain: it stands five inches from the same grid point, on the far side, rounds down to 50, and files home, so the switch singles out one width and not a pair. The switch's entire damage is one width, and the damage is invisible in aggregate reporting: the migrated catalogue still lists seven widths, still files 260 of 300 sampled records correctly, and now reports the 45's stock, orders and remnants as 54 in fabric. The 54's shelf count swells by the 45's forty draws; the 45's shelf reads empty, and a buyer of 45 in quilting cotton is told, by a database that was cleaned on purpose, that the width does not exist. A migration audit that checks totals will pass this switch. Only a per-width audit catches it, and per-width is the only level at which a register's users live.

Frequently asked questions

Q: Why is the 45 in fabric the grid's only victim? A: Because 45 rounds to 50, and the nearest register entry to 50 is 54, at a distance of 4, rather than 45 itself, at a distance of 5. Every other width's rounded value stands closer to its own entry than to any other.

Q: Does the 54 in fabric suffer the reverse problem? A: No. The 54 rounds to the same grid point, 50, and its nearest entry at that point is itself, so the 54 is rescued by the same filing that carries the 45 into it. The two widths share a grid point and opposite fates.

Q: What do centimetre specifications do to this register? A: Converted back, they are lossless: 300 of 300 records file correctly. Read as inches, they file almost everything as the 108 in fabric; only the 36 escapes, filing as the 90.

Q: How many records filed correctly overall? A: 953 of 1,500: 300 each for inches and converted centimetres, 260 under the ten-inch grid, 47 for centimetres read as inches, and 46 for halved widths.

The switch rule

Never approve a storage migration on aggregate accuracy. A grid that files 260 of 300 can still abolish a product, and this one does: one width in seven, always the same width, carried past its own grid point into a neighbour's shelf. Audit a switch width by width, and where a single entry is carried, store that entry exactly and let the grid have the rest. The 45 does not need a finer grid for the whole catalogue. It needs an exemption, and exemptions are cheap precisely because they are rare.

Know someone who needs this? Share it.

Advertisement