Repository navigation
pool: show --cells lists the held index's cells with installs and dims - #1149
Merged
Merged
Conversation
Failing first: a document with two metrics and three cells, one split by its source, should read under --cells as one line per cell under a 'cells:' header — metric, role, model, the dims the cell spells, the measurement, its rows, the installs behind it — in the index's own order, carry the same cells as a --json array beside the summary, and move neither answer when the flag is absent. A metric with no cells says none. The implementation follows. Co-Authored-By: codeaf <[email protected]>
show printed the held document as counts and one line per metric, and a person who wanted what a cell is — which model, which role, what stood behind it — had to parse doc.json. show now takes --cells: a 'cells:' header after the metric lines, one line per cell — metric, role, model, the dims it spells in the order the metric declares them, the measurement (a share for a graded metric, said by the kind the document spells), its rows, and the installs behind it where the document carries them — in the index's own order, a property of the document, never a sort by a number. A metric with no cells says none. --json --cells carries the same cells as an array beside the summary; without the flag neither answer moves. The installs a cell spells were read for the floor and dropped: they are now carried on index.Cell, zero where the cell spells none — the shape the seed carries — so a reader can say what stood behind the measurement. Co-Authored-By: codeaf <[email protected]>
Co-Authored-By: codeaf <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
What
codeaf pool show --cellslists the held index's cells, one per line, under acells:header after the metric lines: the metric, the role and model the cell is addressed by, the dims it spells in the order the metric declares them, the measurement (meanfor a gaussian metric,sharefor a bernoulli one, from the document'skind),sdwhere it is non-zero,n, andinstallswhere the cell carries them. A metric with no cells saysnone. The order is the index's own — never a sort by a number.--json --cellsadds acellsarray of{metric, role, model, dims, mean, sd, n, installs}beside the existing summary; without the flag neither the words nor the object change.internal/pool/index:Cellnow carriesInstalls(the count the floor reads; zero where the cell spells none) instead of dropping it after the floor check.A flag rather than a fourth verb: the cells are what show shows, read one layer deeper, so they ride show's own answer and its
--json.Manual: one sentence on the flag in the pool section of running-from-the-terminal.
Testing
On the Spark host, fresh clone of
pool/show-cellsatbd687f2cc, log~/src/trees/check-bd687f2cc.log:New tests:
TestPoolShowCellsListsEachCellWithItsInstallsAndItsDims,TestPoolShowCellsSaysNoneForAMetricWithNoCells,TestACellCarriesTheInstallsItSpells.🤖 Generated with Claude Code