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([issue-2144]): changelog entry + simplify pass (extract slugify, drop unused getDueCases)

Adam Eivy0749312d914d
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 9f51556e23..945a8cce05 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -34,6 +34,7 @@
## Privacy Center
- **[issue-2142] A new Privacy Center UI puts your encrypted PII vault and the organizations that hold it in one place.** Building on the Phase 1 encrypted vault (#2140) and Phase 2 trusted-organizations registry (#2141), a deep-linkable `/privacy/:tab` page (Identity → Privacy, `⌘K`/voice-navigable) ships three tabs: **Overview** — a doctor-style readout of whether AES-256-GCM encryption is engaged, vault record counts by type, and org counts by trust stance, with quick-jump cards into the other tabs; **Vault** — records grouped by type showing only the precomputed masked value (`•••, Portland OR` / `a•••@example.com`), with per-record "Share with Twin" / "Use for scans" optimistic toggles (hard-disabled for sensitive SSN/passport/license/financial types), a create/edit `Drawer`, and an explicit per-record **Reveal** action that decrypts plaintext only on click (never cached in list state) — plaintext never renders until you ask for it; **Organizations** — a trust/category/status chip-filtered list with per-org holdings status badges and a create/edit drawer whose holdings picker checkboxes over your vault records (masked) to record which fields each org holds. All mutations update local state directly (no full-list refetch), deletes use an inline confirm row (no `window.confirm`), and every tab is usable at 360px. Each tab path is registered in the nav manifest (`nav.identity.privacy-*`). (`client/src/pages/Privacy.jsx`, `client/src/components/privacy/`, `client/src/services/apiPrivacy.js`, `server/lib/navManifest.js`)
+- **[issue-2144] The Privacy Center can now find where you're exposed on people-search sites.** Phase 5 of the Privacy Center (epic #2138) adds a database of ~20 major data brokers (Spokeo, Whitepages, BeenVerified, Radaris, MyLife, and the PeopleConnect cluster — Intelius/TruthFinder/Instant Checkmate/US Search), a read-only exposure scan that searches each broker using only the identity facts you've marked as scan-eligible in the vault (never your SSN, passport, license, or financial details), and a per-broker case ledger that tracks each listing through its removal lifecycle. Scans respect a hard rule: a CAPTCHA or bot-wall is recorded as "blocked" and never bypassed, and a broker can only be marked "removed" by a fresh scan that confirms your listing is actually gone — never by a submission page saying so. Nothing runs on startup: the broker list loads on first view and you can grow it on demand from the public BADBOOL and California data-broker registries (your curated brokers are never overwritten), and scans run only when you start one or schedule them. This is the data + scan backbone for the upcoming opt-out automation (Phase 6) and Brokers UI tab.
## Layered Intelligence
diff --git a/server/services/privacyBrokers.js b/server/services/privacyBrokers.js
index 25ae1ba6a6..6efe50bf68 100644
--- a/server/services/privacyBrokers.js
+++ b/server/services/privacyBrokers.js
@@ -159,6 +159,9 @@ function rowToBroker(row) {
};
}
+// Slug an auto-discovered broker name into a stable id token.
+const slugify = (s) => String(s).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
+
// A broker record from any source, normalized to the row shape. Defensive:
// tolerates a sparse auto-discovered entry (BADBOOL / CA registry).
function normalizeBroker(b) {
@@ -271,7 +274,7 @@ export function parseCaRegistryCsv(csv) {
if (!name) return null;
const website = urlIdx !== -1 ? (cols[urlIdx] || '').trim().replace(/^"|"$/g, '') : '';
return normalizeBroker({
- id: `ca-${name.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '')}`,
+ id: `ca-${slugify(name)}`,
name,
urls: website ? { home: website } : {},
source: 'ca_registry',
@@ -287,7 +290,7 @@ export function parseBadboolList(payload) {
const name = b.name || b.id;
if (!name) return null;
return normalizeBroker({
- id: b.id || name.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, ''),
+ id: b.id || slugify(name),
name,
urls: b.url ? { home: b.url } : (b.urls || {}),
optout: b.optout || {},
@@ -499,14 +502,3 @@ export async function getScanStatus({ now = new Date() } = {}) {
dueForRecheck: due.rows[0].n,
};
}
-
-/** Cases whose next_recheck_at is due (or unscanned/never-stamped). */
-export async function getDueCases({ now = new Date() } = {}) {
- const { rows } = await query(
- `SELECT ${CASE_COLUMNS} FROM privacy_broker_cases
- WHERE next_recheck_at IS NULL OR next_recheck_at <= $1
- ORDER BY next_recheck_at NULLS FIRST`,
- [now.toISOString()],
- );
- return rows.map(rowToCase);
-}