Repository navigation
Use Storage Scale pools and filesets: storage totals and find filters - #26
Merged
Merged
Conversation
Imports have recorded each file's fileset and storage pool since #9; this puts them to use. `cdm storage` totals files and bytes by pool and by fileset (with names: the person at the terminal owns the index); `find --pool` / `--fileset` filter on them, as do the same parameters on MCP `find`; `stat` shows both. Scanned files have neither and are counted apart. The MCP `storage` tool is a shape tool, so its names follow ADR 0002's rule. The plan assumed pool and fileset names were both shape; on a real cluster the fileset in use was named after its user. Pool names name storage tiers and are returned by default; fileset names are often a person's, project's or customer's, so without --expose-names filesets are reported by rank of size ("fileset #1" is the largest) and never named. Recorded as ADR 0007. Closes #11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #11. Imports have recorded each file's fileset and storage pool since #9; this puts them to use.
cdm storagetotals files and bytes by pool and by fileset, with names, since the person at the terminal owns the index. It takes--rootand--json.find --pool NAME/--fileset NAMEfilter on them, the same parameters work on MCPfind, andstatshows both.Which names reach the AI (ADR 0007)
The MCP
storagetool is a shape tool, so its names follow ADR 0002. The plan assumed pool and fileset names were both shape. On a real cluster that held for pools but not filesets: the fileset in use was named after its user.--expose-namesfileset #1is the largest), with counts and bytesTesting
ruffandmandoc -Tlintare clean, and the pre-commit hook passed on the commit.tests/test_storage.py: thepoolandfilesetfilters; totals by pool name and by fileset rank, with scanned files counted apart; fileset names only when asked for; the default MCP server never sending a fileset named like a person's project, while--expose-namesdoes; MCPfindfilters; and the CLIstorage,findandstatround trip on the real sanitized fixture.storagetool automatically.storagecommand,findoptions, MCP section, STORAGE SCALE), README, CHANGELOG and ADR 0007 are updated.🤖 Generated with Claude Code