Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service
getael GLOSSARY.md
3.7 kB · 35 lines
Markdown
at dev

Getǣl Domain Glossary #

Canonical terms for Getǣl (Old English: count, reckoning, tally). Every doc, module, API field, and UI label uses these terms consistently.

Storage & Measurement #

  • Home Root (~): The authenticated user's macOS home directory, including hidden files and dotfiles. The sole directory tree Getǣl scans and monitors.
  • Physical Allocated Size: Actual disk blocks occupied by a file (st_blocks * 512 bytes). Reflects APFS sparse allocation and reports 0 B for cloud-evicted files. Default display metric.
  • Logical Size: Apparent file length (st_size bytes), independent of sparse holes, compression, or cloud eviction. Available via UI toggle.
  • Dataless File: An iCloud Drive or File Provider placeholder whose content is evicted to the cloud (SF_DATALESS flag; Physical Allocated Size == 0, Logical Size > 0).
  • Hardlink Deduplication: Counting an inode (dev, ino) with link count > 1 only once toward physical disk usage so shared directory entries are not double-counted.
  • Mount Boundary: The filesystem device ID (st_dev) of the Home Root. Traversal stops at mount points on other devices and never follows symbolic links.
  • Permission-Denied Entry: A path inside ~ that macOS TCC or POSIX permissions prevent reading. Recorded as an inaccessible count and badge without aborting a scan.

Volume & APFS Telemetry #

  • Mounted Volume: The APFS volume containing the Home Root (on modern macOS, /System/Volumes/Data inside the boot APFS container).
  • Strictly Free Space: Unallocated APFS container blocks immediately available without purging caches or snapshots (volumeAvailableCapacityKey).
  • Purgeable Pool: Bytes macOS marks as automatically reclaimable on demand, encompassing Time Machine local snapshots and APFS purgeable caches (max(0, availableForImportant - strictlyFree)).
  • Important-Usage Available Space: Total space macOS considers available for user-initiated writes, equal to Strictly Free Space plus the Purgeable Pool (volumeAvailableCapacityForImportantUsageKey).
  • Time Machine Local Snapshot: A read-only APFS point-in-time snapshot on the Mounted Volume named com.apple.TimeMachine.*.local.
  • Snapshot XID: The monotonically increasing APFS transaction identifier recorded when a snapshot was taken. Differences between consecutive XIDs indicate filesystem metadata churn between snapshots.

Cache & Live Tracking #

  • Directory Record: A cached per-directory summary containing direct byte totals (physical and logical), file/directory counts, semantic category histogram, age-bucket histogram, modification timestamp, and rolled-up subtree totals.
  • Warm Start: Serving the persisted SQLite cache immediately upon service startup while a full Home Root scan runs asynchronously to reconcile drift.
  • Delta Propagation: Recomputing a changed directory's direct stats after an FSEvents notification and bubbling the signed byte/count/histogram difference up the ancestor chain to the Home Root.
  • Session Mover: A directory whose cached size changed significantly during the active UI session.

Presentation & Safety #

  • Lens: One of Getǣl's eight interactive disk-usage visualization views (Cell Map, Topography, Astrolabe, Strata, Fossils & Dust, Block Tapestry, Storage River, Constellations).
  • Directory Ledger: The sortable tabular inspector synchronized with the active Lens.
  • Read-Only Guarantee: Getǣl never creates, modifies, moves, deletes, or thins any user file, directory, or Time Machine snapshot. The only writable paths are Getǣl's own cache, config, and log locations.