Pulse/internal
rcourtman 028e8c8df2 fix(unifiedresources): add space reclamation and retention for all append-only tables
The unified_resources.db grew without bound (2GB reported) because:

1. No VACUUM: DELETE freed rows internally but never shrank the file.
   Added auto_vacuum(INCREMENTAL) to the DSN for new databases, plus a
   one-time migrateAutoVacuum() that converts existing databases.
   reclaimFreePages() now runs after each prune cycle to return freed
   pages to the OS via PRAGMA incremental_vacuum.

2. Missing retention: action_lifecycle_events, export_audits, and
   loop_reports had no retention at all. Added 90-day retention for
   lifecycle/export audits and 30-day for loop_reports, matching the
   existing action_audits/resource_changes cadence.

3. Slow cleanup cadence: the retention loop ran every 6h and never on
   startup. Reduced to hourly and added an initial prune 30s after
   startup so a restart with a bloated DB starts recovering immediately.

Mirrors the proven pattern from metrics.db (auto_vacuum INCREMENTAL +
incremental_vacuum + WAL checkpoint).

Refs #1496
2026-06-27 18:38:56 +01:00
..
actionplanner Stabilize action plan drift hashing 2026-06-13 20:49:27 +01:00
agentcapabilities Clarify Patrol current-work copy 2026-06-25 14:37:04 +01:00
agentcontext Add discovery readiness to Assistant context 2026-06-04 21:56:36 +01:00
agentexec Add governed Docker and Podman lifecycle actions 2026-06-12 21:17:58 +01:00
agenttls
agentupdate Fall back to argv0 for agent self-update path on FreeBSD (#1457) 2026-06-04 10:19:45 +01:00
ai Handle JSON marshal error in agentic question tool response 2026-06-27 15:28:32 +01:00
alerts fix(alerts): deduplicate flapping history entries on load and periodic cleanup 2026-06-27 16:36:29 +01:00
api fix(dev): login endpoint respects admin bypass mode 2026-06-27 16:09:23 +01:00
bootstrap
cloudcp fix: resolve 4 pre-existing test failures blocking clean CI 2026-06-26 13:30:00 +01:00
config fix: availability probes fail with exec.Command fallback for local network 2026-06-26 17:57:40 +01:00
crypto
deploy
discovery
dockeragent fix(docker): stop manual update check from looping on ack failure 2026-06-27 18:26:23 +01:00
hostagent fix(hostagent): clear stale Unraid sync action when resync position is zero 2026-06-27 17:08:02 +01:00
hosted Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
hostmetrics Harden release gate workflow 2026-06-14 19:19:39 +01:00
kubernetesagent Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
license backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
logging
maintenancesentinel
metrics Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
mock memory(cache): extend the reclaimable split to standalone host agents 2026-06-11 21:47:30 +01:00
mockmode
mockmodel Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
mockruntime
models Suppress powered-off alerts for guests not configured to autostart 2026-06-26 00:22:59 +01:00
monitoring fix(docker): stop manual update check from looping on ack failure 2026-06-27 18:26:23 +01:00
notifications fix(email): eliminate data race on provider username resolution 2026-06-27 17:36:51 +01:00
platformsupport Expand Docker Swarm metadata inventory 2026-05-24 12:07:10 +01:00
proxmoxidentity Fix PBS backup identity matching 2026-06-03 11:43:20 +01:00
recovery Fix PBS backup identity matching 2026-06-03 11:43:20 +01:00
relay
remoteconfig Fix default agent rollout status noise 2026-05-14 14:37:24 +01:00
repoctl
securityutil Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
sensors Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
servicediscovery fix(discovery): backfill availability suggestions for existing discoveries 2026-06-26 23:56:15 +01:00
ssh/knownhosts
storagehealth feat(alerts): clean alert messages + highlight all platform node tables 2026-06-27 14:34:33 +01:00
system Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
telemetry backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
testutil
truenas Fix TrueNAS unavailable SMART disk health 2026-05-28 12:53:46 +01:00
unifiedresources fix(unifiedresources): add space reclamation and retention for all append-only tables 2026-06-27 18:38:56 +01:00
updates Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
updatesignature
utils Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
vmware Dedupe alerts PMG queue checks, vmware clones, licensing and proxmox client clones 2026-06-10 09:49:03 +01:00
websocket Fix websocket state broadcast retention 2026-06-24 11:16:27 +01:00