Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs([prune-orphan-subscriptions-for-deleted-records]): document orphan counts in sweepTombstones return contract

[._.]/ Adam Eivyda5705395f9f
diff --git a/server/services/sharing/tombstoneGc.js b/server/services/sharing/tombstoneGc.js
index b97cfeef94..e3b653758c 100644
--- a/server/services/sharing/tombstoneGc.js
+++ b/server/services/sharing/tombstoneGc.js
@@ -226,7 +226,10 @@ function refusedFromCutoffs(universeCutoff, seriesCutoff, collectionCutoff) {
}
/**
- * One sweep cycle. Returns `{ universes, series, issues, collections, refused }`.
+ * One sweep cycle. Returns `{ universes, series, issues, collections,
+ * orphanBaseHashes, orphanSubscriptions, refused }` — the four per-kind
+ * tombstone-prune counts, the two post-prune orphan-sweep counts, and the
+ * list of kinds whose cutoff was refused.
*
* `graceMs` defaults to 24h so the orchestrator path is unchanged; the
* manual-trigger UI / CLI passes 0 to skip the post-delete buffer. The